@hmcts/ccd-case-ui-toolkit 5.0.44-angular11-welsh-release-part1-5 → 5.0.44-angular11-welsh-release-part1-7
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 +324 -2914
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
- package/esm2015/lib/shared/commons/case-edit-data/case-edit-data.service.js +1 -9
- package/esm2015/lib/shared/components/case-editor/case-access-utils/index.js +10 -1
- package/esm2015/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.js +7 -17
- package/esm2015/lib/shared/components/case-editor/services/cases.service.js +5 -52
- package/esm2015/lib/shared/components/case-editor/services/page-validation.service.js +2 -10
- package/esm2015/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +2 -2
- package/esm2015/lib/shared/components/palette/base-field/abstract-form-field.component.js +2 -4
- package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.js +4 -4
- package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field.component.js +4 -4
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.js +3 -4
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.js +26 -25
- package/esm2015/lib/shared/components/palette/case-link/index.js +1 -4
- package/esm2015/lib/shared/components/palette/case-link/read-case-link-field.component.js +8 -28
- package/esm2015/lib/shared/components/palette/case-link/write-case-link-field.component.js +68 -77
- package/esm2015/lib/shared/components/palette/palette.module.js +20 -66
- package/esm2015/lib/shared/components/palette/palette.service.js +4 -10
- package/esm2015/lib/shared/components/palette/utils/is-compound.pipe.js +1 -10
- package/esm2015/lib/shared/domain/case-view/role-request.model.js +1 -1
- package/esm2015/lib/shared/domain/definition/field-type-enum.model.js +1 -1
- package/esm2015/lib/shared/domain/user/user-info.model.js +1 -1
- package/esm2015/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.js +1 -5
- package/esm2015/lib/shared/pipes/index.js +1 -2
- package/esm2015/lib/shared/pipes/pipes.module.js +4 -8
- package/esm2015/lib/shared/services/fields/fields.utils.js +2 -8
- package/esm2015/lib/shared/services/form/form-value.service.js +10 -9
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +258 -2617
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/shared/commons/case-edit-data/case-edit-data.service.d.ts +0 -5
- package/lib/shared/commons/case-edit-data/case-edit-data.service.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-access-utils/index.d.ts +3 -0
- package/lib/shared/components/case-editor/case-access-utils/index.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts +0 -2
- package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts.map +1 -1
- package/lib/shared/components/case-editor/services/cases.service.d.ts +0 -9
- package/lib/shared/components/case-editor/services/cases.service.d.ts.map +1 -1
- package/lib/shared/components/case-editor/services/page-validation.service.d.ts +0 -1
- package/lib/shared/components/case-editor/services/page-validation.service.d.ts.map +1 -1
- package/lib/shared/components/palette/base-field/abstract-form-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.map +1 -1
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-link/index.d.ts +0 -3
- package/lib/shared/components/palette/case-link/index.d.ts.map +1 -1
- package/lib/shared/components/palette/case-link/read-case-link-field.component.d.ts +0 -3
- package/lib/shared/components/palette/case-link/read-case-link-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-link/write-case-link-field.component.d.ts +4 -13
- package/lib/shared/components/palette/case-link/write-case-link-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/palette.module.d.ts +59 -68
- 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/components/palette/utils/is-compound.pipe.d.ts +0 -1
- package/lib/shared/components/palette/utils/is-compound.pipe.d.ts.map +1 -1
- package/lib/shared/domain/case-view/role-request.model.d.ts +1 -1
- package/lib/shared/domain/case-view/role-request.model.d.ts.map +1 -1
- package/lib/shared/domain/definition/field-type-enum.model.d.ts +1 -1
- package/lib/shared/domain/definition/field-type-enum.model.d.ts.map +1 -1
- package/lib/shared/domain/user/user-info.model.d.ts +2 -0
- package/lib/shared/domain/user/user-info.model.d.ts.map +1 -1
- package/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.d.ts.map +1 -1
- package/lib/shared/pipes/index.d.ts +0 -1
- package/lib/shared/pipes/index.d.ts.map +1 -1
- package/lib/shared/pipes/pipes.module.d.ts +2 -3
- package/lib/shared/pipes/pipes.module.d.ts.map +1 -1
- package/lib/shared/services/fields/fields.utils.d.ts +0 -1
- package/lib/shared/services/fields/fields.utils.d.ts.map +1 -1
- package/lib/shared/services/form/form-value.service.d.ts +0 -3
- package/lib/shared/services/form/form-value.service.d.ts.map +1 -1
- package/package.json +1 -1
- package/esm2015/lib/shared/components/palette/case-link/components/before-you-start/before-you-start.component.js +0 -125
- package/esm2015/lib/shared/components/palette/case-link/components/check-your-answers/check-your-answers.component.js +0 -198
- package/esm2015/lib/shared/components/palette/case-link/components/index.js +0 -10
- package/esm2015/lib/shared/components/palette/case-link/components/link-cases/link-cases.component.js +0 -497
- package/esm2015/lib/shared/components/palette/case-link/components/linked-cases-table/linked-cases-from-table.component.js +0 -221
- package/esm2015/lib/shared/components/palette/case-link/components/linked-cases-table/linked-cases-to-table.component.js +0 -286
- package/esm2015/lib/shared/components/palette/case-link/components/no-linked-cases/no-linked-cases.component.js +0 -76
- package/esm2015/lib/shared/components/palette/case-link/components/read-linked-cases.component.js +0 -178
- package/esm2015/lib/shared/components/palette/case-link/components/unlink-cases/unlink-cases.component.js +0 -216
- package/esm2015/lib/shared/components/palette/case-link/components/write-linked-cases.component.js +0 -265
- package/esm2015/lib/shared/components/palette/case-link/domain/index.js +0 -3
- package/esm2015/lib/shared/components/palette/case-link/domain/linked-cases-state.model.js +0 -2
- package/esm2015/lib/shared/components/palette/case-link/domain/linked-cases.model.js +0 -19
- package/esm2015/lib/shared/components/palette/case-link/enums/index.js +0 -2
- package/esm2015/lib/shared/components/palette/case-link/enums/write-linked-cases-field.enum.js +0 -33
- package/esm2015/lib/shared/components/palette/case-link/services/index.js +0 -2
- package/esm2015/lib/shared/components/palette/case-link/services/linked-cases.service.js +0 -134
- package/esm2015/lib/shared/components/palette/case-link/utils/validators.utils.js +0 -27
- package/esm2015/lib/shared/pipes/link-cases-reason-code/ccd-link-cases-reason-code.pipe.js +0 -23
- package/esm2015/lib/shared/pipes/link-cases-reason-code/index.js +0 -2
- package/lib/shared/components/palette/case-link/components/before-you-start/before-you-start.component.d.ts +0 -19
- package/lib/shared/components/palette/case-link/components/before-you-start/before-you-start.component.d.ts.map +0 -1
- package/lib/shared/components/palette/case-link/components/check-your-answers/check-your-answers.component.d.ts +0 -18
- package/lib/shared/components/palette/case-link/components/check-your-answers/check-your-answers.component.d.ts.map +0 -1
- package/lib/shared/components/palette/case-link/components/index.d.ts +0 -10
- package/lib/shared/components/palette/case-link/components/index.d.ts.map +0 -1
- package/lib/shared/components/palette/case-link/components/link-cases/link-cases.component.d.ts +0 -45
- package/lib/shared/components/palette/case-link/components/link-cases/link-cases.component.d.ts.map +0 -1
- package/lib/shared/components/palette/case-link/components/linked-cases-table/linked-cases-from-table.component.d.ts +0 -42
- package/lib/shared/components/palette/case-link/components/linked-cases-table/linked-cases-from-table.component.d.ts.map +0 -1
- package/lib/shared/components/palette/case-link/components/linked-cases-table/linked-cases-to-table.component.d.ts +0 -45
- package/lib/shared/components/palette/case-link/components/linked-cases-table/linked-cases-to-table.component.d.ts.map +0 -1
- package/lib/shared/components/palette/case-link/components/no-linked-cases/no-linked-cases.component.d.ts +0 -12
- package/lib/shared/components/palette/case-link/components/no-linked-cases/no-linked-cases.component.d.ts.map +0 -1
- package/lib/shared/components/palette/case-link/components/read-linked-cases.component.d.ts +0 -37
- package/lib/shared/components/palette/case-link/components/read-linked-cases.component.d.ts.map +0 -1
- package/lib/shared/components/palette/case-link/components/unlink-cases/unlink-cases.component.d.ts +0 -38
- package/lib/shared/components/palette/case-link/components/unlink-cases/unlink-cases.component.d.ts.map +0 -1
- package/lib/shared/components/palette/case-link/components/write-linked-cases.component.d.ts +0 -45
- package/lib/shared/components/palette/case-link/components/write-linked-cases.component.d.ts.map +0 -1
- package/lib/shared/components/palette/case-link/domain/index.d.ts +0 -3
- package/lib/shared/components/palette/case-link/domain/index.d.ts.map +0 -1
- package/lib/shared/components/palette/case-link/domain/linked-cases-state.model.d.ts +0 -12
- package/lib/shared/components/palette/case-link/domain/linked-cases-state.model.d.ts.map +0 -1
- package/lib/shared/components/palette/case-link/domain/linked-cases.model.d.ts +0 -65
- package/lib/shared/components/palette/case-link/domain/linked-cases.model.d.ts.map +0 -1
- package/lib/shared/components/palette/case-link/enums/index.d.ts +0 -2
- package/lib/shared/components/palette/case-link/enums/index.d.ts.map +0 -1
- package/lib/shared/components/palette/case-link/enums/write-linked-cases-field.enum.d.ts +0 -29
- package/lib/shared/components/palette/case-link/enums/write-linked-cases-field.enum.d.ts.map +0 -1
- package/lib/shared/components/palette/case-link/services/index.d.ts +0 -2
- package/lib/shared/components/palette/case-link/services/index.d.ts.map +0 -1
- package/lib/shared/components/palette/case-link/services/linked-cases.service.d.ts +0 -50
- package/lib/shared/components/palette/case-link/services/linked-cases.service.d.ts.map +0 -1
- package/lib/shared/components/palette/case-link/utils/validators.utils.d.ts +0 -10
- package/lib/shared/components/palette/case-link/utils/validators.utils.d.ts.map +0 -1
- package/lib/shared/pipes/link-cases-reason-code/ccd-link-cases-reason-code.pipe.d.ts +0 -11
- package/lib/shared/pipes/link-cases-reason-code/ccd-link-cases-reason-code.pipe.d.ts.map +0 -1
- package/lib/shared/pipes/link-cases-reason-code/index.d.ts +0 -2
- package/lib/shared/pipes/link-cases-reason-code/index.d.ts.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('rpx-xui-translation'), require('@angular/router'), require('@angular/forms'), require('rx-polling'), require('rxjs'), require('@angular/common/http'), require('rxjs/operators'), require('class-transformer'), require('underscore'), require('moment'), require('util'), require('@edium/fsm'), require('@angular/material/dialog'), require('@angular-material-components/datetime-picker'), require('@angular/cdk/overlay'), require('@angular/cdk/tree'), require('@angular/material/autocomplete'), require('@angular/material/core'), require('@angular/material/datepicker'), require('@angular/material/form-field'), require('@angular/material/input'), require('@hmcts/ccpay-web-component'), require('@hmcts/media-viewer'), require('@nicky-lenaers/ngx-scroll-to'), require('ngx-md'), require('@angular-material-components/moment-adapter'), require('@angular/cdk/portal'), require('ngx-pagination'), require('@angular/material/tabs')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@hmcts/ccd-case-ui-toolkit', ['exports', '@angular/core', '@angular/common', 'rpx-xui-translation', '@angular/router', '@angular/forms', 'rx-polling', 'rxjs', '@angular/common/http', 'rxjs/operators', 'class-transformer', 'underscore', 'moment', 'util', '@edium/fsm', '@angular/material/dialog', '@angular-material-components/datetime-picker', '@angular/cdk/overlay', '@angular/cdk/tree', '@angular/material/autocomplete', '@angular/material/core', '@angular/material/datepicker', '@angular/material/form-field', '@angular/material/input', '@hmcts/ccpay-web-component', '@hmcts/media-viewer', '@nicky-lenaers/ngx-scroll-to', 'ngx-md', '@angular-material-components/moment-adapter', '@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.i1, global.ng.router, global.ng.forms, global["rx-polling"], global.rxjs, global.ng.common.http, global.rxjs.operators, global["class-transformer"], global.underscore, global.moment, global.util, global["@edium/fsm"], global.ng.material.dialog, global["@angular-material-components/datetime-picker"], global.ng.cdk.overlay, global.ng.cdk.tree, global.ng.material.autocomplete, global.ng.material.core, global.ng.material.datepicker, global.ng.material.formField, global.ng.material.input, global["@hmcts/ccpay-web-component"], global.
|
|
5
|
-
})(this, (function (exports, i0, i2, i1, i1$1, i2$1, polling, rxjs, i1$2, operators, classTransformer, _, moment, util, fsm, i1$3, i4, i1$4, i7, i5, i6, i5$1, i6$1, i3$1, i3,
|
|
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.i1, global.ng.router, global.ng.forms, global["rx-polling"], global.rxjs, global.ng.common.http, global.rxjs.operators, global["class-transformer"], global.underscore, global.moment, global.util, global["@edium/fsm"], global.ng.material.dialog, global["@angular-material-components/datetime-picker"], global.ng.cdk.overlay, global.ng.cdk.tree, global.ng.material.autocomplete, global.ng.material.core, global.ng.material.datepicker, global.ng.material.formField, global.ng.material.input, global["@hmcts/ccpay-web-component"], global.i12, global["@nicky-lenaers/ngx-scroll-to"], global["ngx-md"], global["@angular-material-components/moment-adapter"], global.ng.cdk.portal, global["ngx-pagination"], global.ng.material.tabs));
|
|
5
|
+
})(this, (function (exports, i0, i2, i1, i1$1, i2$1, polling, rxjs, i1$2, operators, classTransformer, _, moment, util, fsm, i1$3, i4, i1$4, i7, i5, i6, i5$1, i6$1, i3$1, i3, i12, i2$2, i1$5, momentAdapter, i6$2, i1$6, i10) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
var i6__namespace$1 = /*#__PURE__*/_interopNamespace(i6$1);
|
|
44
44
|
var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
|
|
45
45
|
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
46
|
-
var
|
|
46
|
+
var i12__namespace = /*#__PURE__*/_interopNamespace(i12);
|
|
47
47
|
var i2__namespace$2 = /*#__PURE__*/_interopNamespace(i2$2);
|
|
48
48
|
var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$5);
|
|
49
49
|
var i6__namespace$2 = /*#__PURE__*/_interopNamespace(i6$2);
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(18, 13, ctx_r1.workhours));
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
-
var _c0$
|
|
147
|
+
var _c0$Y = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
|
|
148
148
|
var _c1$r = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
|
|
149
149
|
var FooterComponent = /** @class */ (function () {
|
|
150
150
|
function FooterComponent() {
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
FooterComponent.ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
|
|
155
155
|
FooterComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$r, decls: 4, vars: 4, consts: [["id", "footer", "role", "footer", 1, "group", "js-footer"], [1, "footer-wrapper"], ["class", "footer-meta", 4, "ngIf"], [1, "footer-meta"], [1, "footer-meta-inner"], [1, "open-government-licence"], [1, "logo"], ["href", "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/", "rel", "license"], [1, "copyright"], ["href", "https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/"], [1, "title"], [1, "footer-text"], [1, "email"], [3, "href"], [1, "phone"], [1, "work-hours"]], template: function FooterComponent_Template(rf, ctx) {
|
|
156
156
|
if (rf & 1) {
|
|
157
|
-
i0__namespace.ɵɵprojectionDef(_c0$
|
|
157
|
+
i0__namespace.ɵɵprojectionDef(_c0$Y);
|
|
158
158
|
i0__namespace.ɵɵelementStart(0, "footer", 0);
|
|
159
159
|
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
160
160
|
i0__namespace.ɵɵtemplate(2, FooterComponent_div_2_Template, 20, 15, "div", 2);
|
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(4, 1, ctx_r2.title));
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
|
-
var _c0$
|
|
243
|
+
var _c0$X = [[["", "headerNavigation", ""]]];
|
|
244
244
|
var _c1$q = ["[headerNavigation]"];
|
|
245
245
|
var HeaderBarComponent = /** @class */ (function () {
|
|
246
246
|
function HeaderBarComponent() {
|
|
@@ -254,7 +254,7 @@
|
|
|
254
254
|
HeaderBarComponent.ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
|
|
255
255
|
HeaderBarComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$q, decls: 17, vars: 14, consts: [["role", "banner", "id", "global-header", 1, "with-proposition"], [1, "header-wrapper"], [1, "header-global"], [4, "ngIf"], ["class", "global-header", 4, "ngIf"], [1, "header-proposition"], [1, "content"], ["href", "#proposition-links", 1, "js-header-toggle", "menu"], ["id", "proposition-menu", 4, "ngIf"], [1, "proposition-right"], ["id", "user-name"], ["id", "sign-out", "href", "javascript:void(0)", 3, "click"], ["href", "https://www.gov.uk", "title", "Go to the GOV.UK homepage", "id", "logo", 1, "content", 2, "margin-left", "0px"], ["src", "/img/gov.uk_logotype_crown_invert_trans.png?0.23.0", "width", "36", "height", "32", "alt", ""], [1, "global-header"], [1, "title"], ["id", "proposition-menu"], [1, "title-solicitor"], ["id", "proposition-name"]], template: function HeaderBarComponent_Template(rf, ctx) {
|
|
256
256
|
if (rf & 1) {
|
|
257
|
-
i0__namespace.ɵɵprojectionDef(_c0$
|
|
257
|
+
i0__namespace.ɵɵprojectionDef(_c0$X);
|
|
258
258
|
i0__namespace.ɵɵelementStart(0, "header", 0);
|
|
259
259
|
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
260
260
|
i0__namespace.ɵɵelementStart(2, "div", 2);
|
|
@@ -321,7 +321,7 @@
|
|
|
321
321
|
}] });
|
|
322
322
|
})();
|
|
323
323
|
|
|
324
|
-
var _c0$
|
|
324
|
+
var _c0$W = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
|
|
325
325
|
var _c1$p = ["[leftNavLinks]", "[rightNavLinks]"];
|
|
326
326
|
var NavigationComponent = /** @class */ (function () {
|
|
327
327
|
function NavigationComponent() {
|
|
@@ -331,7 +331,7 @@
|
|
|
331
331
|
NavigationComponent.ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(); };
|
|
332
332
|
NavigationComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$p, decls: 4, vars: 2, consts: [[1, "cut-nav-bar"]], template: function NavigationComponent_Template(rf, ctx) {
|
|
333
333
|
if (rf & 1) {
|
|
334
|
-
i0__namespace.ɵɵprojectionDef(_c0$
|
|
334
|
+
i0__namespace.ɵɵprojectionDef(_c0$W);
|
|
335
335
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
336
336
|
i0__namespace.ɵɵelementStart(1, "nav", 0);
|
|
337
337
|
i0__namespace.ɵɵprojection(2);
|
|
@@ -487,7 +487,7 @@
|
|
|
487
487
|
}], null, null);
|
|
488
488
|
})();
|
|
489
489
|
|
|
490
|
-
var _c0$
|
|
490
|
+
var _c0$V = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
|
|
491
491
|
var _c1$o = ["[topBody]", "[leftBody]", "[rightBody]"];
|
|
492
492
|
var BodyComponent = /** @class */ (function () {
|
|
493
493
|
function BodyComponent() {
|
|
@@ -497,7 +497,7 @@
|
|
|
497
497
|
BodyComponent.ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
|
|
498
498
|
BodyComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$o, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) {
|
|
499
499
|
if (rf & 1) {
|
|
500
|
-
i0__namespace.ɵɵprojectionDef(_c0$
|
|
500
|
+
i0__namespace.ɵɵprojectionDef(_c0$V);
|
|
501
501
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
502
502
|
i0__namespace.ɵɵprojection(1);
|
|
503
503
|
i0__namespace.ɵɵprojection(2, 1);
|
|
@@ -584,6 +584,64 @@
|
|
|
584
584
|
function __param(paramIndex, decorator) {
|
|
585
585
|
return function (target, key) { decorator(target, key, paramIndex); };
|
|
586
586
|
}
|
|
587
|
+
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
588
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function")
|
|
589
|
+
throw new TypeError("Function expected"); return f; }
|
|
590
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
591
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
592
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
593
|
+
var _, done = false;
|
|
594
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
595
|
+
var context = {};
|
|
596
|
+
for (var p in contextIn)
|
|
597
|
+
context[p] = p === "access" ? {} : contextIn[p];
|
|
598
|
+
for (var p in contextIn.access)
|
|
599
|
+
context.access[p] = contextIn.access[p];
|
|
600
|
+
context.addInitializer = function (f) { if (done)
|
|
601
|
+
throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
602
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
603
|
+
if (kind === "accessor") {
|
|
604
|
+
if (result === void 0)
|
|
605
|
+
continue;
|
|
606
|
+
if (result === null || typeof result !== "object")
|
|
607
|
+
throw new TypeError("Object expected");
|
|
608
|
+
if (_ = accept(result.get))
|
|
609
|
+
descriptor.get = _;
|
|
610
|
+
if (_ = accept(result.set))
|
|
611
|
+
descriptor.set = _;
|
|
612
|
+
if (_ = accept(result.init))
|
|
613
|
+
initializers.push(_);
|
|
614
|
+
}
|
|
615
|
+
else if (_ = accept(result)) {
|
|
616
|
+
if (kind === "field")
|
|
617
|
+
initializers.push(_);
|
|
618
|
+
else
|
|
619
|
+
descriptor[key] = _;
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
if (target)
|
|
623
|
+
Object.defineProperty(target, contextIn.name, descriptor);
|
|
624
|
+
done = true;
|
|
625
|
+
}
|
|
626
|
+
;
|
|
627
|
+
function __runInitializers(thisArg, initializers, value) {
|
|
628
|
+
var useValue = arguments.length > 2;
|
|
629
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
630
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
631
|
+
}
|
|
632
|
+
return useValue ? value : void 0;
|
|
633
|
+
}
|
|
634
|
+
;
|
|
635
|
+
function __propKey(x) {
|
|
636
|
+
return typeof x === "symbol" ? x : "".concat(x);
|
|
637
|
+
}
|
|
638
|
+
;
|
|
639
|
+
function __setFunctionName(f, name, prefix) {
|
|
640
|
+
if (typeof name === "symbol")
|
|
641
|
+
name = name.description ? "[".concat(name.description, "]") : "";
|
|
642
|
+
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
643
|
+
}
|
|
644
|
+
;
|
|
587
645
|
function __metadata(metadataKey, metadataValue) {
|
|
588
646
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
589
647
|
return Reflect.metadata(metadataKey, metadataValue);
|
|
@@ -783,7 +841,7 @@
|
|
|
783
841
|
function __asyncDelegator(o) {
|
|
784
842
|
var i, p;
|
|
785
843
|
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
786
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done:
|
|
844
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
|
|
787
845
|
}
|
|
788
846
|
function __asyncValues(o) {
|
|
789
847
|
if (!Symbol.asyncIterator)
|
|
@@ -844,7 +902,7 @@
|
|
|
844
902
|
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
845
903
|
}
|
|
846
904
|
|
|
847
|
-
var _c0$
|
|
905
|
+
var _c0$U = function (a0) { return { "govuk-input--error": a0 }; };
|
|
848
906
|
function DateInputComponent_div_19_Template(rf, ctx) {
|
|
849
907
|
if (rf & 1) {
|
|
850
908
|
var _r8_1 = i0__namespace.ɵɵgetCurrentView();
|
|
@@ -865,7 +923,7 @@
|
|
|
865
923
|
i0__namespace.ɵɵadvance(1);
|
|
866
924
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 6, "Hour"));
|
|
867
925
|
i0__namespace.ɵɵadvance(2);
|
|
868
|
-
i0__namespace.ɵɵproperty("id", ctx_r3.hourId())("name", ctx_r3.hourId())("value", ctx_r3.displayHour)("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
926
|
+
i0__namespace.ɵɵproperty("id", ctx_r3.hourId())("name", ctx_r3.hourId())("value", ctx_r3.displayHour)("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$U, ctx_r3.isInvalid));
|
|
869
927
|
}
|
|
870
928
|
}
|
|
871
929
|
function DateInputComponent_div_20_Template(rf, ctx) {
|
|
@@ -888,7 +946,7 @@
|
|
|
888
946
|
i0__namespace.ɵɵadvance(1);
|
|
889
947
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 6, "Minute"));
|
|
890
948
|
i0__namespace.ɵɵadvance(2);
|
|
891
|
-
i0__namespace.ɵɵproperty("id", ctx_r4.minuteId())("name", ctx_r4.minuteId())("value", ctx_r4.displayMinute)("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
949
|
+
i0__namespace.ɵɵproperty("id", ctx_r4.minuteId())("name", ctx_r4.minuteId())("value", ctx_r4.displayMinute)("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$U, ctx_r4.isInvalid));
|
|
892
950
|
}
|
|
893
951
|
}
|
|
894
952
|
function DateInputComponent_div_21_Template(rf, ctx) {
|
|
@@ -911,7 +969,7 @@
|
|
|
911
969
|
i0__namespace.ɵɵadvance(1);
|
|
912
970
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 6, "Second"));
|
|
913
971
|
i0__namespace.ɵɵadvance(2);
|
|
914
|
-
i0__namespace.ɵɵproperty("id", ctx_r5.secondId())("name", ctx_r5.secondId())("value", ctx_r5.displaySecond)("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
972
|
+
i0__namespace.ɵɵproperty("id", ctx_r5.secondId())("name", ctx_r5.secondId())("value", ctx_r5.displaySecond)("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$U, ctx_r5.isInvalid));
|
|
915
973
|
}
|
|
916
974
|
}
|
|
917
975
|
var DateInputComponent = /** @class */ (function () {
|
|
@@ -1150,19 +1208,19 @@
|
|
|
1150
1208
|
i0__namespace.ɵɵadvance(1);
|
|
1151
1209
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(4, 21, "Day"));
|
|
1152
1210
|
i0__namespace.ɵɵadvance(2);
|
|
1153
|
-
i0__namespace.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0__namespace.ɵɵpureFunction1(27, _c0$
|
|
1211
|
+
i0__namespace.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0__namespace.ɵɵpureFunction1(27, _c0$U, ctx.isInvalid));
|
|
1154
1212
|
i0__namespace.ɵɵadvance(3);
|
|
1155
1213
|
i0__namespace.ɵɵproperty("for", ctx.monthId());
|
|
1156
1214
|
i0__namespace.ɵɵadvance(1);
|
|
1157
1215
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(10, 23, "Month"));
|
|
1158
1216
|
i0__namespace.ɵɵadvance(2);
|
|
1159
|
-
i0__namespace.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0__namespace.ɵɵpureFunction1(29, _c0$
|
|
1217
|
+
i0__namespace.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0__namespace.ɵɵpureFunction1(29, _c0$U, ctx.isInvalid));
|
|
1160
1218
|
i0__namespace.ɵɵadvance(3);
|
|
1161
1219
|
i0__namespace.ɵɵproperty("for", ctx.yearId());
|
|
1162
1220
|
i0__namespace.ɵɵadvance(1);
|
|
1163
1221
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(16, 25, "Year"));
|
|
1164
1222
|
i0__namespace.ɵɵadvance(2);
|
|
1165
|
-
i0__namespace.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0__namespace.ɵɵpureFunction1(31, _c0$
|
|
1223
|
+
i0__namespace.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0__namespace.ɵɵpureFunction1(31, _c0$U, ctx.isInvalid));
|
|
1166
1224
|
i0__namespace.ɵɵadvance(2);
|
|
1167
1225
|
i0__namespace.ɵɵproperty("ngIf", ctx.isDateTime);
|
|
1168
1226
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -1243,7 +1301,7 @@
|
|
|
1243
1301
|
i0__namespace.ɵɵelementContainerEnd();
|
|
1244
1302
|
}
|
|
1245
1303
|
}
|
|
1246
|
-
var _c0$
|
|
1304
|
+
var _c0$T = ["*"];
|
|
1247
1305
|
exports.AlertMessageType = void 0;
|
|
1248
1306
|
(function (AlertMessageType) {
|
|
1249
1307
|
AlertMessageType["WARNING"] = "warning";
|
|
@@ -1264,7 +1322,7 @@
|
|
|
1264
1322
|
AlertComponent.TYPE_ERROR = 'error';
|
|
1265
1323
|
AlertComponent.TYPE_INFORMATION = 'information';
|
|
1266
1324
|
AlertComponent.ɵfac = function AlertComponent_Factory(t) { return new (t || AlertComponent)(); };
|
|
1267
|
-
AlertComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$
|
|
1325
|
+
AlertComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$T, decls: 11, vars: 12, consts: [[1, "hmcts-banner"], [3, "ngSwitch"], [4, "ngSwitchCase"], [1, "hmcts-banner__message"], [1, "hmcts-banner__assistive"], ["fill", "currentColor", "role", "presentation", "focusable", "false", "xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 25 25", "height", "25", "width", "25", 1, "hmcts-banner__icon"], ["d", "M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z"], ["d", "M25,6.2L8.7,23.2L0,14.1l4-4.2l4.7,4.9L21,2L25,6.2z"], ["d", "M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z"]], template: function AlertComponent_Template(rf, ctx) {
|
|
1268
1326
|
if (rf & 1) {
|
|
1269
1327
|
i0__namespace.ɵɵprojectionDef();
|
|
1270
1328
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
@@ -1546,7 +1604,7 @@
|
|
|
1546
1604
|
}] });
|
|
1547
1605
|
})();
|
|
1548
1606
|
|
|
1549
|
-
var _c0$
|
|
1607
|
+
var _c0$S = function (a0) { return { "js-hidden": a0 }; };
|
|
1550
1608
|
var _c1$n = ["*"];
|
|
1551
1609
|
var TabComponent = /** @class */ (function () {
|
|
1552
1610
|
function TabComponent() {
|
|
@@ -1562,7 +1620,7 @@
|
|
|
1562
1620
|
i0__namespace.ɵɵelementEnd();
|
|
1563
1621
|
}
|
|
1564
1622
|
if (rf & 2) {
|
|
1565
|
-
i0__namespace.ɵɵproperty("id", ctx.id)("ngClass", i0__namespace.ɵɵpureFunction1(3, _c0$
|
|
1623
|
+
i0__namespace.ɵɵproperty("id", ctx.id)("ngClass", i0__namespace.ɵɵpureFunction1(3, _c0$S, !ctx.selected));
|
|
1566
1624
|
i0__namespace.ɵɵattribute("aria-hidden", !ctx.selected);
|
|
1567
1625
|
}
|
|
1568
1626
|
}, directives: [i2__namespace.NgClass], styles: [".tabs-toggle[_ngcontent-%COMP%]{display:block;padding:10px 15px 3px;margin-bottom:8px}.tabs-toggle[aria-selected=true][_ngcontent-%COMP%]{color:#0b0c0c;text-decoration:none;border-bottom:none}.tabs-toggle[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#005ea5}@media (max-width:640px){.tabs-list[_ngcontent-%COMP%]{border-bottom:1px solid #bfc1c3;margin-left:-15px;margin-right:-15px}.tabs-toggle[_ngcontent-%COMP%]{border-top:1px solid #bfc1c3}.tabs-toggle[_ngcontent-%COMP%]:focus{color:#0b0c0c;outline:none}}@media (min-width:641px){.tabs-panel[_ngcontent-%COMP%]{border-top:1px solid #bfc1c3;clear:both;overflow:hidden}.tabs-list[_ngcontent-%COMP%]{float:left}.tabs-list-item[_ngcontent-%COMP%]{float:left;position:relative;bottom:-1px;padding-top:10px}.tabs-toggle[_ngcontent-%COMP%]{background-color:#dee0e2;border:1px solid transparent;float:left;margin:0 6px 0 0;text-decoration:none}.tabs-toggle[_ngcontent-%COMP%]:visited{color:#005ea5}.tabs-toggle-selected[_ngcontent-%COMP%], .tabs-toggle[aria-selected=true][_ngcontent-%COMP%]{background-color:#fff;border-bottom:0;border-color:#bfc1c3;padding-bottom:11px;margin-bottom:0;color:#0b0c0c}}"] });
|
|
@@ -1585,7 +1643,7 @@
|
|
|
1585
1643
|
}] });
|
|
1586
1644
|
})();
|
|
1587
1645
|
|
|
1588
|
-
var _c0$
|
|
1646
|
+
var _c0$R = ["tab"];
|
|
1589
1647
|
var _c1$m = function () { return ["."]; };
|
|
1590
1648
|
var _c2$3 = function (a0) { return { "tabs-toggle-selected": a0 }; };
|
|
1591
1649
|
function TabsComponent_li_2_Template(rf, ctx) {
|
|
@@ -1641,7 +1699,7 @@
|
|
|
1641
1699
|
}
|
|
1642
1700
|
}, viewQuery: function TabsComponent_Query(rf, ctx) {
|
|
1643
1701
|
if (rf & 1) {
|
|
1644
|
-
i0__namespace.ɵɵviewQuery(_c0$
|
|
1702
|
+
i0__namespace.ɵɵviewQuery(_c0$R, 1);
|
|
1645
1703
|
}
|
|
1646
1704
|
if (rf & 2) {
|
|
1647
1705
|
var _t = void 0;
|
|
@@ -1722,7 +1780,7 @@
|
|
|
1722
1780
|
}], null, null);
|
|
1723
1781
|
})();
|
|
1724
1782
|
|
|
1725
|
-
var _c0$
|
|
1783
|
+
var _c0$Q = function (a0, a1) { return { caseLocked: a0, someoneViewing: a1 }; };
|
|
1726
1784
|
var ActivityBannerComponent = /** @class */ (function () {
|
|
1727
1785
|
function ActivityBannerComponent() {
|
|
1728
1786
|
}
|
|
@@ -1745,7 +1803,7 @@
|
|
|
1745
1803
|
i0__namespace.ɵɵelementEnd();
|
|
1746
1804
|
}
|
|
1747
1805
|
if (rf & 2) {
|
|
1748
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(8, _c0$
|
|
1806
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(8, _c0$Q, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
|
|
1749
1807
|
i0__namespace.ɵɵadvance(2);
|
|
1750
1808
|
i0__namespace.ɵɵpropertyInterpolate("alt", i0__namespace.ɵɵpipeBind1(3, 4, ctx.description));
|
|
1751
1809
|
i0__namespace.ɵɵpropertyInterpolate("src", ctx.imageLink, i0__namespace.ɵɵsanitizeUrl);
|
|
@@ -3125,14 +3183,6 @@
|
|
|
3125
3183
|
if (!field || !field.field_type || !field.field_type.type) {
|
|
3126
3184
|
return false;
|
|
3127
3185
|
}
|
|
3128
|
-
// Case link tab spacing alignment fix
|
|
3129
|
-
// This Pipe needs to be re-visited
|
|
3130
|
-
// to make it more generic to support and fix alignments issues for multiple tabs
|
|
3131
|
-
if (field.field_type.collection_field_type &&
|
|
3132
|
-
field.field_type.collection_field_type.id &&
|
|
3133
|
-
field.field_type.collection_field_type.id === IsCompoundPipe.CASE_LINK_FIELD_TYPE) {
|
|
3134
|
-
return true;
|
|
3135
|
-
}
|
|
3136
3186
|
if (IsCompoundPipe.COMPOUND_TYPES.indexOf(field.field_type.type) !== -1) {
|
|
3137
3187
|
if (IsCompoundPipe.EXCLUDE.indexOf(field.field_type.id) !== -1) {
|
|
3138
3188
|
return false;
|
|
@@ -3143,7 +3193,6 @@
|
|
|
3143
3193
|
};
|
|
3144
3194
|
return IsCompoundPipe;
|
|
3145
3195
|
}());
|
|
3146
|
-
IsCompoundPipe.CASE_LINK_FIELD_TYPE = 'CaseLink';
|
|
3147
3196
|
IsCompoundPipe.COMPOUND_TYPES = [
|
|
3148
3197
|
'Complex',
|
|
3149
3198
|
'Label',
|
|
@@ -4008,12 +4057,6 @@
|
|
|
4008
4057
|
FieldsUtils.isCollectionWithValue = function (pageFormFields) {
|
|
4009
4058
|
return pageFormFields[0]['value'] !== undefined;
|
|
4010
4059
|
};
|
|
4011
|
-
FieldsUtils.isLinkedCasesCaseField = function (caseField) {
|
|
4012
|
-
if (!caseField) {
|
|
4013
|
-
return false;
|
|
4014
|
-
}
|
|
4015
|
-
return caseField.field_type.collection_field_type.id === 'CaseLink';
|
|
4016
|
-
};
|
|
4017
4060
|
FieldsUtils.cloneObject = function (obj) {
|
|
4018
4061
|
return Object.assign({}, obj);
|
|
4019
4062
|
};
|
|
@@ -4217,7 +4260,7 @@
|
|
|
4217
4260
|
// If the Flags CaseField has a value, it is a root-level Complex field; if it does not, it is a Flags
|
|
4218
4261
|
// CaseField that is a sub-field within another Complex field, so use the currentValue value (if any)
|
|
4219
4262
|
// instead. The exception to this is the "caseFlags" Flags CaseField, which will have an empty object value
|
|
4220
|
-
// initially
|
|
4263
|
+
// initially, because no party name is required
|
|
4221
4264
|
if (caseField.value && FieldsUtils.isNonEmptyObject(caseField.value) ||
|
|
4222
4265
|
caseField.id === this.caseLevelCaseFlagsFieldId) {
|
|
4223
4266
|
flags.push(this.mapCaseFieldToFlagsWithFormGroupPathObject(caseField, pathToFlagsFormGroup));
|
|
@@ -4953,9 +4996,7 @@
|
|
|
4953
4996
|
};
|
|
4954
4997
|
AbstractFormFieldComponent.prototype.addControlToFormGroup = function (control, parent, replace) {
|
|
4955
4998
|
if (replace) {
|
|
4956
|
-
if (this.caseField.field_type && this.caseField.field_type.
|
|
4957
|
-
&& this.caseField.field_type.collection_field_type.id === 'CaseLink'
|
|
4958
|
-
&& this.caseField.field_type.type === 'Complex' && /^-?\d+$/.test(this.caseField.id)) {
|
|
4999
|
+
if (this.caseField.field_type && this.caseField.field_type.id === 'CaseLink' && this.caseField.field_type.type === 'Complex' && /^-?\d+$/.test(this.caseField.id)) {
|
|
4959
5000
|
parent.setControl('CaseReference', control['controls']['CaseReference']);
|
|
4960
5001
|
}
|
|
4961
5002
|
else {
|
|
@@ -6189,9 +6230,6 @@
|
|
|
6189
6230
|
// Clear out any MultiSelect labels.
|
|
6190
6231
|
FormValueService.removeMultiSelectLabels(data);
|
|
6191
6232
|
};
|
|
6192
|
-
/**
|
|
6193
|
-
* Remove any empty or invalid array with only id
|
|
6194
|
-
*/
|
|
6195
6233
|
FormValueService.prototype.removeInvalidCollectionData = function (data, field) {
|
|
6196
6234
|
var e_10, _a;
|
|
6197
6235
|
if (data[field.id] && data[field.id].length > 0) {
|
|
@@ -6272,13 +6310,17 @@
|
|
|
6272
6310
|
// nothing for a given case field ID (hence the use of hasOwnProperty())
|
|
6273
6311
|
if (data.hasOwnProperty(caseField.id) && caseField.value) {
|
|
6274
6312
|
// Create new object for the case field ID within the data object, if necessary
|
|
6275
|
-
if (
|
|
6276
|
-
data
|
|
6313
|
+
if (data[caseField.id]) {
|
|
6314
|
+
// Copy all values from the corresponding CaseField; this ensures all nested flag data (for example, a
|
|
6315
|
+
// Flags field within a Complex field or a collection of Complex fields) is copied across
|
|
6316
|
+
Object.keys(data[caseField.id]).forEach(function (key) {
|
|
6317
|
+
if (caseField.value.hasOwnProperty(key)) {
|
|
6318
|
+
data[caseField.id][key] = caseField.value[key];
|
|
6319
|
+
}
|
|
6320
|
+
});
|
|
6277
6321
|
}
|
|
6278
|
-
// Copy all values from the corresponding CaseField; this ensures all nested flag data (for example, a
|
|
6279
|
-
// Flags field within a Complex field or a collection of Complex fields) is copied across
|
|
6280
|
-
Object.keys(caseField.value).forEach(function (key) { return data[caseField.id][key] = caseField.value[key]; });
|
|
6281
6322
|
}
|
|
6323
|
+
;
|
|
6282
6324
|
});
|
|
6283
6325
|
}
|
|
6284
6326
|
};
|
|
@@ -8095,6 +8137,9 @@
|
|
|
8095
8137
|
else if (this.roleOrCategoryExists(CaseAccessUtils.ADMIN_ROLE, CaseAccessUtils.ADMIN_ROLE_CATEGORY, roleKeywords, roleCategories)) {
|
|
8096
8138
|
return CaseAccessUtils.ADMIN_ROLE_CATEGORY;
|
|
8097
8139
|
}
|
|
8140
|
+
else if (this.roleOrCategoryExists(CaseAccessUtils.CTSC_ROLE, CaseAccessUtils.CTSC_ROLE_CATEGORY, roleKeywords, roleCategories)) {
|
|
8141
|
+
return CaseAccessUtils.CTSC_ROLE_CATEGORY;
|
|
8142
|
+
}
|
|
8098
8143
|
else {
|
|
8099
8144
|
return CaseAccessUtils.LEGAL_OPERATIONS_ROLE_CATEGORY;
|
|
8100
8145
|
}
|
|
@@ -8119,6 +8164,9 @@
|
|
|
8119
8164
|
case CaseAccessUtils.ADMIN_ROLE_CATEGORY:
|
|
8120
8165
|
roleName = accessType + "-access-" + CaseAccessUtils.ADMIN_ROLE_NAME;
|
|
8121
8166
|
break;
|
|
8167
|
+
case CaseAccessUtils.CTSC_ROLE_CATEGORY:
|
|
8168
|
+
roleName = accessType + "-access-" + CaseAccessUtils.CTSC_ROLE_NAME;
|
|
8169
|
+
break;
|
|
8122
8170
|
default:
|
|
8123
8171
|
roleName = accessType + "-access-" + CaseAccessUtils.LEGAL_OPERATIONS_ROLE_NAME;
|
|
8124
8172
|
break;
|
|
@@ -8179,6 +8227,9 @@
|
|
|
8179
8227
|
CaseAccessUtils.CITIZEN_ROLE = 'citizen';
|
|
8180
8228
|
CaseAccessUtils.CITIZEN_ROLE_CATEGORY = 'CITIZEN';
|
|
8181
8229
|
CaseAccessUtils.CITIZEN_ROLE_NAME = 'citizen';
|
|
8230
|
+
CaseAccessUtils.CTSC_ROLE = 'ctsc';
|
|
8231
|
+
CaseAccessUtils.CTSC_ROLE_CATEGORY = 'CTSC';
|
|
8232
|
+
CaseAccessUtils.CTSC_ROLE_NAME = 'ctsc';
|
|
8182
8233
|
|
|
8183
8234
|
var WizardPageFieldToCaseFieldMapper = /** @class */ (function () {
|
|
8184
8235
|
function WizardPageFieldToCaseFieldMapper() {
|
|
@@ -8564,34 +8615,6 @@
|
|
|
8564
8615
|
return rxjs.throwError(error);
|
|
8565
8616
|
}), operators.finalize(function () { return _this.loadingService.unregister(loadingToken); }));
|
|
8566
8617
|
};
|
|
8567
|
-
/**
|
|
8568
|
-
* TODO: Gets case link responses
|
|
8569
|
-
* @returns case link responses
|
|
8570
|
-
*/
|
|
8571
|
-
CasesService.prototype.getCaseLinkResponses = function () {
|
|
8572
|
-
var _this = this;
|
|
8573
|
-
var headers = new i1$2.HttpHeaders()
|
|
8574
|
-
.set('experimental', 'true')
|
|
8575
|
-
.set('Accept', CasesService.V2_MEDIATYPE_CASE_VIEW)
|
|
8576
|
-
.set('Content-Type', 'application/json');
|
|
8577
|
-
var loadingToken = this.loadingService.register();
|
|
8578
|
-
return this.http
|
|
8579
|
-
.get('assets/getCaseReasons.json', { headers: headers, observe: 'body' })
|
|
8580
|
-
.pipe(operators.map(function (reasons) {
|
|
8581
|
-
return reasons.sort(function (reasonA, reasonB) { return reasonA.value_en > reasonB.value_en ? 1 : -1; });
|
|
8582
|
-
}), operators.catchError(function (error) {
|
|
8583
|
-
_this.errorService.setError(error);
|
|
8584
|
-
return rxjs.throwError(error);
|
|
8585
|
-
}), operators.finalize(function () { return _this.loadingService.unregister(loadingToken); }));
|
|
8586
|
-
};
|
|
8587
|
-
CasesService.prototype.getLinkedCases = function (caseId) {
|
|
8588
|
-
var url = this.appConfig.getCaseDataStoreApiUrl() + "/" + caseId;
|
|
8589
|
-
return this.http
|
|
8590
|
-
.get(url)
|
|
8591
|
-
.pipe(operators.catchError(function (error) {
|
|
8592
|
-
return rxjs.throwError(error);
|
|
8593
|
-
}));
|
|
8594
|
-
};
|
|
8595
8618
|
CasesService.prototype.getEventTrigger = function (caseTypeId, eventTriggerId, caseId, ignoreWarning) {
|
|
8596
8619
|
var _this = this;
|
|
8597
8620
|
ignoreWarning = undefined !== ignoreWarning ? ignoreWarning : 'false';
|
|
@@ -8627,7 +8650,7 @@
|
|
|
8627
8650
|
.set('Content-Type', 'application/json');
|
|
8628
8651
|
return this.http
|
|
8629
8652
|
.post(url, eventData, { headers: headers, observe: 'body' })
|
|
8630
|
-
.pipe(operators.
|
|
8653
|
+
.pipe(operators.catchError(function (error) {
|
|
8631
8654
|
_this.errorService.setError(error);
|
|
8632
8655
|
return rxjs.throwError(error);
|
|
8633
8656
|
}));
|
|
@@ -8662,7 +8685,7 @@
|
|
|
8662
8685
|
.set('Content-Type', 'application/json');
|
|
8663
8686
|
return this.http
|
|
8664
8687
|
.post(url, eventData, { headers: headers, observe: 'body' })
|
|
8665
|
-
.pipe(operators.
|
|
8688
|
+
.pipe(operators.catchError(function (error) {
|
|
8666
8689
|
_this.errorService.setError(error);
|
|
8667
8690
|
return rxjs.throwError(error);
|
|
8668
8691
|
}));
|
|
@@ -8702,10 +8725,6 @@
|
|
|
8702
8725
|
}
|
|
8703
8726
|
return url;
|
|
8704
8727
|
};
|
|
8705
|
-
CasesService.prototype.processResponseBody = function (body, eventData) {
|
|
8706
|
-
this.processTasksOnSuccess(body, eventData.event);
|
|
8707
|
-
return body;
|
|
8708
|
-
};
|
|
8709
8728
|
CasesService.prototype.initialiseEventTrigger = function (eventTrigger) {
|
|
8710
8729
|
var _this = this;
|
|
8711
8730
|
if (!eventTrigger.wizard_pages) {
|
|
@@ -8716,22 +8735,6 @@
|
|
|
8716
8735
|
wizardPage.case_fields = _this.orderService.sort(_this.wizardPageFieldToCaseFieldMapper.mapAll(wizardPage.wizard_page_fields, eventTrigger.case_fields));
|
|
8717
8736
|
});
|
|
8718
8737
|
};
|
|
8719
|
-
CasesService.prototype.processTasksOnSuccess = function (caseData, eventData) {
|
|
8720
|
-
// The following code is work allocation 1 related
|
|
8721
|
-
if (this.appConfig.getWorkAllocationApiUrl().toLowerCase() === 'workallocation') {
|
|
8722
|
-
// This is used a feature toggle to
|
|
8723
|
-
// control the work allocation
|
|
8724
|
-
if (!this.isPuiCaseManager()) {
|
|
8725
|
-
this.workAllocationService.completeAppropriateTask(caseData.id, eventData.id, caseData.jurisdiction, caseData.case_type)
|
|
8726
|
-
.subscribe(function () {
|
|
8727
|
-
// Success. Do nothing.
|
|
8728
|
-
}, function (error) {
|
|
8729
|
-
// Show an appropriate warning about something that went wrong.
|
|
8730
|
-
console.warn('Could not process tasks for this case event', error);
|
|
8731
|
-
});
|
|
8732
|
-
}
|
|
8733
|
-
}
|
|
8734
|
-
};
|
|
8735
8738
|
/*
|
|
8736
8739
|
Checks if the user has role of pui-case-manager and returns true or false
|
|
8737
8740
|
*/
|
|
@@ -8754,7 +8757,7 @@
|
|
|
8754
8757
|
if (userInfoStr) {
|
|
8755
8758
|
userInfo = JSON.parse(userInfoStr);
|
|
8756
8759
|
}
|
|
8757
|
-
var roleCategory = camUtils.getMappedRoleCategory(userInfo.roles, userInfo.roleCategories);
|
|
8760
|
+
var roleCategory = userInfo.roleCategory || camUtils.getMappedRoleCategory(userInfo.roles, userInfo.roleCategories);
|
|
8758
8761
|
var roleName = camUtils.getAMRoleName('challenged', roleCategory);
|
|
8759
8762
|
var beginTime = new Date();
|
|
8760
8763
|
var endTime = new Date(new Date().setUTCHours(23, 59, 59, 999));
|
|
@@ -8771,7 +8774,7 @@
|
|
|
8771
8774
|
if (userInfoStr) {
|
|
8772
8775
|
userInfo = JSON.parse(userInfoStr);
|
|
8773
8776
|
}
|
|
8774
|
-
var roleCategory = camUtils.getMappedRoleCategory(userInfo.roles, userInfo.roleCategories);
|
|
8777
|
+
var roleCategory = userInfo.roleCategory || camUtils.getMappedRoleCategory(userInfo.roles, userInfo.roleCategories);
|
|
8775
8778
|
var roleName = camUtils.getAMRoleName('specific', roleCategory);
|
|
8776
8779
|
var id = userInfo.id ? userInfo.id : userInfo.uid;
|
|
8777
8780
|
var payload = camUtils.getAMPayload(null, id, roleName, roleCategory, 'SPECIFIC', caseId, sar, null, null, true);
|
|
@@ -9416,8 +9419,7 @@
|
|
|
9416
9419
|
.filter(function (caseField) { return !_this.isHidden(caseField, editForm); })
|
|
9417
9420
|
.every(function (caseField) {
|
|
9418
9421
|
var theControl = editForm.controls['data'].get(caseField.id);
|
|
9419
|
-
return _this.checkDocumentField(caseField, theControl) && _this.checkOptionalField(caseField, theControl)
|
|
9420
|
-
_this.checkCaseLinksCollectionField(caseField, theControl);
|
|
9422
|
+
return _this.checkDocumentField(caseField, theControl) && _this.checkOptionalField(caseField, theControl);
|
|
9421
9423
|
});
|
|
9422
9424
|
};
|
|
9423
9425
|
PageValidationService.prototype.isHidden = function (caseField, editForm, path) {
|
|
@@ -9445,13 +9447,6 @@
|
|
|
9445
9447
|
PageValidationService.prototype.checkMandatoryField = function (caseField, theControl) {
|
|
9446
9448
|
return this.caseFieldService.isMandatory(caseField) && theControl === null;
|
|
9447
9449
|
};
|
|
9448
|
-
PageValidationService.prototype.checkCaseLinksCollectionField = function (caseField, theControl) {
|
|
9449
|
-
if (caseField && caseField.id === 'caseLinks') {
|
|
9450
|
-
return theControl && theControl.value && Array.isArray(theControl.value) &&
|
|
9451
|
-
theControl.value.length ? true : false;
|
|
9452
|
-
}
|
|
9453
|
-
return true;
|
|
9454
|
-
};
|
|
9455
9450
|
return PageValidationService;
|
|
9456
9451
|
}());
|
|
9457
9452
|
PageValidationService.ɵfac = function PageValidationService_Factory(t) { return new (t || PageValidationService)(i0__namespace.ɵɵinject(CaseFieldService)); };
|
|
@@ -9980,12 +9975,10 @@
|
|
|
9980
9975
|
function CaseEditDataService() {
|
|
9981
9976
|
this.title$ = new rxjs.BehaviorSubject(null);
|
|
9982
9977
|
this.formValidationErrors$ = new rxjs.BehaviorSubject([]);
|
|
9983
|
-
this.linkError$ = new rxjs.BehaviorSubject(null);
|
|
9984
9978
|
this.eventTriggerName$ = new rxjs.BehaviorSubject(null);
|
|
9985
9979
|
this.triggerSubmitEvent$ = new rxjs.BehaviorSubject(null);
|
|
9986
9980
|
this.caseTitle$ = this.title$.asObservable();
|
|
9987
9981
|
this.caseFormValidationErrors$ = this.formValidationErrors$.asObservable();
|
|
9988
|
-
this.caseLinkError$ = this.linkError$.asObservable();
|
|
9989
9982
|
this.caseEventTriggerName$ = this.eventTriggerName$.asObservable();
|
|
9990
9983
|
this.caseTriggerSubmitEvent$ = this.triggerSubmitEvent$.asObservable();
|
|
9991
9984
|
}
|
|
@@ -9995,18 +9988,12 @@
|
|
|
9995
9988
|
CaseEditDataService.prototype.setCaseEventTriggerName = function (triggerName) {
|
|
9996
9989
|
this.eventTriggerName$.next(triggerName);
|
|
9997
9990
|
};
|
|
9998
|
-
CaseEditDataService.prototype.setCaseLinkError = function (error) {
|
|
9999
|
-
this.linkError$.next(error);
|
|
10000
|
-
};
|
|
10001
9991
|
CaseEditDataService.prototype.setFormValidationErrors = function (validationErrors) {
|
|
10002
9992
|
this.formValidationErrors$.next(validationErrors);
|
|
10003
9993
|
};
|
|
10004
9994
|
CaseEditDataService.prototype.clearFormValidationErrors = function () {
|
|
10005
9995
|
this.formValidationErrors$.next([]);
|
|
10006
9996
|
};
|
|
10007
|
-
CaseEditDataService.prototype.clearCaseLinkError = function () {
|
|
10008
|
-
this.linkError$.next(null);
|
|
10009
|
-
};
|
|
10010
9997
|
CaseEditDataService.prototype.addFormValidationError = function (validationError) {
|
|
10011
9998
|
this.formValidationErrors$.next(this.formValidationErrors$.getValue().concat([validationError]));
|
|
10012
9999
|
};
|
|
@@ -10457,27 +10444,18 @@
|
|
|
10457
10444
|
_this.caseEditDataService.addFormValidationError({ id: id_1, message: label + " exceeds the maximum length" });
|
|
10458
10445
|
fieldElement.markAsDirty();
|
|
10459
10446
|
}
|
|
10460
|
-
else if (_this.caseLinkError && FieldsUtils.isLinkedCasesCaseField(casefield)) {
|
|
10461
|
-
_this.validationErrors.push({ id: _this.caseLinkError.componentId, message: _this.caseLinkError.errorMessage });
|
|
10462
|
-
}
|
|
10463
10447
|
else if (fieldElement.invalid) {
|
|
10464
10448
|
if (casefield.isComplex()) {
|
|
10465
10449
|
_this.generateErrorMessage(casefield.field_type.complex_fields, fieldElement, id_1);
|
|
10466
10450
|
}
|
|
10467
10451
|
else if (casefield.isCollection() && casefield.field_type.collection_field_type.type === 'Complex') {
|
|
10468
|
-
|
|
10469
|
-
|
|
10470
|
-
|
|
10471
|
-
}
|
|
10472
|
-
else {
|
|
10473
|
-
var fieldArray = fieldElement;
|
|
10474
|
-
if (fieldArray['component'] && fieldArray['component']['collItems'] && fieldArray['component']['collItems'].length > 0) {
|
|
10475
|
-
id_1 = "" + fieldArray['component']['collItems'][0].prefix;
|
|
10476
|
-
}
|
|
10477
|
-
fieldArray.controls.forEach(function (c) {
|
|
10478
|
-
_this.generateErrorMessage(casefield.field_type.collection_field_type.complex_fields, c.get('value'), id_1);
|
|
10479
|
-
});
|
|
10452
|
+
var fieldArray = fieldElement;
|
|
10453
|
+
if (fieldArray['component'] && fieldArray['component']['collItems'] && fieldArray['component']['collItems'].length > 0) {
|
|
10454
|
+
id_1 = "" + fieldArray['component']['collItems'][0].prefix;
|
|
10480
10455
|
}
|
|
10456
|
+
fieldArray.controls.forEach(function (c) {
|
|
10457
|
+
_this.generateErrorMessage(casefield.field_type.collection_field_type.complex_fields, c.get('value'), id_1);
|
|
10458
|
+
});
|
|
10481
10459
|
}
|
|
10482
10460
|
else if (FieldsUtils.isFlagLauncherCaseField(casefield)) {
|
|
10483
10461
|
// Check whether the case field DisplayContextParameter is signalling "create" mode or "update" mode
|
|
@@ -10744,7 +10722,6 @@
|
|
|
10744
10722
|
CaseEditPageComponent.prototype.syncCaseEditDataService = function () {
|
|
10745
10723
|
var _this = this;
|
|
10746
10724
|
this.caseEditDataService.setCaseEventTriggerName(this.eventTrigger.name);
|
|
10747
|
-
this.caseEditDataService.setCaseLinkError(this.caseLinkError);
|
|
10748
10725
|
this.caseEditDataService.setCaseTitle(this.getCaseTitle());
|
|
10749
10726
|
this.caseEditDataService.caseFormValidationErrors$.subscribe({
|
|
10750
10727
|
next: function (validationErrors) { return _this.validationErrors = validationErrors; }
|
|
@@ -11290,10 +11267,6 @@
|
|
|
11290
11267
|
};
|
|
11291
11268
|
ReadFieldsFilterPipe.keepField = function (field, value, ignoreLabels) {
|
|
11292
11269
|
if (ignoreLabels === void 0) { ignoreLabels = false; }
|
|
11293
|
-
// We should always render the caselinks tables from and to regardless whether it has valid value or not
|
|
11294
|
-
if (field.id === 'caseLinks') {
|
|
11295
|
-
return true;
|
|
11296
|
-
}
|
|
11297
11270
|
// We shouldn't ditch labels.
|
|
11298
11271
|
if (!ignoreLabels && field.field_type.type === 'Label' && (field.label || '').length > 0) {
|
|
11299
11272
|
return true;
|
|
@@ -11581,163 +11554,6 @@
|
|
|
11581
11554
|
}], null, null);
|
|
11582
11555
|
})();
|
|
11583
11556
|
|
|
11584
|
-
var LinkedCasesService = /** @class */ (function () {
|
|
11585
|
-
function LinkedCasesService(jurisdictionService, searchService) {
|
|
11586
|
-
var _this = this;
|
|
11587
|
-
this.jurisdictionService = jurisdictionService;
|
|
11588
|
-
this.searchService = searchService;
|
|
11589
|
-
this.caseFieldValue = [];
|
|
11590
|
-
this.isLinkedCasesEventTrigger = false;
|
|
11591
|
-
this.linkCaseReasons = [];
|
|
11592
|
-
this.linkedCases = [];
|
|
11593
|
-
this.initialCaseLinks = [];
|
|
11594
|
-
this.editMode = false;
|
|
11595
|
-
this.jurisdictionsResponse = [];
|
|
11596
|
-
this.serverError = null;
|
|
11597
|
-
this.serverLinkedApiError = null;
|
|
11598
|
-
this.isServerReasonCodeError = false;
|
|
11599
|
-
this.caseJurisdictionID = null;
|
|
11600
|
-
this.groupLinkedCasesByCaseType = function (arrObj, key) {
|
|
11601
|
-
return arrObj.reduce(function (rv, x) {
|
|
11602
|
-
(rv[x.value[key]] = rv[x.value[key]] || []).push(x.value['CaseReference']);
|
|
11603
|
-
return rv;
|
|
11604
|
-
}, {});
|
|
11605
|
-
};
|
|
11606
|
-
this.jurisdictionService.getJurisdictions().subscribe(function (jurisdictions) {
|
|
11607
|
-
_this.jurisdictionsResponse = jurisdictions;
|
|
11608
|
-
}, function (error) {
|
|
11609
|
-
_this.serverJurisdictionError = true;
|
|
11610
|
-
});
|
|
11611
|
-
}
|
|
11612
|
-
LinkedCasesService.prototype.constructElasticSearchQuery = function (caseIds, size) {
|
|
11613
|
-
return {
|
|
11614
|
-
query: {
|
|
11615
|
-
terms: {
|
|
11616
|
-
reference: caseIds,
|
|
11617
|
-
},
|
|
11618
|
-
},
|
|
11619
|
-
size: size,
|
|
11620
|
-
};
|
|
11621
|
-
};
|
|
11622
|
-
LinkedCasesService.prototype.mapResponse = function (esSearchCasesResponse) {
|
|
11623
|
-
var caseInfo = this.caseFieldValue.find(function (item) { return item.value && item.value.CaseReference === esSearchCasesResponse.case_id; });
|
|
11624
|
-
return caseInfo && {
|
|
11625
|
-
caseReference: esSearchCasesResponse.case_id,
|
|
11626
|
-
caseName: esSearchCasesResponse.case_fields.caseNameHmctsInternal || LinkedCasesService.CASE_NAME_MISSING_TEXT,
|
|
11627
|
-
caseType: this.mapLookupIDToValueFromJurisdictions('CASE_TYPE', esSearchCasesResponse.case_fields['[CASE_TYPE]']),
|
|
11628
|
-
service: this.mapLookupIDToValueFromJurisdictions('JURISDICTION', esSearchCasesResponse.case_fields['[JURISDICTION]']),
|
|
11629
|
-
state: this.mapLookupIDToValueFromJurisdictions('STATE', esSearchCasesResponse.case_fields['[STATE]']),
|
|
11630
|
-
reasons: caseInfo.value && caseInfo.value.ReasonForLink &&
|
|
11631
|
-
caseInfo.value.ReasonForLink.map(function (reason) { return reason.value && reason.value.Reason; }),
|
|
11632
|
-
};
|
|
11633
|
-
};
|
|
11634
|
-
LinkedCasesService.prototype.searchCasesByCaseIds = function (searchCasesResponse) {
|
|
11635
|
-
return rxjs.forkJoin(searchCasesResponse);
|
|
11636
|
-
};
|
|
11637
|
-
LinkedCasesService.prototype.getAllLinkedCaseInformation = function () {
|
|
11638
|
-
var _this = this;
|
|
11639
|
-
var searchCasesResponse = [];
|
|
11640
|
-
var linkedCaseIds = this.groupLinkedCasesByCaseType(this.caseFieldValue, 'CaseType');
|
|
11641
|
-
Object.keys(linkedCaseIds).forEach(function (key) {
|
|
11642
|
-
var esQuery = _this.constructElasticSearchQuery(linkedCaseIds[key], 100);
|
|
11643
|
-
var query = _this.searchService.searchCasesByIds(key, esQuery, SearchService.VIEW_WORKBASKET);
|
|
11644
|
-
searchCasesResponse.push(query);
|
|
11645
|
-
});
|
|
11646
|
-
if (searchCasesResponse.length) {
|
|
11647
|
-
this.searchCasesByCaseIds(searchCasesResponse).subscribe(function (searchCases) {
|
|
11648
|
-
var casesResponse = [];
|
|
11649
|
-
searchCases.forEach(function (response) {
|
|
11650
|
-
response.results.forEach(function (result) {
|
|
11651
|
-
casesResponse.push(_this.mapResponse(result));
|
|
11652
|
-
});
|
|
11653
|
-
});
|
|
11654
|
-
var caseLinks = casesResponse.map(function (item) {
|
|
11655
|
-
return {
|
|
11656
|
-
caseReference: item.caseReference,
|
|
11657
|
-
caseName: item.caseName,
|
|
11658
|
-
caseService: item.service,
|
|
11659
|
-
caseType: item.caseType,
|
|
11660
|
-
unlink: false,
|
|
11661
|
-
reasons: item.reasons && item.reasons.map(function (reason) {
|
|
11662
|
-
return {
|
|
11663
|
-
reasonCode: reason
|
|
11664
|
-
};
|
|
11665
|
-
}),
|
|
11666
|
-
};
|
|
11667
|
-
});
|
|
11668
|
-
_this.linkedCases = caseLinks;
|
|
11669
|
-
_this.serverLinkedApiError = null;
|
|
11670
|
-
}, function (err) {
|
|
11671
|
-
_this.serverLinkedApiError = {
|
|
11672
|
-
id: 'backendError', message: 'Some case information is not available at the moment'
|
|
11673
|
-
};
|
|
11674
|
-
});
|
|
11675
|
-
}
|
|
11676
|
-
};
|
|
11677
|
-
LinkedCasesService.prototype.mapLookupIDToValueFromJurisdictions = function (fieldName, fieldValue) {
|
|
11678
|
-
var _this = this;
|
|
11679
|
-
var selectedJurisdiction = this.jurisdictionsResponse &&
|
|
11680
|
-
this.jurisdictionsResponse.find(function (item) { return item.id === _this.caseDetails.case_type.jurisdiction.id; });
|
|
11681
|
-
var selectedCaseType = selectedJurisdiction && selectedJurisdiction.caseTypes.find(function (item) { return item.id === _this.caseDetails.case_type.id; });
|
|
11682
|
-
var state = selectedCaseType && selectedCaseType.states.find(function (item) { return item.id === fieldValue; });
|
|
11683
|
-
switch (fieldName) {
|
|
11684
|
-
case 'JURISDICTION':
|
|
11685
|
-
return selectedJurisdiction && selectedJurisdiction.description;
|
|
11686
|
-
case 'CASE_TYPE':
|
|
11687
|
-
return selectedCaseType && selectedCaseType.name;
|
|
11688
|
-
case 'CASE_TYPE_DESCRIPTION':
|
|
11689
|
-
return selectedCaseType && selectedCaseType.description;
|
|
11690
|
-
case 'STATE':
|
|
11691
|
-
return state && state.name || fieldValue;
|
|
11692
|
-
case 'STATE_DESCRIPTION':
|
|
11693
|
-
return state && state.description || fieldValue;
|
|
11694
|
-
default:
|
|
11695
|
-
break;
|
|
11696
|
-
}
|
|
11697
|
-
};
|
|
11698
|
-
LinkedCasesService.prototype.getCaseName = function (searchCasesResponse) {
|
|
11699
|
-
var caseName = LinkedCasesService.CASE_NAME_MISSING_TEXT;
|
|
11700
|
-
var tabs = searchCasesResponse.tabs.filter(function (tab) {
|
|
11701
|
-
var caseNameHmctsInternalField = tab.fields.find(function (field) { return field.id === 'caseNameHmctsInternal'; });
|
|
11702
|
-
if (caseNameHmctsInternalField) {
|
|
11703
|
-
caseName = caseNameHmctsInternalField.value;
|
|
11704
|
-
}
|
|
11705
|
-
});
|
|
11706
|
-
return caseName;
|
|
11707
|
-
};
|
|
11708
|
-
return LinkedCasesService;
|
|
11709
|
-
}());
|
|
11710
|
-
LinkedCasesService.CASE_NAME_MISSING_TEXT = 'Case name missing';
|
|
11711
|
-
LinkedCasesService.ɵfac = function LinkedCasesService_Factory(t) { return new (t || LinkedCasesService)(i0__namespace.ɵɵinject(JurisdictionService), i0__namespace.ɵɵinject(SearchService)); };
|
|
11712
|
-
LinkedCasesService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: LinkedCasesService, factory: LinkedCasesService.ɵfac });
|
|
11713
|
-
(function () {
|
|
11714
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(LinkedCasesService, [{
|
|
11715
|
-
type: i0.Injectable
|
|
11716
|
-
}], function () { return [{ type: JurisdictionService }, { type: SearchService }]; }, null);
|
|
11717
|
-
})();
|
|
11718
|
-
|
|
11719
|
-
var LinkCasesReasonValuePipe = /** @class */ (function () {
|
|
11720
|
-
function LinkCasesReasonValuePipe(linkedCasesService) {
|
|
11721
|
-
this.linkedCasesService = linkedCasesService;
|
|
11722
|
-
}
|
|
11723
|
-
LinkCasesReasonValuePipe.prototype.transform = function (reasonCode) {
|
|
11724
|
-
var reasonCodeMapping = this.linkedCasesService.linkCaseReasons &&
|
|
11725
|
-
this.linkedCasesService.linkCaseReasons.find(function (reason) { return reason.key === reasonCode; });
|
|
11726
|
-
return reasonCodeMapping && reasonCodeMapping.value_en;
|
|
11727
|
-
};
|
|
11728
|
-
return LinkCasesReasonValuePipe;
|
|
11729
|
-
}());
|
|
11730
|
-
LinkCasesReasonValuePipe.ɵfac = function LinkCasesReasonValuePipe_Factory(t) { return new (t || LinkCasesReasonValuePipe)(i0__namespace.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
11731
|
-
LinkCasesReasonValuePipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "ccdLinkCasesReasonValue", type: LinkCasesReasonValuePipe, pure: true });
|
|
11732
|
-
(function () {
|
|
11733
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(LinkCasesReasonValuePipe, [{
|
|
11734
|
-
type: i0.Pipe,
|
|
11735
|
-
args: [{
|
|
11736
|
-
name: 'ccdLinkCasesReasonValue'
|
|
11737
|
-
}]
|
|
11738
|
-
}], function () { return [{ type: LinkedCasesService }]; }, null);
|
|
11739
|
-
})();
|
|
11740
|
-
|
|
11741
11557
|
var SortOrder;
|
|
11742
11558
|
(function (SortOrder) {
|
|
11743
11559
|
SortOrder[SortOrder["ASCENDING"] = 0] = "ASCENDING";
|
|
@@ -11778,8 +11594,7 @@
|
|
|
11778
11594
|
CcdCYAPageLabelFilterPipe,
|
|
11779
11595
|
ReadFieldsFilterPipe,
|
|
11780
11596
|
CcdTabFieldsPipe,
|
|
11781
|
-
CcdPageFieldsPipe
|
|
11782
|
-
LinkCasesReasonValuePipe
|
|
11597
|
+
CcdPageFieldsPipe
|
|
11783
11598
|
];
|
|
11784
11599
|
var PipesModule = /** @class */ (function () {
|
|
11785
11600
|
function PipesModule() {
|
|
@@ -11799,16 +11614,14 @@
|
|
|
11799
11614
|
CcdCYAPageLabelFilterPipe,
|
|
11800
11615
|
ReadFieldsFilterPipe,
|
|
11801
11616
|
CcdTabFieldsPipe,
|
|
11802
|
-
CcdPageFieldsPipe,
|
|
11803
|
-
LinkCasesReasonValuePipe], imports: [i2.CommonModule], exports: [CaseReferencePipe,
|
|
11617
|
+
CcdPageFieldsPipe], imports: [i2.CommonModule], exports: [CaseReferencePipe,
|
|
11804
11618
|
SortSearchResultPipe,
|
|
11805
11619
|
CcdCaseTitlePipe,
|
|
11806
11620
|
CcdCollectionTableCaseFieldsFilterPipe,
|
|
11807
11621
|
CcdCYAPageLabelFilterPipe,
|
|
11808
11622
|
ReadFieldsFilterPipe,
|
|
11809
11623
|
CcdTabFieldsPipe,
|
|
11810
|
-
CcdPageFieldsPipe
|
|
11811
|
-
LinkCasesReasonValuePipe] });
|
|
11624
|
+
CcdPageFieldsPipe] });
|
|
11812
11625
|
})();
|
|
11813
11626
|
(function () {
|
|
11814
11627
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PipesModule, [{
|
|
@@ -11868,7 +11681,7 @@
|
|
|
11868
11681
|
return AddressOption;
|
|
11869
11682
|
}());
|
|
11870
11683
|
|
|
11871
|
-
var _c0$
|
|
11684
|
+
var _c0$P = ["writeComplexFieldComponent"];
|
|
11872
11685
|
function WriteAddressFieldComponent_div_1_div_5_span_5_Template(rf, ctx) {
|
|
11873
11686
|
if (rf & 1) {
|
|
11874
11687
|
i0__namespace.ɵɵelementStart(0, "span", 14);
|
|
@@ -12103,7 +11916,7 @@
|
|
|
12103
11916
|
WriteAddressFieldComponent.ɵfac = function WriteAddressFieldComponent_Factory(t) { return new (t || WriteAddressFieldComponent)(i0__namespace.ɵɵdirectiveInject(AddressesService), i0__namespace.ɵɵdirectiveInject(IsCompoundPipe)); };
|
|
12104
11917
|
WriteAddressFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["ccd-write-address-field"]], viewQuery: function WriteAddressFieldComponent_Query(rf, ctx) {
|
|
12105
11918
|
if (rf & 1) {
|
|
12106
|
-
i0__namespace.ɵɵviewQuery(_c0$
|
|
11919
|
+
i0__namespace.ɵɵviewQuery(_c0$P, 1);
|
|
12107
11920
|
i0__namespace.ɵɵviewQuery(FocusElementDirective, 1);
|
|
12108
11921
|
}
|
|
12109
11922
|
if (rf & 2) {
|
|
@@ -12205,7 +12018,7 @@
|
|
|
12205
12018
|
if (rf & 2) {
|
|
12206
12019
|
var ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
12207
12020
|
i0__namespace.ɵɵadvance(1);
|
|
12208
|
-
i0__namespace.ɵɵproperty("url", ctx_r2.currentDocument.document_binary_url)("downloadFileName", ctx_r2.currentDocument.document_filename)("showToolbar", true)("contentType", ctx_r2.currentDocument.content_type)("enableAnnotations", true)("enableRedactions", true);
|
|
12021
|
+
i0__namespace.ɵɵproperty("url", ctx_r2.currentDocument.document_binary_url)("downloadFileName", ctx_r2.currentDocument.document_filename)("showToolbar", true)("contentType", ctx_r2.currentDocument.content_type)("enableAnnotations", true)("enableRedactions", true)("height", "94.5vh");
|
|
12209
12022
|
}
|
|
12210
12023
|
}
|
|
12211
12024
|
function CaseFileViewFieldComponent_div_1_Template(rf, ctx) {
|
|
@@ -12223,7 +12036,7 @@
|
|
|
12223
12036
|
i0__namespace.ɵɵelementEnd();
|
|
12224
12037
|
i0__namespace.ɵɵelement(6, "div", 9);
|
|
12225
12038
|
i0__namespace.ɵɵelementStart(7, "div", 10);
|
|
12226
|
-
i0__namespace.ɵɵtemplate(8, CaseFileViewFieldComponent_div_1_ng_container_8_Template, 2,
|
|
12039
|
+
i0__namespace.ɵɵtemplate(8, CaseFileViewFieldComponent_div_1_ng_container_8_Template, 2, 7, "ng-container", 1);
|
|
12227
12040
|
i0__namespace.ɵɵelementEnd();
|
|
12228
12041
|
i0__namespace.ɵɵelementEnd();
|
|
12229
12042
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -12304,7 +12117,7 @@
|
|
|
12304
12117
|
}());
|
|
12305
12118
|
CaseFileViewFieldComponent.PARAM_CASE_ID = 'cid';
|
|
12306
12119
|
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)); };
|
|
12307
|
-
CaseFileViewFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls: 2, vars: 2, consts: [["class", "govuk-grid-column-two-thirds", 4, "ngIf"], [4, "ngIf"], [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"]], template: function CaseFileViewFieldComponent_Template(rf, ctx) {
|
|
12120
|
+
CaseFileViewFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls: 2, vars: 2, consts: [["class", "govuk-grid-column-two-thirds", 4, "ngIf"], [4, "ngIf"], [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) {
|
|
12308
12121
|
if (rf & 1) {
|
|
12309
12122
|
i0__namespace.ɵɵtemplate(0, CaseFileViewFieldComponent_div_0_Template, 5, 0, "div", 0);
|
|
12310
12123
|
i0__namespace.ɵɵtemplate(1, CaseFileViewFieldComponent_div_1_Template, 9, 3, "div", 1);
|
|
@@ -12347,7 +12160,7 @@
|
|
|
12347
12160
|
if (rf & 2) {
|
|
12348
12161
|
var ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
12349
12162
|
i0__namespace.ɵɵadvance(1);
|
|
12350
|
-
i0__namespace.ɵɵproperty("url", ctx_r2.currentDocument.document_binary_url)("downloadFileName", ctx_r2.currentDocument.document_filename)("showToolbar", true)("contentType", ctx_r2.currentDocument.content_type)("enableAnnotations", true)("enableRedactions", true);
|
|
12163
|
+
i0__namespace.ɵɵproperty("url", ctx_r2.currentDocument.document_binary_url)("downloadFileName", ctx_r2.currentDocument.document_filename)("showToolbar", true)("contentType", ctx_r2.currentDocument.content_type)("enableAnnotations", true)("enableRedactions", true)("height", "94.5vh");
|
|
12351
12164
|
}
|
|
12352
12165
|
}
|
|
12353
12166
|
function CaseFileViewFieldReadComponent_div_1_Template(rf, ctx) {
|
|
@@ -12365,7 +12178,7 @@
|
|
|
12365
12178
|
i0__namespace.ɵɵelementEnd();
|
|
12366
12179
|
i0__namespace.ɵɵelement(6, "div", 9);
|
|
12367
12180
|
i0__namespace.ɵɵelementStart(7, "div", 10);
|
|
12368
|
-
i0__namespace.ɵɵtemplate(8, CaseFileViewFieldReadComponent_div_1_ng_container_8_Template, 2,
|
|
12181
|
+
i0__namespace.ɵɵtemplate(8, CaseFileViewFieldReadComponent_div_1_ng_container_8_Template, 2, 7, "ng-container", 1);
|
|
12369
12182
|
i0__namespace.ɵɵelementEnd();
|
|
12370
12183
|
i0__namespace.ɵɵelementEnd();
|
|
12371
12184
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -12388,7 +12201,7 @@
|
|
|
12388
12201
|
return CaseFileViewFieldReadComponent;
|
|
12389
12202
|
}(CaseFileViewFieldComponent));
|
|
12390
12203
|
CaseFileViewFieldReadComponent.ɵfac = function CaseFileViewFieldReadComponent_Factory(t) { return ɵCaseFileViewFieldReadComponent_BaseFactory(t || CaseFileViewFieldReadComponent); };
|
|
12391
|
-
CaseFileViewFieldReadComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldReadComponent, selectors: [["ccd-case-file-view-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 2, vars: 2, consts: [["class", "govuk-grid-column-two-thirds", 4, "ngIf"], [4, "ngIf"], [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"]], template: function CaseFileViewFieldReadComponent_Template(rf, ctx) {
|
|
12204
|
+
CaseFileViewFieldReadComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldReadComponent, selectors: [["ccd-case-file-view-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 2, vars: 2, consts: [["class", "govuk-grid-column-two-thirds", 4, "ngIf"], [4, "ngIf"], [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 CaseFileViewFieldReadComponent_Template(rf, ctx) {
|
|
12392
12205
|
if (rf & 1) {
|
|
12393
12206
|
i0__namespace.ɵɵtemplate(0, CaseFileViewFieldReadComponent_div_0_Template, 5, 0, "div", 0);
|
|
12394
12207
|
i0__namespace.ɵɵtemplate(1, CaseFileViewFieldReadComponent_div_1_Template, 9, 3, "div", 1);
|
|
@@ -12769,7 +12582,7 @@
|
|
|
12769
12582
|
i0__namespace.ɵɵproperty("formGroup", ctx_r10.caseFlagParentFormGroup)("optional", ctx_r10.flagCommentsOptional);
|
|
12770
12583
|
}
|
|
12771
12584
|
}
|
|
12772
|
-
var _c0$
|
|
12585
|
+
var _c0$O = function (a0) { return { "form-group-error": a0 }; };
|
|
12773
12586
|
function WriteCaseFlagFieldComponent_div_1_Template(rf, ctx) {
|
|
12774
12587
|
if (rf & 1) {
|
|
12775
12588
|
i0__namespace.ɵɵelementStart(0, "div", 8);
|
|
@@ -12790,7 +12603,7 @@
|
|
|
12790
12603
|
i0__namespace.ɵɵadvance(1);
|
|
12791
12604
|
i0__namespace.ɵɵproperty("ngSwitch", ctx_r1.fieldState);
|
|
12792
12605
|
i0__namespace.ɵɵadvance(1);
|
|
12793
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
12606
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$O, ctx_r1.errorMessages.length > 0));
|
|
12794
12607
|
i0__namespace.ɵɵadvance(1);
|
|
12795
12608
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.createFlagCaption, " ");
|
|
12796
12609
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -13176,8 +12989,8 @@
|
|
|
13176
12989
|
|
|
13177
12990
|
function ReadCaseLinkFieldComponent_a_0_Template(rf, ctx) {
|
|
13178
12991
|
if (rf & 1) {
|
|
13179
|
-
i0__namespace.ɵɵelementStart(0, "a",
|
|
13180
|
-
i0__namespace.ɵɵelementStart(1, "span",
|
|
12992
|
+
i0__namespace.ɵɵelementStart(0, "a", 1);
|
|
12993
|
+
i0__namespace.ɵɵelementStart(1, "span", 2);
|
|
13181
12994
|
i0__namespace.ɵɵtext(2);
|
|
13182
12995
|
i0__namespace.ɵɵpipe(3, "ccdCaseReference");
|
|
13183
12996
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -13190,60 +13003,38 @@
|
|
|
13190
13003
|
i0__namespace.ɵɵtextInterpolate(ctx_r0.caseField.value.CaseReference ? i0__namespace.ɵɵpipeBind1(3, 2, ctx_r0.caseField.value.CaseReference) : "");
|
|
13191
13004
|
}
|
|
13192
13005
|
}
|
|
13193
|
-
function ReadCaseLinkFieldComponent_ng_container_1_Template(rf, ctx) {
|
|
13194
|
-
if (rf & 1) {
|
|
13195
|
-
i0__namespace.ɵɵelementContainerStart(0);
|
|
13196
|
-
i0__namespace.ɵɵelement(1, "ccd-read-linked-cases", 4);
|
|
13197
|
-
i0__namespace.ɵɵelementContainerEnd();
|
|
13198
|
-
}
|
|
13199
|
-
if (rf & 2) {
|
|
13200
|
-
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
13201
|
-
i0__namespace.ɵɵadvance(1);
|
|
13202
|
-
i0__namespace.ɵɵproperty("caseField", ctx_r1.caseField);
|
|
13203
|
-
}
|
|
13204
|
-
}
|
|
13205
13006
|
var ReadCaseLinkFieldComponent = /** @class */ (function (_super) {
|
|
13206
13007
|
__extends(ReadCaseLinkFieldComponent, _super);
|
|
13207
13008
|
function ReadCaseLinkFieldComponent() {
|
|
13208
|
-
|
|
13209
|
-
_this.paletteContext = exports.PaletteContext;
|
|
13210
|
-
return _this;
|
|
13009
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
13211
13010
|
}
|
|
13212
13011
|
ReadCaseLinkFieldComponent.prototype.hasReference = function () {
|
|
13213
13012
|
return this.caseField.value && this.caseField.value.CaseReference;
|
|
13214
13013
|
};
|
|
13215
|
-
ReadCaseLinkFieldComponent.prototype.hasCaseLinkCollection = function () {
|
|
13216
|
-
return (this.caseField.field_type &&
|
|
13217
|
-
this.caseField.field_type.type === 'Collection' &&
|
|
13218
|
-
this.caseField.field_type.collection_field_type.id === 'CaseLink');
|
|
13219
|
-
};
|
|
13220
13014
|
return ReadCaseLinkFieldComponent;
|
|
13221
13015
|
}(AbstractFieldReadComponent));
|
|
13222
13016
|
ReadCaseLinkFieldComponent.ɵfac = function ReadCaseLinkFieldComponent_Factory(t) { return ɵReadCaseLinkFieldComponent_BaseFactory(t || ReadCaseLinkFieldComponent); };
|
|
13223
|
-
ReadCaseLinkFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadCaseLinkFieldComponent, selectors: [["ccd-read-case-link-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls:
|
|
13017
|
+
ReadCaseLinkFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadCaseLinkFieldComponent, selectors: [["ccd-read-case-link-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["target", "_blank", 3, "href", 4, "ngIf"], ["target", "_blank", 3, "href"], [1, "text-16"]], template: function ReadCaseLinkFieldComponent_Template(rf, ctx) {
|
|
13224
13018
|
if (rf & 1) {
|
|
13225
13019
|
i0__namespace.ɵɵtemplate(0, ReadCaseLinkFieldComponent_a_0_Template, 4, 4, "a", 0);
|
|
13226
|
-
i0__namespace.ɵɵtemplate(1, ReadCaseLinkFieldComponent_ng_container_1_Template, 2, 1, "ng-container", 1);
|
|
13227
13020
|
}
|
|
13228
13021
|
if (rf & 2) {
|
|
13229
13022
|
i0__namespace.ɵɵproperty("ngIf", ctx.hasReference());
|
|
13230
|
-
i0__namespace.ɵɵadvance(1);
|
|
13231
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.hasCaseLinkCollection());
|
|
13232
13023
|
}
|
|
13233
|
-
}, encapsulation: 2 });
|
|
13024
|
+
}, directives: [i2__namespace.NgIf], pipes: [CaseReferencePipe], encapsulation: 2 });
|
|
13234
13025
|
var ɵReadCaseLinkFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(ReadCaseLinkFieldComponent);
|
|
13235
13026
|
(function () {
|
|
13236
13027
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ReadCaseLinkFieldComponent, [{
|
|
13237
13028
|
type: i0.Component,
|
|
13238
13029
|
args: [{
|
|
13239
13030
|
selector: 'ccd-read-case-link-field',
|
|
13240
|
-
templateUrl: 'read-case-link-field.html'
|
|
13031
|
+
templateUrl: 'read-case-link-field.html'
|
|
13241
13032
|
}]
|
|
13242
13033
|
}], null, null);
|
|
13243
13034
|
})();
|
|
13244
13035
|
|
|
13245
|
-
var _c0$
|
|
13246
|
-
function
|
|
13036
|
+
var _c0$N = ["writeComplexFieldComponent"];
|
|
13037
|
+
function WriteCaseLinkFieldComponent_span_2_Template(rf, ctx) {
|
|
13247
13038
|
if (rf & 1) {
|
|
13248
13039
|
i0__namespace.ɵɵelementStart(0, "span", 6);
|
|
13249
13040
|
i0__namespace.ɵɵtext(1);
|
|
@@ -13252,12 +13043,12 @@
|
|
|
13252
13043
|
i0__namespace.ɵɵelementEnd();
|
|
13253
13044
|
}
|
|
13254
13045
|
if (rf & 2) {
|
|
13255
|
-
var
|
|
13046
|
+
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
13256
13047
|
i0__namespace.ɵɵadvance(1);
|
|
13257
|
-
i0__namespace.ɵɵ
|
|
13048
|
+
i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind1(3, 3, ctx_r0.caseField)), "}");
|
|
13258
13049
|
}
|
|
13259
13050
|
}
|
|
13260
|
-
function
|
|
13051
|
+
function WriteCaseLinkFieldComponent_span_3_Template(rf, ctx) {
|
|
13261
13052
|
if (rf & 1) {
|
|
13262
13053
|
i0__namespace.ɵɵelementStart(0, "span", 7);
|
|
13263
13054
|
i0__namespace.ɵɵtext(1);
|
|
@@ -13265,65 +13056,45 @@
|
|
|
13265
13056
|
i0__namespace.ɵɵelementEnd();
|
|
13266
13057
|
}
|
|
13267
13058
|
if (rf & 2) {
|
|
13268
|
-
var
|
|
13269
|
-
i0__namespace.ɵɵadvance(1);
|
|
13270
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, ctx_r3.caseField.hint_text));
|
|
13271
|
-
}
|
|
13272
|
-
}
|
|
13273
|
-
function WriteCaseLinkFieldComponent_div_1_Template(rf, ctx) {
|
|
13274
|
-
if (rf & 1) {
|
|
13275
|
-
i0__namespace.ɵɵelementStart(0, "div", 1);
|
|
13276
|
-
i0__namespace.ɵɵelementStart(1, "label", 2);
|
|
13277
|
-
i0__namespace.ɵɵtemplate(2, WriteCaseLinkFieldComponent_div_1_span_2_Template, 4, 5, "span", 3);
|
|
13278
|
-
i0__namespace.ɵɵelementEnd();
|
|
13279
|
-
i0__namespace.ɵɵtemplate(3, WriteCaseLinkFieldComponent_div_1_span_3_Template, 3, 3, "span", 4);
|
|
13280
|
-
i0__namespace.ɵɵelement(4, "input", 5);
|
|
13281
|
-
i0__namespace.ɵɵelementEnd();
|
|
13282
|
-
}
|
|
13283
|
-
if (rf & 2) {
|
|
13284
|
-
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
13285
|
-
i0__namespace.ɵɵadvance(1);
|
|
13286
|
-
i0__namespace.ɵɵproperty("for", ctx_r0.id());
|
|
13287
|
-
i0__namespace.ɵɵadvance(1);
|
|
13288
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r0.caseField.label);
|
|
13289
|
-
i0__namespace.ɵɵadvance(1);
|
|
13290
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r0.caseField.hint_text);
|
|
13059
|
+
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
13291
13060
|
i0__namespace.ɵɵadvance(1);
|
|
13292
|
-
i0__namespace.ɵɵ
|
|
13061
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, ctx_r1.caseField.hint_text));
|
|
13293
13062
|
}
|
|
13294
13063
|
}
|
|
13295
|
-
function
|
|
13064
|
+
function WriteCaseLinkFieldComponent_span_4_Template(rf, ctx) {
|
|
13296
13065
|
if (rf & 1) {
|
|
13297
|
-
|
|
13298
|
-
i0__namespace.ɵɵ
|
|
13299
|
-
i0__namespace.ɵɵ
|
|
13300
|
-
i0__namespace.ɵɵ
|
|
13301
|
-
i0__namespace.ɵɵelementEnd();
|
|
13066
|
+
i0__namespace.ɵɵelementStart(0, "span", 8);
|
|
13067
|
+
i0__namespace.ɵɵtext(1);
|
|
13068
|
+
i0__namespace.ɵɵpipe(2, "rpxTranslate");
|
|
13069
|
+
i0__namespace.ɵɵpipe(3, "ccdFirstError");
|
|
13302
13070
|
i0__namespace.ɵɵelementEnd();
|
|
13303
13071
|
}
|
|
13304
13072
|
if (rf & 2) {
|
|
13305
|
-
var
|
|
13073
|
+
var ctx_r2 = i0__namespace.ɵɵnextContext();
|
|
13306
13074
|
i0__namespace.ɵɵadvance(1);
|
|
13307
|
-
i0__namespace.ɵɵ
|
|
13075
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.caseReferenceControl.errors, ctx_r2.caseField.label)));
|
|
13308
13076
|
}
|
|
13309
13077
|
}
|
|
13078
|
+
var _c1$k = function (a0) { return { "form-group-error": a0 }; };
|
|
13310
13079
|
var WriteCaseLinkFieldComponent = /** @class */ (function (_super) {
|
|
13311
13080
|
__extends(WriteCaseLinkFieldComponent, _super);
|
|
13312
|
-
function WriteCaseLinkFieldComponent(
|
|
13313
|
-
|
|
13314
|
-
_this.linkedCasesService = linkedCasesService;
|
|
13315
|
-
_this.caseFields = [];
|
|
13316
|
-
return _this;
|
|
13081
|
+
function WriteCaseLinkFieldComponent() {
|
|
13082
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
13317
13083
|
}
|
|
13318
13084
|
WriteCaseLinkFieldComponent.prototype.ngOnInit = function () {
|
|
13319
13085
|
var e_1, _a;
|
|
13320
|
-
|
|
13321
|
-
this.formArray['caseField'] = this.caseField;
|
|
13322
|
-
if (!this.hasCaseLinkCollection()) {
|
|
13086
|
+
if (this.caseField.value) {
|
|
13323
13087
|
this.caseLinkGroup = this.registerControl(new i2$1.FormGroup({
|
|
13324
13088
|
CaseReference: new i2$1.FormControl(this.caseField.value.CaseReference, i2$1.Validators.required),
|
|
13325
13089
|
}), true);
|
|
13326
13090
|
}
|
|
13091
|
+
else {
|
|
13092
|
+
this.caseLinkGroup = this.registerControl(new i2$1.FormGroup({
|
|
13093
|
+
CaseReference: new i2$1.FormControl(null, i2$1.Validators.required),
|
|
13094
|
+
}), true);
|
|
13095
|
+
}
|
|
13096
|
+
this.caseReferenceControl = this.caseLinkGroup.controls['CaseReference'];
|
|
13097
|
+
this.caseReferenceControl.setValidators(this.caseReferenceValidator());
|
|
13327
13098
|
// Ensure that all sub-fields inherit the same value for retain_hidden_value as this parent; although a CaseLink
|
|
13328
13099
|
// field uses the Complex type, it is meant to be treated as one field
|
|
13329
13100
|
if (this.caseField && this.caseField.field_type.type === 'Complex') {
|
|
@@ -13341,18 +13112,23 @@
|
|
|
13341
13112
|
finally { if (e_1) throw e_1.error; }
|
|
13342
13113
|
}
|
|
13343
13114
|
}
|
|
13344
|
-
this.containsCaseLinkCollection = this.hasCaseLinkCollection();
|
|
13345
13115
|
};
|
|
13346
|
-
WriteCaseLinkFieldComponent.prototype.
|
|
13347
|
-
var
|
|
13348
|
-
|
|
13349
|
-
|
|
13350
|
-
|
|
13351
|
-
|
|
13352
|
-
|
|
13353
|
-
|
|
13354
|
-
|
|
13355
|
-
|
|
13116
|
+
WriteCaseLinkFieldComponent.prototype.caseReferenceValidator = function () {
|
|
13117
|
+
var _this = this;
|
|
13118
|
+
return function (control) {
|
|
13119
|
+
if (control.value) {
|
|
13120
|
+
if (_this.validCaseReference(control.value)) {
|
|
13121
|
+
return null;
|
|
13122
|
+
}
|
|
13123
|
+
return { error: 'Please use a valid 16 Digit Case Reference' };
|
|
13124
|
+
}
|
|
13125
|
+
else {
|
|
13126
|
+
if (control.touched) {
|
|
13127
|
+
return { error: 'Please use a valid 16 Digit Case Reference' };
|
|
13128
|
+
}
|
|
13129
|
+
}
|
|
13130
|
+
return null;
|
|
13131
|
+
};
|
|
13356
13132
|
};
|
|
13357
13133
|
WriteCaseLinkFieldComponent.prototype.validCaseReference = function (valueString) {
|
|
13358
13134
|
if (!valueString) {
|
|
@@ -13360,36 +13136,43 @@
|
|
|
13360
13136
|
}
|
|
13361
13137
|
return new RegExp('^\\b\\d{4}[ -]?\\d{4}[ -]?\\d{4}[ -]?\\d{4}\\b$').test(valueString.trim());
|
|
13362
13138
|
};
|
|
13363
|
-
WriteCaseLinkFieldComponent.prototype.hasCaseLinkCollection = function () {
|
|
13364
|
-
return (this.caseField.field_type &&
|
|
13365
|
-
this.caseField.field_type.type === 'Collection' &&
|
|
13366
|
-
this.caseField.field_type.collection_field_type.id === 'CaseLink');
|
|
13367
|
-
};
|
|
13368
13139
|
return WriteCaseLinkFieldComponent;
|
|
13369
13140
|
}(AbstractFieldWriteComponent));
|
|
13370
|
-
WriteCaseLinkFieldComponent.ɵfac = function WriteCaseLinkFieldComponent_Factory(t) { return
|
|
13141
|
+
WriteCaseLinkFieldComponent.ɵfac = function WriteCaseLinkFieldComponent_Factory(t) { return ɵWriteCaseLinkFieldComponent_BaseFactory(t || WriteCaseLinkFieldComponent); };
|
|
13371
13142
|
WriteCaseLinkFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCaseLinkFieldComponent, selectors: [["ccd-write-case-link-field"]], viewQuery: function WriteCaseLinkFieldComponent_Query(rf, ctx) {
|
|
13372
13143
|
if (rf & 1) {
|
|
13373
|
-
i0__namespace.ɵɵviewQuery(_c0$
|
|
13144
|
+
i0__namespace.ɵɵviewQuery(_c0$N, 1);
|
|
13374
13145
|
}
|
|
13375
13146
|
if (rf & 2) {
|
|
13376
13147
|
var _t = void 0;
|
|
13377
13148
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.writeComplexFieldComponent = _t.first);
|
|
13378
13149
|
}
|
|
13379
|
-
},
|
|
13150
|
+
}, features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 6, vars: 9, consts: [[1, "form-group", 3, "ngClass"], [3, "for"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], ["type", "text", 1, "form-control", "bottom-30", 3, "id", "formControl"], [1, "form-label"], [1, "form-hint"], [1, "error-message"]], template: function WriteCaseLinkFieldComponent_Template(rf, ctx) {
|
|
13380
13151
|
if (rf & 1) {
|
|
13381
|
-
i0__namespace.ɵɵ
|
|
13382
|
-
i0__namespace.ɵɵ
|
|
13383
|
-
i0__namespace.ɵɵtemplate(2,
|
|
13384
|
-
i0__namespace.ɵɵ
|
|
13152
|
+
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
13153
|
+
i0__namespace.ɵɵelementStart(1, "label", 1);
|
|
13154
|
+
i0__namespace.ɵɵtemplate(2, WriteCaseLinkFieldComponent_span_2_Template, 4, 5, "span", 2);
|
|
13155
|
+
i0__namespace.ɵɵelementEnd();
|
|
13156
|
+
i0__namespace.ɵɵtemplate(3, WriteCaseLinkFieldComponent_span_3_Template, 3, 3, "span", 3);
|
|
13157
|
+
i0__namespace.ɵɵtemplate(4, WriteCaseLinkFieldComponent_span_4_Template, 4, 6, "span", 4);
|
|
13158
|
+
i0__namespace.ɵɵelement(5, "input", 5);
|
|
13159
|
+
i0__namespace.ɵɵelementEnd();
|
|
13385
13160
|
}
|
|
13386
13161
|
if (rf & 2) {
|
|
13162
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$k, !ctx.caseReferenceControl.valid && (ctx.caseReferenceControl.dirty || ctx.caseReferenceControl.touched)));
|
|
13387
13163
|
i0__namespace.ɵɵadvance(1);
|
|
13388
|
-
i0__namespace.ɵɵproperty("
|
|
13164
|
+
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
13165
|
+
i0__namespace.ɵɵadvance(1);
|
|
13166
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
13167
|
+
i0__namespace.ɵɵadvance(1);
|
|
13168
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.caseField.hint_text);
|
|
13169
|
+
i0__namespace.ɵɵadvance(1);
|
|
13170
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.caseReferenceControl.errors && (ctx.caseReferenceControl.dirty || ctx.caseReferenceControl.touched));
|
|
13389
13171
|
i0__namespace.ɵɵadvance(1);
|
|
13390
|
-
i0__namespace.ɵɵproperty("
|
|
13172
|
+
i0__namespace.ɵɵproperty("id", ctx.id())("formControl", ctx.caseReferenceControl);
|
|
13391
13173
|
}
|
|
13392
|
-
}, encapsulation: 2 });
|
|
13174
|
+
}, directives: [i2__namespace.NgClass, i2__namespace.NgIf, i2__namespace$1.DefaultValueAccessor, i2__namespace$1.NgControlStatus, i2__namespace$1.FormControlDirective], pipes: [i1__namespace.RpxTranslatePipe, FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
13175
|
+
var ɵWriteCaseLinkFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteCaseLinkFieldComponent);
|
|
13393
13176
|
(function () {
|
|
13394
13177
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteCaseLinkFieldComponent, [{
|
|
13395
13178
|
type: i0.Component,
|
|
@@ -13397,17 +13180,13 @@
|
|
|
13397
13180
|
selector: 'ccd-write-case-link-field',
|
|
13398
13181
|
templateUrl: 'write-case-link-field.html'
|
|
13399
13182
|
}]
|
|
13400
|
-
}],
|
|
13401
|
-
type: i0.Input
|
|
13402
|
-
}], formGroup: [{
|
|
13403
|
-
type: i0.Input
|
|
13404
|
-
}], writeComplexFieldComponent: [{
|
|
13183
|
+
}], null, { writeComplexFieldComponent: [{
|
|
13405
13184
|
type: i0.ViewChild,
|
|
13406
|
-
args: ['writeComplexFieldComponent'
|
|
13185
|
+
args: ['writeComplexFieldComponent']
|
|
13407
13186
|
}] });
|
|
13408
13187
|
})();
|
|
13409
13188
|
|
|
13410
|
-
var _c0$
|
|
13189
|
+
var _c0$M = function (a0, a1, a2, a3, a4, a5) { return { id: a0, label: a1, field_type: a2, display_context_parameter: a3, value: a4, hidden: a5 }; };
|
|
13411
13190
|
function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) {
|
|
13412
13191
|
if (rf & 1) {
|
|
13413
13192
|
i0__namespace.ɵɵelementStart(0, "tbody");
|
|
@@ -13422,10 +13201,10 @@
|
|
|
13422
13201
|
if (rf & 2) {
|
|
13423
13202
|
var ctx_r1 = i0__namespace.ɵɵnextContext(2);
|
|
13424
13203
|
i0__namespace.ɵɵadvance(4);
|
|
13425
|
-
i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction6(3, _c0$
|
|
13204
|
+
i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction6(3, _c0$M, ctx_r1.caseField.label, ctx_r1.caseField.label, ctx_r1.caseField.field_type.collection_field_type, ctx_r1.caseField.display_context_parameter, ctx_r1.caseField.value, ctx_r1.caseField.hidden))("context", ctx_r1.context)("topLevelFormGroup", ctx_r1.topLevelFormGroup);
|
|
13426
13205
|
}
|
|
13427
13206
|
}
|
|
13428
|
-
var _c1$
|
|
13207
|
+
var _c1$j = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
|
|
13429
13208
|
function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) {
|
|
13430
13209
|
if (rf & 1) {
|
|
13431
13210
|
i0__namespace.ɵɵelementStart(0, "tr");
|
|
@@ -13439,7 +13218,7 @@
|
|
|
13439
13218
|
var i_r5 = ctx.index;
|
|
13440
13219
|
var ctx_r3 = i0__namespace.ɵɵnextContext(3);
|
|
13441
13220
|
i0__namespace.ɵɵadvance(2);
|
|
13442
|
-
i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction5(4, _c1$
|
|
13221
|
+
i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction5(4, _c1$j, i_r5, ctx_r3.caseField.label + " " + (i_r5 + 1), ctx_r3.caseField.field_type.collection_field_type, item_r4.value, ctx_r3.caseField.hidden))("context", ctx_r3.context)("topLevelFormGroup", ctx_r3.topLevelFormGroup)("idPrefix", ctx_r3.buildIdPrefix(i_r5));
|
|
13443
13222
|
}
|
|
13444
13223
|
}
|
|
13445
13224
|
function ReadCollectionFieldComponent_table_0_tbody_3_Template(rf, ctx) {
|
|
@@ -13587,7 +13366,7 @@
|
|
|
13587
13366
|
}], function () { return [{ type: i1__namespace$3.MatDialogRef }]; }, null);
|
|
13588
13367
|
})();
|
|
13589
13368
|
|
|
13590
|
-
var _c0$
|
|
13369
|
+
var _c0$L = ["collectionItem"];
|
|
13591
13370
|
function WriteCollectionFieldComponent_h2_9_span_1_Template(rf, ctx) {
|
|
13592
13371
|
if (rf & 1) {
|
|
13593
13372
|
i0__namespace.ɵɵelementStart(0, "span", 9);
|
|
@@ -14009,7 +13788,7 @@
|
|
|
14009
13788
|
WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog), i0__namespace.ɵɵdirectiveInject(i2__namespace$2.ScrollToService), i0__namespace.ɵɵdirectiveInject(ProfileNotifier)); };
|
|
14010
13789
|
WriteCollectionFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) {
|
|
14011
13790
|
if (rf & 1) {
|
|
14012
|
-
i0__namespace.ɵɵviewQuery(_c0$
|
|
13791
|
+
i0__namespace.ɵɵviewQuery(_c0$L, 1);
|
|
14013
13792
|
}
|
|
14014
13793
|
if (rf & 2) {
|
|
14015
13794
|
var _t = void 0;
|
|
@@ -14616,7 +14395,7 @@
|
|
|
14616
14395
|
}], null, null);
|
|
14617
14396
|
})();
|
|
14618
14397
|
|
|
14619
|
-
var _c0$
|
|
14398
|
+
var _c0$K = ["fileInput"];
|
|
14620
14399
|
function WriteDocumentFieldComponent_span_7_Template(rf, ctx) {
|
|
14621
14400
|
if (rf & 1) {
|
|
14622
14401
|
i0__namespace.ɵɵelementStart(0, "span", 12);
|
|
@@ -14652,7 +14431,7 @@
|
|
|
14652
14431
|
i0__namespace.ɵɵproperty("caseField", ctx_r2.caseField);
|
|
14653
14432
|
}
|
|
14654
14433
|
}
|
|
14655
|
-
var _c1$
|
|
14434
|
+
var _c1$i = function (a0) { return { "form-group-error bottom-30": a0 }; };
|
|
14656
14435
|
var WriteDocumentFieldComponent = /** @class */ (function (_super) {
|
|
14657
14436
|
__extends(WriteDocumentFieldComponent, _super);
|
|
14658
14437
|
function WriteDocumentFieldComponent(appConfig, caseNotifier, documentManagement, dialog, fileUploadStateService) {
|
|
@@ -14912,7 +14691,7 @@
|
|
|
14912
14691
|
WriteDocumentFieldComponent.ɵfac = function WriteDocumentFieldComponent_Factory(t) { return new (t || WriteDocumentFieldComponent)(i0__namespace.ɵɵdirectiveInject(AbstractAppConfig), i0__namespace.ɵɵdirectiveInject(CaseNotifier), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog), i0__namespace.ɵɵdirectiveInject(FileUploadStateService)); };
|
|
14913
14692
|
WriteDocumentFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) {
|
|
14914
14693
|
if (rf & 1) {
|
|
14915
|
-
i0__namespace.ɵɵviewQuery(_c0$
|
|
14694
|
+
i0__namespace.ɵɵviewQuery(_c0$K, 1);
|
|
14916
14695
|
}
|
|
14917
14696
|
if (rf & 2) {
|
|
14918
14697
|
var _t = void 0;
|
|
@@ -14956,7 +14735,7 @@
|
|
|
14956
14735
|
i0__namespace.ɵɵelementEnd();
|
|
14957
14736
|
}
|
|
14958
14737
|
if (rf & 2) {
|
|
14959
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(20, _c1$
|
|
14738
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(20, _c1$i, !ctx.valid));
|
|
14960
14739
|
i0__namespace.ɵɵadvance(1);
|
|
14961
14740
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
14962
14741
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -15126,7 +14905,7 @@
|
|
|
15126
14905
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 2, type_r5.label));
|
|
15127
14906
|
}
|
|
15128
14907
|
}
|
|
15129
|
-
var _c0$
|
|
14908
|
+
var _c0$J = function (a0) { return { "form-group-error": a0 }; };
|
|
15130
14909
|
var WriteDynamicListFieldComponent = /** @class */ (function (_super) {
|
|
15131
14910
|
__extends(WriteDynamicListFieldComponent, _super);
|
|
15132
14911
|
function WriteDynamicListFieldComponent() {
|
|
@@ -15176,7 +14955,7 @@
|
|
|
15176
14955
|
i0__namespace.ɵɵelementEnd();
|
|
15177
14956
|
}
|
|
15178
14957
|
if (rf & 2) {
|
|
15179
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(13, _c0$
|
|
14958
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(13, _c0$J, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
|
|
15180
14959
|
i0__namespace.ɵɵadvance(1);
|
|
15181
14960
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
15182
14961
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -15337,7 +15116,7 @@
|
|
|
15337
15116
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind1(3, 3, ctx_r3.dynamicRadioListControl.errors)));
|
|
15338
15117
|
}
|
|
15339
15118
|
}
|
|
15340
|
-
var _c0$
|
|
15119
|
+
var _c0$I = function (a0) { return { selected: a0 }; };
|
|
15341
15120
|
function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) {
|
|
15342
15121
|
if (rf & 1) {
|
|
15343
15122
|
i0__namespace.ɵɵelementStart(0, "div", 10);
|
|
@@ -15351,7 +15130,7 @@
|
|
|
15351
15130
|
if (rf & 2) {
|
|
15352
15131
|
var radioButton_r5 = ctx.$implicit;
|
|
15353
15132
|
var ctx_r4 = i0__namespace.ɵɵnextContext();
|
|
15354
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$
|
|
15133
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$I, ctx_r4.dynamicRadioListControl.value === radioButton_r5.code));
|
|
15355
15134
|
i0__namespace.ɵɵadvance(1);
|
|
15356
15135
|
i0__namespace.ɵɵpropertyInterpolate("name", ctx_r4.id());
|
|
15357
15136
|
i0__namespace.ɵɵproperty("id", ctx_r4.buildElementId(radioButton_r5.code))("formControl", ctx_r4.dynamicRadioListControl)("value", radioButton_r5.code);
|
|
@@ -15361,7 +15140,7 @@
|
|
|
15361
15140
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(4, 7, radioButton_r5.label));
|
|
15362
15141
|
}
|
|
15363
15142
|
}
|
|
15364
|
-
var _c1$
|
|
15143
|
+
var _c1$h = function (a0) { return { "form-group-error": a0 }; };
|
|
15365
15144
|
var WriteDynamicRadioListFieldComponent = /** @class */ (function (_super) {
|
|
15366
15145
|
__extends(WriteDynamicRadioListFieldComponent, _super);
|
|
15367
15146
|
function WriteDynamicRadioListFieldComponent() {
|
|
@@ -15409,7 +15188,7 @@
|
|
|
15409
15188
|
i0__namespace.ɵɵelementEnd();
|
|
15410
15189
|
}
|
|
15411
15190
|
if (rf & 2) {
|
|
15412
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c1$
|
|
15191
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c1$h, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
|
|
15413
15192
|
i0__namespace.ɵɵadvance(3);
|
|
15414
15193
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
15415
15194
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -15519,8 +15298,8 @@
|
|
|
15519
15298
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.emailControl.errors, ctx_r2.caseField.label)));
|
|
15520
15299
|
}
|
|
15521
15300
|
}
|
|
15522
|
-
var _c0$
|
|
15523
|
-
var _c1$
|
|
15301
|
+
var _c0$H = function (a0) { return { "form-group-error": a0 }; };
|
|
15302
|
+
var _c1$g = function (a0) { return { "govuk-input--error": a0 }; };
|
|
15524
15303
|
var WriteEmailFieldComponent = /** @class */ (function (_super) {
|
|
15525
15304
|
__extends(WriteEmailFieldComponent, _super);
|
|
15526
15305
|
function WriteEmailFieldComponent() {
|
|
@@ -15544,7 +15323,7 @@
|
|
|
15544
15323
|
i0__namespace.ɵɵelementEnd();
|
|
15545
15324
|
}
|
|
15546
15325
|
if (rf & 2) {
|
|
15547
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
15326
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$H, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
|
|
15548
15327
|
i0__namespace.ɵɵadvance(1);
|
|
15549
15328
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
15550
15329
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -15554,7 +15333,7 @@
|
|
|
15554
15333
|
i0__namespace.ɵɵadvance(1);
|
|
15555
15334
|
i0__namespace.ɵɵproperty("ngIf", ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched));
|
|
15556
15335
|
i0__namespace.ɵɵadvance(1);
|
|
15557
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$
|
|
15336
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$g, ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched)))("id", ctx.id())("formControl", ctx.emailControl);
|
|
15558
15337
|
}
|
|
15559
15338
|
}, directives: [i2__namespace.NgClass, i2__namespace.NgIf, i2__namespace$1.DefaultValueAccessor, i2__namespace$1.NgControlStatus, i2__namespace$1.FormControlDirective], pipes: [i1__namespace.RpxTranslatePipe, FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
15560
15339
|
var ɵWriteEmailFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteEmailFieldComponent);
|
|
@@ -15681,7 +15460,7 @@
|
|
|
15681
15460
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 2, type_r4.label));
|
|
15682
15461
|
}
|
|
15683
15462
|
}
|
|
15684
|
-
var _c0$
|
|
15463
|
+
var _c0$G = function (a0) { return { "form-group-error": a0 }; };
|
|
15685
15464
|
var WriteFixedListFieldComponent = /** @class */ (function (_super) {
|
|
15686
15465
|
__extends(WriteFixedListFieldComponent, _super);
|
|
15687
15466
|
function WriteFixedListFieldComponent() {
|
|
@@ -15730,7 +15509,7 @@
|
|
|
15730
15509
|
i0__namespace.ɵɵelementEnd();
|
|
15731
15510
|
}
|
|
15732
15511
|
if (rf & 2) {
|
|
15733
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$
|
|
15512
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$G, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
|
|
15734
15513
|
i0__namespace.ɵɵadvance(1);
|
|
15735
15514
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
15736
15515
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -15852,7 +15631,7 @@
|
|
|
15852
15631
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.fixedRadioListControl.errors, ctx_r2.caseField.label)));
|
|
15853
15632
|
}
|
|
15854
15633
|
}
|
|
15855
|
-
var _c0$
|
|
15634
|
+
var _c0$F = function (a0) { return { selected: a0 }; };
|
|
15856
15635
|
function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) {
|
|
15857
15636
|
if (rf & 1) {
|
|
15858
15637
|
i0__namespace.ɵɵelementStart(0, "div", 9);
|
|
@@ -15866,7 +15645,7 @@
|
|
|
15866
15645
|
if (rf & 2) {
|
|
15867
15646
|
var radioButton_r4 = ctx.$implicit;
|
|
15868
15647
|
var ctx_r3 = i0__namespace.ɵɵnextContext();
|
|
15869
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$
|
|
15648
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$F, ctx_r3.fixedRadioListControl.value === radioButton_r4.code));
|
|
15870
15649
|
i0__namespace.ɵɵadvance(1);
|
|
15871
15650
|
i0__namespace.ɵɵproperty("id", ctx_r3.id() + "-" + radioButton_r4.code)("name", ctx_r3.id())("formControl", ctx_r3.fixedRadioListControl)("value", radioButton_r4.code);
|
|
15872
15651
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -15875,7 +15654,7 @@
|
|
|
15875
15654
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(4, 7, radioButton_r4.label));
|
|
15876
15655
|
}
|
|
15877
15656
|
}
|
|
15878
|
-
var _c1$
|
|
15657
|
+
var _c1$f = function (a0) { return { "form-group-error": a0 }; };
|
|
15879
15658
|
var WriteFixedRadioListFieldComponent = /** @class */ (function (_super) {
|
|
15880
15659
|
__extends(WriteFixedRadioListFieldComponent, _super);
|
|
15881
15660
|
function WriteFixedRadioListFieldComponent() {
|
|
@@ -15906,7 +15685,7 @@
|
|
|
15906
15685
|
i0__namespace.ɵɵelementEnd();
|
|
15907
15686
|
}
|
|
15908
15687
|
if (rf & 2) {
|
|
15909
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$
|
|
15688
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$f, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
|
|
15910
15689
|
i0__namespace.ɵɵadvance(3);
|
|
15911
15690
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
15912
15691
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -16036,7 +15815,7 @@
|
|
|
16036
15815
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.caseField.hint_text, " ");
|
|
16037
15816
|
}
|
|
16038
15817
|
}
|
|
16039
|
-
var _c0$
|
|
15818
|
+
var _c0$E = function (a0) { return { "hide-autocomplete": a0 }; };
|
|
16040
15819
|
function WriteJudicialUserFieldComponent_mat_option_7_Template(rf, ctx) {
|
|
16041
15820
|
if (rf & 1) {
|
|
16042
15821
|
var _r7_1 = i0__namespace.ɵɵgetCurrentView();
|
|
@@ -16048,7 +15827,7 @@
|
|
|
16048
15827
|
if (rf & 2) {
|
|
16049
15828
|
var judicialUser_r5 = ctx.$implicit;
|
|
16050
15829
|
var ctx_r3 = i0__namespace.ɵɵnextContext();
|
|
16051
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$
|
|
15830
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$E, !ctx_r3.showAutocomplete))("value", judicialUser_r5.idamId);
|
|
16052
15831
|
i0__namespace.ɵɵadvance(1);
|
|
16053
15832
|
i0__namespace.ɵɵtextInterpolate2(" ", judicialUser_r5.fullName, " (", judicialUser_r5.emailId, ") ");
|
|
16054
15833
|
}
|
|
@@ -16423,7 +16202,7 @@
|
|
|
16423
16202
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.moneyGbpControl.errors, ctx_r2.caseField.label)));
|
|
16424
16203
|
}
|
|
16425
16204
|
}
|
|
16426
|
-
var _c0$
|
|
16205
|
+
var _c0$D = function (a0) { return { "form-group-error": a0 }; };
|
|
16427
16206
|
var WriteMoneyGbpFieldComponent = /** @class */ (function (_super) {
|
|
16428
16207
|
__extends(WriteMoneyGbpFieldComponent, _super);
|
|
16429
16208
|
function WriteMoneyGbpFieldComponent() {
|
|
@@ -16453,7 +16232,7 @@
|
|
|
16453
16232
|
i0__namespace.ɵɵelementEnd();
|
|
16454
16233
|
}
|
|
16455
16234
|
if (rf & 2) {
|
|
16456
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$
|
|
16235
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$D, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
|
|
16457
16236
|
i0__namespace.ɵɵadvance(1);
|
|
16458
16237
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
16459
16238
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -16608,7 +16387,7 @@
|
|
|
16608
16387
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(5, 6, checkbox_r4.label));
|
|
16609
16388
|
}
|
|
16610
16389
|
}
|
|
16611
|
-
var _c0$
|
|
16390
|
+
var _c0$C = function (a0) { return { "error": a0 }; };
|
|
16612
16391
|
var WriteMultiSelectListFieldComponent = /** @class */ (function (_super) {
|
|
16613
16392
|
__extends(WriteMultiSelectListFieldComponent, _super);
|
|
16614
16393
|
function WriteMultiSelectListFieldComponent() {
|
|
@@ -16672,7 +16451,7 @@
|
|
|
16672
16451
|
i0__namespace.ɵɵelementEnd();
|
|
16673
16452
|
}
|
|
16674
16453
|
if (rf & 2) {
|
|
16675
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$
|
|
16454
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$C, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
|
|
16676
16455
|
i0__namespace.ɵɵadvance(3);
|
|
16677
16456
|
i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
16678
16457
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -16766,8 +16545,8 @@
|
|
|
16766
16545
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.numberControl.errors, ctx_r2.caseField.label)));
|
|
16767
16546
|
}
|
|
16768
16547
|
}
|
|
16769
|
-
var _c0$
|
|
16770
|
-
var _c1$
|
|
16548
|
+
var _c0$B = function (a0) { return { "form-group-error": a0 }; };
|
|
16549
|
+
var _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
|
|
16771
16550
|
var WriteNumberFieldComponent = /** @class */ (function (_super) {
|
|
16772
16551
|
__extends(WriteNumberFieldComponent, _super);
|
|
16773
16552
|
function WriteNumberFieldComponent() {
|
|
@@ -16791,7 +16570,7 @@
|
|
|
16791
16570
|
i0__namespace.ɵɵelementEnd();
|
|
16792
16571
|
}
|
|
16793
16572
|
if (rf & 2) {
|
|
16794
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
16573
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$B, !ctx.numberControl.valid && ctx.numberControl.dirty));
|
|
16795
16574
|
i0__namespace.ɵɵadvance(1);
|
|
16796
16575
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
16797
16576
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -16801,7 +16580,7 @@
|
|
|
16801
16580
|
i0__namespace.ɵɵadvance(1);
|
|
16802
16581
|
i0__namespace.ɵɵproperty("ngIf", ctx.numberControl.errors && ctx.numberControl.dirty);
|
|
16803
16582
|
i0__namespace.ɵɵadvance(1);
|
|
16804
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$
|
|
16583
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$e, ctx.numberControl.errors && ctx.numberControl.dirty))("id", ctx.id())("formControl", ctx.numberControl);
|
|
16805
16584
|
}
|
|
16806
16585
|
}, directives: [i2__namespace.NgClass, i2__namespace.NgIf, i2__namespace$1.NumberValueAccessor, i2__namespace$1.DefaultValueAccessor, i2__namespace$1.NgControlStatus, i2__namespace$1.FormControlDirective], pipes: [i1__namespace.RpxTranslatePipe, FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
16807
16586
|
var ɵWriteNumberFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteNumberFieldComponent);
|
|
@@ -17130,7 +16909,7 @@
|
|
|
17130
16909
|
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(3, 1, "No results found."), " ");
|
|
17131
16910
|
}
|
|
17132
16911
|
}
|
|
17133
|
-
var _c0$
|
|
16912
|
+
var _c0$A = function (a0) { return { "scroll-container ": a0 }; };
|
|
17134
16913
|
function WriteOrganisationFieldComponent_fieldset_3_div_17_Template(rf, ctx) {
|
|
17135
16914
|
if (rf & 1) {
|
|
17136
16915
|
i0__namespace.ɵɵelementStart(0, "div", 26);
|
|
@@ -17146,7 +16925,7 @@
|
|
|
17146
16925
|
var ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
17147
16926
|
var tmp_0_0 = null;
|
|
17148
16927
|
var tmp_2_0 = null;
|
|
17149
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$
|
|
16928
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$A, ((tmp_0_0 = i0__namespace.ɵɵpipeBind1(1, 3, ctx_r2.simpleOrganisations$)) == null ? null : tmp_0_0.length) > 10));
|
|
17150
16929
|
i0__namespace.ɵɵadvance(2);
|
|
17151
16930
|
i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(3, 5, ctx_r2.simpleOrganisations$));
|
|
17152
16931
|
i0__namespace.ɵɵadvance(2);
|
|
@@ -17641,8 +17420,8 @@
|
|
|
17641
17420
|
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.phoneUkControl.errors, ctx_r2.caseField.label)), " ");
|
|
17642
17421
|
}
|
|
17643
17422
|
}
|
|
17644
|
-
var _c0$
|
|
17645
|
-
var _c1$
|
|
17423
|
+
var _c0$z = function (a0) { return { "form-group-error": a0 }; };
|
|
17424
|
+
var _c1$d = function (a0) { return { "govuk-input--error": a0 }; };
|
|
17646
17425
|
var WritePhoneUKFieldComponent = /** @class */ (function (_super) {
|
|
17647
17426
|
__extends(WritePhoneUKFieldComponent, _super);
|
|
17648
17427
|
function WritePhoneUKFieldComponent() {
|
|
@@ -17666,7 +17445,7 @@
|
|
|
17666
17445
|
i0__namespace.ɵɵelementEnd();
|
|
17667
17446
|
}
|
|
17668
17447
|
if (rf & 2) {
|
|
17669
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
17448
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$z, !ctx.phoneUkControl.valid && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched)));
|
|
17670
17449
|
i0__namespace.ɵɵadvance(1);
|
|
17671
17450
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
17672
17451
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -17676,7 +17455,7 @@
|
|
|
17676
17455
|
i0__namespace.ɵɵadvance(1);
|
|
17677
17456
|
i0__namespace.ɵɵproperty("ngIf", ctx.phoneUkControl.errors && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched));
|
|
17678
17457
|
i0__namespace.ɵɵadvance(1);
|
|
17679
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$
|
|
17458
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$d, ctx.phoneUkControl.errors && ctx.phoneUkControl.dirty))("id", ctx.id())("formControl", ctx.phoneUkControl);
|
|
17680
17459
|
}
|
|
17681
17460
|
}, directives: [i2__namespace.NgClass, i2__namespace.NgIf, i2__namespace$1.DefaultValueAccessor, i2__namespace$1.NgControlStatus, i2__namespace$1.FormControlDirective], pipes: [i1__namespace.RpxTranslatePipe, FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
17682
17461
|
var ɵWritePhoneUKFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WritePhoneUKFieldComponent);
|
|
@@ -17762,8 +17541,8 @@
|
|
|
17762
17541
|
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.textareaControl.errors, ctx_r2.caseField.label)), " ");
|
|
17763
17542
|
}
|
|
17764
17543
|
}
|
|
17765
|
-
var _c0$
|
|
17766
|
-
var _c1$
|
|
17544
|
+
var _c0$y = function (a0) { return { "form-group-error": a0 }; };
|
|
17545
|
+
var _c1$c = function (a0) { return { "govuk-textarea--error": a0 }; };
|
|
17767
17546
|
var WriteTextAreaFieldComponent = /** @class */ (function (_super) {
|
|
17768
17547
|
__extends(WriteTextAreaFieldComponent, _super);
|
|
17769
17548
|
function WriteTextAreaFieldComponent(browserService) {
|
|
@@ -17798,7 +17577,7 @@
|
|
|
17798
17577
|
i0__namespace.ɵɵelementEnd();
|
|
17799
17578
|
}
|
|
17800
17579
|
if (rf & 2) {
|
|
17801
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
17580
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$y, !ctx.textareaControl.valid && ctx.textareaControl.dirty));
|
|
17802
17581
|
i0__namespace.ɵɵadvance(1);
|
|
17803
17582
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
17804
17583
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -17808,7 +17587,7 @@
|
|
|
17808
17587
|
i0__namespace.ɵɵadvance(1);
|
|
17809
17588
|
i0__namespace.ɵɵproperty("ngIf", ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched));
|
|
17810
17589
|
i0__namespace.ɵɵadvance(1);
|
|
17811
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$
|
|
17590
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$c, ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched)))("id", ctx.id())("formControl", ctx.textareaControl);
|
|
17812
17591
|
}
|
|
17813
17592
|
}, directives: [i2__namespace.NgClass, i2__namespace.NgIf, i2__namespace$1.DefaultValueAccessor, i2__namespace$1.NgControlStatus, i2__namespace$1.FormControlDirective], pipes: [i1__namespace.RpxTranslatePipe, FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
17814
17593
|
(function () {
|
|
@@ -17894,8 +17673,8 @@
|
|
|
17894
17673
|
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.textControl.errors, ctx_r2.caseField.label)), " ");
|
|
17895
17674
|
}
|
|
17896
17675
|
}
|
|
17897
|
-
var _c0$
|
|
17898
|
-
var _c1$
|
|
17676
|
+
var _c0$x = function (a0) { return { "form-group-error": a0 }; };
|
|
17677
|
+
var _c1$b = function (a0) { return { "govuk-input--error": a0 }; };
|
|
17899
17678
|
var WriteTextFieldComponent = /** @class */ (function (_super) {
|
|
17900
17679
|
__extends(WriteTextFieldComponent, _super);
|
|
17901
17680
|
function WriteTextFieldComponent() {
|
|
@@ -17924,7 +17703,7 @@
|
|
|
17924
17703
|
i0__namespace.ɵɵelementEnd();
|
|
17925
17704
|
}
|
|
17926
17705
|
if (rf & 2) {
|
|
17927
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
17706
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$x, !!ctx.textControl && !ctx.textControl.valid && (ctx.textControl.dirty || ctx.textControl.touched)));
|
|
17928
17707
|
i0__namespace.ɵɵadvance(1);
|
|
17929
17708
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
17930
17709
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -17934,7 +17713,7 @@
|
|
|
17934
17713
|
i0__namespace.ɵɵadvance(1);
|
|
17935
17714
|
i0__namespace.ɵɵproperty("ngIf", (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched));
|
|
17936
17715
|
i0__namespace.ɵɵadvance(1);
|
|
17937
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$
|
|
17716
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$b, (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched)))("id", ctx.id())("formControl", ctx.textControl);
|
|
17938
17717
|
}
|
|
17939
17718
|
}, directives: [i2__namespace.NgClass, i2__namespace.NgIf, i2__namespace$1.DefaultValueAccessor, i2__namespace$1.NgControlStatus, i2__namespace$1.FormControlDirective], pipes: [i1__namespace.RpxTranslatePipe, FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
17940
17719
|
var ɵWriteTextFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteTextFieldComponent);
|
|
@@ -18136,7 +17915,7 @@
|
|
|
18136
17915
|
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.yesNoControl.errors, ctx_r2.caseField.label)), " ");
|
|
18137
17916
|
}
|
|
18138
17917
|
}
|
|
18139
|
-
var _c0$
|
|
17918
|
+
var _c0$w = function (a0) { return { selected: a0 }; };
|
|
18140
17919
|
function WriteYesNoFieldComponent_div_7_Template(rf, ctx) {
|
|
18141
17920
|
if (rf & 1) {
|
|
18142
17921
|
i0__namespace.ɵɵelementStart(0, "div", 10);
|
|
@@ -18150,7 +17929,7 @@
|
|
|
18150
17929
|
if (rf & 2) {
|
|
18151
17930
|
var value_r4 = ctx.$implicit;
|
|
18152
17931
|
var ctx_r3 = i0__namespace.ɵɵnextContext();
|
|
18153
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$
|
|
17932
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$w, ctx_r3.yesNoControl.value === value_r4));
|
|
18154
17933
|
i0__namespace.ɵɵadvance(1);
|
|
18155
17934
|
i0__namespace.ɵɵproperty("id", ctx_r3.createElementId(value_r4))("name", ctx_r3.id())("formControl", ctx_r3.yesNoControl)("value", value_r4);
|
|
18156
17935
|
i0__namespace.ɵɵattribute("name", ctx_r3.id());
|
|
@@ -18160,7 +17939,7 @@
|
|
|
18160
17939
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(4, 8, value_r4));
|
|
18161
17940
|
}
|
|
18162
17941
|
}
|
|
18163
|
-
var _c1$
|
|
17942
|
+
var _c1$a = function (a0) { return { "form-group-error": a0 }; };
|
|
18164
17943
|
var WriteYesNoFieldComponent = /** @class */ (function (_super) {
|
|
18165
17944
|
__extends(WriteYesNoFieldComponent, _super);
|
|
18166
17945
|
function WriteYesNoFieldComponent(yesNoService) {
|
|
@@ -18191,7 +17970,7 @@
|
|
|
18191
17970
|
i0__namespace.ɵɵelementEnd();
|
|
18192
17971
|
}
|
|
18193
17972
|
if (rf & 2) {
|
|
18194
|
-
i0__namespace.ɵɵproperty("id", ctx.id())("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$
|
|
17973
|
+
i0__namespace.ɵɵproperty("id", ctx.id())("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$a, !ctx.yesNoControl.valid && (ctx.yesNoControl.dirty || ctx.yesNoControl.touched)));
|
|
18195
17974
|
i0__namespace.ɵɵadvance(3);
|
|
18196
17975
|
i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
18197
17976
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -18255,6 +18034,8 @@
|
|
|
18255
18034
|
return write ? WriteAddressFieldComponent : ReadComplexFieldComponent;
|
|
18256
18035
|
case 'OrderSummary':
|
|
18257
18036
|
return write ? WriteOrderSummaryFieldComponent : ReadOrderSummaryFieldComponent;
|
|
18037
|
+
case 'CaseLink':
|
|
18038
|
+
return write ? WriteCaseLinkFieldComponent : ReadCaseLinkFieldComponent;
|
|
18258
18039
|
case 'Organisation':
|
|
18259
18040
|
return write ? WriteOrganisationFieldComponent : ReadOrganisationFieldComponent;
|
|
18260
18041
|
case 'JudicialUser':
|
|
@@ -18263,15 +18044,7 @@
|
|
|
18263
18044
|
return write ? WriteComplexFieldComponent : ReadComplexFieldComponent;
|
|
18264
18045
|
}
|
|
18265
18046
|
case 'Collection':
|
|
18266
|
-
|
|
18267
|
-
case 'CaseLink':
|
|
18268
|
-
if (caseField.id === 'caseLinks') {
|
|
18269
|
-
return write ? WriteCaseLinkFieldComponent : ReadCaseLinkFieldComponent;
|
|
18270
|
-
}
|
|
18271
|
-
return write ? WriteCollectionFieldComponent : ReadCollectionFieldComponent;
|
|
18272
|
-
default:
|
|
18273
|
-
return write ? WriteCollectionFieldComponent : ReadCollectionFieldComponent;
|
|
18274
|
-
}
|
|
18047
|
+
return write ? WriteCollectionFieldComponent : ReadCollectionFieldComponent;
|
|
18275
18048
|
case 'MultiSelectList':
|
|
18276
18049
|
return write ? WriteMultiSelectListFieldComponent : ReadMultiSelectListFieldComponent;
|
|
18277
18050
|
case 'Document':
|
|
@@ -18311,7 +18084,7 @@
|
|
|
18311
18084
|
}], null, null);
|
|
18312
18085
|
})();
|
|
18313
18086
|
|
|
18314
|
-
var _c0$
|
|
18087
|
+
var _c0$v = ["fieldContainer"];
|
|
18315
18088
|
var FIX_CASEFIELD_FOR$1 = ['FixedList', 'DynamicList'];
|
|
18316
18089
|
var FieldReadComponent = /** @class */ (function (_super) {
|
|
18317
18090
|
__extends(FieldReadComponent, _super);
|
|
@@ -18364,7 +18137,7 @@
|
|
|
18364
18137
|
FieldReadComponent.ɵfac = function FieldReadComponent_Factory(t) { return new (t || FieldReadComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ComponentFactoryResolver), i0__namespace.ɵɵdirectiveInject(PaletteService)); };
|
|
18365
18138
|
FieldReadComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FieldReadComponent, selectors: [["ccd-field-read"]], viewQuery: function FieldReadComponent_Query(rf, ctx) {
|
|
18366
18139
|
if (rf & 1) {
|
|
18367
|
-
i0__namespace.ɵɵviewQuery(_c0$
|
|
18140
|
+
i0__namespace.ɵɵviewQuery(_c0$v, 1, i0.ViewContainerRef);
|
|
18368
18141
|
}
|
|
18369
18142
|
if (rf & 2) {
|
|
18370
18143
|
var _t = void 0;
|
|
@@ -18405,7 +18178,7 @@
|
|
|
18405
18178
|
}] });
|
|
18406
18179
|
})();
|
|
18407
18180
|
|
|
18408
|
-
var _c0$
|
|
18181
|
+
var _c0$u = ["fieldContainer"];
|
|
18409
18182
|
var FIX_CASEFIELD_FOR = ['FixedList', 'DynamicList'];
|
|
18410
18183
|
var FieldWriteComponent = /** @class */ (function (_super) {
|
|
18411
18184
|
__extends(FieldWriteComponent, _super);
|
|
@@ -18454,7 +18227,7 @@
|
|
|
18454
18227
|
FieldWriteComponent.ɵfac = function FieldWriteComponent_Factory(t) { return new (t || FieldWriteComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ComponentFactoryResolver), i0__namespace.ɵɵdirectiveInject(PaletteService)); };
|
|
18455
18228
|
FieldWriteComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FieldWriteComponent, selectors: [["ccd-field-write"]], viewQuery: function FieldWriteComponent_Query(rf, ctx) {
|
|
18456
18229
|
if (rf & 1) {
|
|
18457
|
-
i0__namespace.ɵɵviewQuery(_c0$
|
|
18230
|
+
i0__namespace.ɵɵviewQuery(_c0$u, 3, i0.ViewContainerRef);
|
|
18458
18231
|
}
|
|
18459
18232
|
if (rf & 2) {
|
|
18460
18233
|
var _t = void 0;
|
|
@@ -18518,7 +18291,7 @@
|
|
|
18518
18291
|
i0__namespace.ɵɵprojection(0);
|
|
18519
18292
|
}
|
|
18520
18293
|
}
|
|
18521
|
-
var _c0$
|
|
18294
|
+
var _c0$t = ["*"];
|
|
18522
18295
|
var FieldReadLabelComponent = /** @class */ (function (_super) {
|
|
18523
18296
|
__extends(FieldReadLabelComponent, _super);
|
|
18524
18297
|
function FieldReadLabelComponent() {
|
|
@@ -18556,7 +18329,7 @@
|
|
|
18556
18329
|
return FieldReadLabelComponent;
|
|
18557
18330
|
}(AbstractFieldReadComponent));
|
|
18558
18331
|
FieldReadLabelComponent.ɵfac = function FieldReadLabelComponent_Factory(t) { return ɵFieldReadLabelComponent_BaseFactory(t || FieldReadLabelComponent); };
|
|
18559
|
-
FieldReadLabelComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FieldReadLabelComponent, selectors: [["ccd-field-read-label"]], inputs: { withLabel: "withLabel", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], ngContentSelectors: _c0$
|
|
18332
|
+
FieldReadLabelComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FieldReadLabelComponent, selectors: [["ccd-field-read-label"]], inputs: { withLabel: "withLabel", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], ngContentSelectors: _c0$t, decls: 4, vars: 5, consts: [[3, "hidden"], ["class", "case-field", 4, "ngIf", "ngIfElse"], ["caseFieldValue", ""], [1, "case-field"], [1, "case-field__label"], [1, "case-field__value"], [4, "ngTemplateOutlet"]], template: function FieldReadLabelComponent_Template(rf, ctx) {
|
|
18560
18333
|
if (rf & 1) {
|
|
18561
18334
|
i0__namespace.ɵɵprojectionDef();
|
|
18562
18335
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
@@ -18590,16 +18363,16 @@
|
|
|
18590
18363
|
}] });
|
|
18591
18364
|
})();
|
|
18592
18365
|
|
|
18593
|
-
function
|
|
18366
|
+
function CaseFileViewFolderSelectorComponent_ng_container_6_ng_container_1_Template(rf, ctx) {
|
|
18594
18367
|
if (rf & 1) {
|
|
18595
18368
|
i0__namespace.ɵɵelementContainer(0);
|
|
18596
18369
|
}
|
|
18597
18370
|
}
|
|
18598
|
-
var _c0$
|
|
18599
|
-
function
|
|
18371
|
+
var _c0$s = function (a0) { return { cat: a0, level: 1 }; };
|
|
18372
|
+
function CaseFileViewFolderSelectorComponent_ng_container_6_Template(rf, ctx) {
|
|
18600
18373
|
if (rf & 1) {
|
|
18601
18374
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
18602
|
-
i0__namespace.ɵɵtemplate(1,
|
|
18375
|
+
i0__namespace.ɵɵtemplate(1, CaseFileViewFolderSelectorComponent_ng_container_6_ng_container_1_Template, 1, 0, "ng-container", 8);
|
|
18603
18376
|
i0__namespace.ɵɵelementContainerEnd();
|
|
18604
18377
|
}
|
|
18605
18378
|
if (rf & 2) {
|
|
@@ -18607,7 +18380,7 @@
|
|
|
18607
18380
|
i0__namespace.ɵɵnextContext();
|
|
18608
18381
|
var _r1 = i0__namespace.ɵɵreference(13);
|
|
18609
18382
|
i0__namespace.ɵɵadvance(1);
|
|
18610
|
-
i0__namespace.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction1(2, _c0$
|
|
18383
|
+
i0__namespace.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction1(2, _c0$s, cat_r3));
|
|
18611
18384
|
}
|
|
18612
18385
|
}
|
|
18613
18386
|
function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_ng_container_1_Template(rf, ctx) {
|
|
@@ -18615,7 +18388,7 @@
|
|
|
18615
18388
|
i0__namespace.ɵɵelementContainer(0);
|
|
18616
18389
|
}
|
|
18617
18390
|
}
|
|
18618
|
-
var _c1$
|
|
18391
|
+
var _c1$9 = function (a0, a1) { return { cat: a0, level: a1 }; };
|
|
18619
18392
|
function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template(rf, ctx) {
|
|
18620
18393
|
if (rf & 1) {
|
|
18621
18394
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
@@ -18628,7 +18401,7 @@
|
|
|
18628
18401
|
i0__namespace.ɵɵnextContext();
|
|
18629
18402
|
var _r1 = i0__namespace.ɵɵreference(13);
|
|
18630
18403
|
i0__namespace.ɵɵadvance(1);
|
|
18631
|
-
i0__namespace.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction2(2, _c1$
|
|
18404
|
+
i0__namespace.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction2(2, _c1$9, subcat_r8, level_r6 + 1));
|
|
18632
18405
|
}
|
|
18633
18406
|
}
|
|
18634
18407
|
function CaseFileViewFolderSelectorComponent_ng_template_12_Template(rf, ctx) {
|
|
@@ -18642,7 +18415,7 @@
|
|
|
18642
18415
|
i0__namespace.ɵɵelement(3, "img", 12);
|
|
18643
18416
|
i0__namespace.ɵɵtext(4);
|
|
18644
18417
|
i0__namespace.ɵɵelementEnd();
|
|
18645
|
-
i0__namespace.ɵɵtemplate(5, CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template, 2, 5, "ng-container",
|
|
18418
|
+
i0__namespace.ɵɵtemplate(5, CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template, 2, 5, "ng-container", 3);
|
|
18646
18419
|
i0__namespace.ɵɵelementEnd();
|
|
18647
18420
|
}
|
|
18648
18421
|
if (rf & 2) {
|
|
@@ -18738,46 +18511,47 @@
|
|
|
18738
18511
|
return CaseFileViewFolderSelectorComponent;
|
|
18739
18512
|
}());
|
|
18740
18513
|
CaseFileViewFolderSelectorComponent.ɵfac = function CaseFileViewFolderSelectorComponent_Factory(t) { return new (t || CaseFileViewFolderSelectorComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialogRef), i0__namespace.ɵɵdirectiveInject(i1$3.MAT_DIALOG_DATA)); };
|
|
18741
|
-
CaseFileViewFolderSelectorComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderSelectorComponent, selectors: [["xui-case-file-view-folder-selector"]], decls: 14, vars: 2, consts: [[1, "govuk-heading-l"], [1, "folders", "govuk-radios", "govuk-radios--conditional"], [4, "ngFor", "ngForOf"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"], [1, "cancel", 3, "click"], [
|
|
18514
|
+
CaseFileViewFolderSelectorComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderSelectorComponent, selectors: [["xui-case-file-view-folder-selector"]], decls: 14, vars: 2, consts: [[1, "close", 3, "click"], [1, "govuk-heading-l"], [1, "folders", "govuk-radios", "govuk-radios--conditional"], [4, "ngFor", "ngForOf"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"], [1, "cancel", 3, "click"], ["folder", ""], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "folder", "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "name", "id", "click"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["src", "/assets/images/folder.png", "alt", "Folder icon", 1, "iconImg"]], template: function CaseFileViewFolderSelectorComponent_Template(rf, ctx) {
|
|
18742
18515
|
if (rf & 1) {
|
|
18743
|
-
i0__namespace.ɵɵelementStart(0, "
|
|
18744
|
-
i0__namespace.ɵɵ
|
|
18516
|
+
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
18517
|
+
i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_div_click_0_listener() { return ctx.cancel(); });
|
|
18745
18518
|
i0__namespace.ɵɵelementEnd();
|
|
18746
|
-
i0__namespace.ɵɵelementStart(
|
|
18747
|
-
i0__namespace.ɵɵtext(
|
|
18519
|
+
i0__namespace.ɵɵelementStart(1, "h2", 1);
|
|
18520
|
+
i0__namespace.ɵɵtext(2, "Move File");
|
|
18748
18521
|
i0__namespace.ɵɵelementEnd();
|
|
18749
|
-
i0__namespace.ɵɵelementStart(
|
|
18750
|
-
i0__namespace.ɵɵ
|
|
18522
|
+
i0__namespace.ɵɵelementStart(3, "p");
|
|
18523
|
+
i0__namespace.ɵɵtext(4);
|
|
18751
18524
|
i0__namespace.ɵɵelementEnd();
|
|
18752
|
-
i0__namespace.ɵɵelementStart(
|
|
18753
|
-
i0__namespace.ɵɵ
|
|
18754
|
-
i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_button_click_7_listener() { return ctx.save(); });
|
|
18755
|
-
i0__namespace.ɵɵtext(8, "Save");
|
|
18525
|
+
i0__namespace.ɵɵelementStart(5, "div", 2);
|
|
18526
|
+
i0__namespace.ɵɵtemplate(6, CaseFileViewFolderSelectorComponent_ng_container_6_Template, 2, 4, "ng-container", 3);
|
|
18756
18527
|
i0__namespace.ɵɵelementEnd();
|
|
18757
|
-
i0__namespace.ɵɵelementStart(
|
|
18758
|
-
i0__namespace.ɵɵ
|
|
18759
|
-
i0__namespace.ɵɵ
|
|
18528
|
+
i0__namespace.ɵɵelementStart(7, "div", 4);
|
|
18529
|
+
i0__namespace.ɵɵelementStart(8, "button", 5);
|
|
18530
|
+
i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_button_click_8_listener() { return ctx.save(); });
|
|
18531
|
+
i0__namespace.ɵɵtext(9, "Save");
|
|
18760
18532
|
i0__namespace.ɵɵelementEnd();
|
|
18533
|
+
i0__namespace.ɵɵelementStart(10, "a", 6);
|
|
18534
|
+
i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_a_click_10_listener() { return ctx.cancel(); });
|
|
18535
|
+
i0__namespace.ɵɵtext(11, "Cancel");
|
|
18761
18536
|
i0__namespace.ɵɵelementEnd();
|
|
18762
|
-
i0__namespace.ɵɵelementStart(11, "div", 6);
|
|
18763
|
-
i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_div_click_11_listener() { return ctx.cancel(); });
|
|
18764
18537
|
i0__namespace.ɵɵelementEnd();
|
|
18765
18538
|
i0__namespace.ɵɵtemplate(12, CaseFileViewFolderSelectorComponent_ng_template_12_Template, 6, 5, "ng-template", null, 7, i0__namespace.ɵɵtemplateRefExtractor);
|
|
18766
18539
|
}
|
|
18767
18540
|
if (rf & 2) {
|
|
18768
|
-
i0__namespace.ɵɵadvance(
|
|
18541
|
+
i0__namespace.ɵɵadvance(4);
|
|
18769
18542
|
i0__namespace.ɵɵtextInterpolate1("Where do you want to move \"", ctx.data.document.document_filename, "\" file?");
|
|
18770
18543
|
i0__namespace.ɵɵadvance(2);
|
|
18771
18544
|
i0__namespace.ɵɵproperty("ngForOf", ctx.currentCategories);
|
|
18772
18545
|
}
|
|
18773
|
-
}, directives: [i2__namespace.NgForOf, i2__namespace.NgTemplateOutlet], styles: ["
|
|
18546
|
+
}, directives: [i2__namespace.NgForOf, i2__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 });
|
|
18774
18547
|
(function () {
|
|
18775
18548
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderSelectorComponent, [{
|
|
18776
18549
|
type: i0.Component,
|
|
18777
18550
|
args: [{
|
|
18778
18551
|
selector: 'xui-case-file-view-folder-selector',
|
|
18779
18552
|
templateUrl: './case-file-view-folder-selector.component.html',
|
|
18780
|
-
styleUrls: ['./case-file-view-folder-selector.component.scss']
|
|
18553
|
+
styleUrls: ['./case-file-view-folder-selector.component.scss'],
|
|
18554
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
18781
18555
|
}]
|
|
18782
18556
|
}], function () {
|
|
18783
18557
|
return [{ type: i1__namespace$3.MatDialogRef }, { type: undefined, decorators: [{
|
|
@@ -18848,8 +18622,8 @@
|
|
|
18848
18622
|
i0__namespace.ɵɵproperty("ngForOf", ctx_r1.menuItems);
|
|
18849
18623
|
}
|
|
18850
18624
|
}
|
|
18851
|
-
var _c0$
|
|
18852
|
-
var _c1$
|
|
18625
|
+
var _c0$r = [[["", "trigger", ""]]];
|
|
18626
|
+
var _c1$8 = ["[trigger]"];
|
|
18853
18627
|
var CaseFileViewOverlayMenuComponent = /** @class */ (function () {
|
|
18854
18628
|
function CaseFileViewOverlayMenuComponent() {
|
|
18855
18629
|
this.title = '';
|
|
@@ -18864,9 +18638,9 @@
|
|
|
18864
18638
|
return CaseFileViewOverlayMenuComponent;
|
|
18865
18639
|
}());
|
|
18866
18640
|
CaseFileViewOverlayMenuComponent.ɵfac = function CaseFileViewOverlayMenuComponent_Factory(t) { return new (t || CaseFileViewOverlayMenuComponent)(); };
|
|
18867
|
-
CaseFileViewOverlayMenuComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewOverlayMenuComponent, selectors: [["ccd-case-file-view-overlay-menu"]], inputs: { title: "title", menuItems: "menuItems", isOpen: "isOpen" }, outputs: { isOpenChange: "isOpenChange" }, ngContentSelectors: _c1$
|
|
18641
|
+
CaseFileViewOverlayMenuComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewOverlayMenuComponent, selectors: [["ccd-case-file-view-overlay-menu"]], inputs: { title: "title", menuItems: "menuItems", isOpen: "isOpen" }, outputs: { isOpenChange: "isOpenChange" }, ngContentSelectors: _c1$8, decls: 5, vars: 4, consts: [["type", "button", "cdkOverlayOrigin", "", 1, "overlay-toggle", 3, "click"], ["trigger", "cdkOverlayOrigin"], ["cdkConnectedOverlay", "", 3, "cdkConnectedOverlayOrigin", "cdkConnectedOverlayOpen", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayBackdropClass", "backdropClick"], [1, "overlay-menu"], [4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "overlay-menu__title"], [1, "overlay-menu__item", 3, "click"], ["class", "overlay-menu__itemIcon", 3, "src", "alt", 4, "ngIf"], [1, "overlay-menu__actionText"], [1, "overlay-menu__itemIcon", 3, "src", "alt"]], template: function CaseFileViewOverlayMenuComponent_Template(rf, ctx) {
|
|
18868
18642
|
if (rf & 1) {
|
|
18869
|
-
i0__namespace.ɵɵprojectionDef(_c0$
|
|
18643
|
+
i0__namespace.ɵɵprojectionDef(_c0$r);
|
|
18870
18644
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
18871
18645
|
i0__namespace.ɵɵelementStart(1, "button", 0, 1);
|
|
18872
18646
|
i0__namespace.ɵɵlistener("click", function CaseFileViewOverlayMenuComponent_Template_button_click_1_listener($event) { $event.stopPropagation(); return ctx.isOpen = !ctx.isOpen; });
|
|
@@ -19329,7 +19103,7 @@
|
|
|
19329
19103
|
return Object.assign(documentTreeNode, node);
|
|
19330
19104
|
}
|
|
19331
19105
|
var filteredData = this.documentTreeData;
|
|
19332
|
-
if (searchTerm && searchTerm.length >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS && this.documentFilterFormGroup.controls[CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME].value.length >
|
|
19106
|
+
if (searchTerm && searchTerm.length >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS && this.documentFilterFormGroup.controls[CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME].value.length > 0) {
|
|
19333
19107
|
filteredData = this.documentTreeData.map(copy).filter(function filterTreeData(node) {
|
|
19334
19108
|
if (node.name && node.name.toLowerCase().includes(searchTerm) && node.type === DocumentTreeNodeType.DOCUMENT) {
|
|
19335
19109
|
return true;
|
|
@@ -19411,7 +19185,6 @@
|
|
|
19411
19185
|
CaseFileViewFolderComponent.prototype.openMoveDialog = function (node) {
|
|
19412
19186
|
var _this = this;
|
|
19413
19187
|
var dialogRef = this.dialog.open(CaseFileViewFolderSelectorComponent, {
|
|
19414
|
-
width: '570px',
|
|
19415
19188
|
data: { categories: this.categories, document: node }
|
|
19416
19189
|
});
|
|
19417
19190
|
dialogRef.afterClosed().subscribe(function (newCatId) {
|
|
@@ -19437,7 +19210,7 @@
|
|
|
19437
19210
|
}());
|
|
19438
19211
|
CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised documents';
|
|
19439
19212
|
CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME = 'documentSearchFormControl';
|
|
19440
|
-
CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS =
|
|
19213
|
+
CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 1;
|
|
19441
19214
|
CaseFileViewFolderComponent.ɵfac = function CaseFileViewFolderComponent_Factory(t) { return new (t || CaseFileViewFolderComponent)(i0__namespace.ɵɵdirectiveInject(WindowService), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog)); };
|
|
19442
19215
|
CaseFileViewFolderComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], inputs: { categoriesAndDocuments: "categoriesAndDocuments", allowMoving: "allowMoving" }, outputs: { clickedDocument: "clickedDocument", moveDocument: "moveDocument" }, decls: 9, vars: 3, consts: [[1, "document-filter-container"], [1, "form-group", "document-filter", 3, "formGroup"], ["type", "search", "id", "document-search", "name", "documentSearchFormControl", "formControlName", "documentSearchFormControl", "placeholder", "Search by document name", 1, "form-control", "document-search"], [1, "document-folders-header"], [1, "document-folders-header__title"], [3, "sortAscending", "sortDescending"], ["class", "document-tree-container", 4, "ngIf"], [1, "document-tree-container"], [4, "ngIf"], [3, "dataSource", "treeControl"], ["class", "document-tree-container__node document-tree-container__node--document", 4, "cdkTreeNodeDef"], ["class", "document-tree-container__node document-tree-container__folder", 4, "cdkTreeNodeDef", "cdkTreeNodeDefWhen"], [1, "document-tree-container__node", "document-tree-container__node--document"], [1, "node", 3, "click"], ["disabled", "", 1, "node__icon"], ["src", "/assets/img/case-file-view/case-file-view-document.svg", "alt", "Document icon", 1, "node__iconImg"], [1, "node__name", "node-name-document"], [1, "node__document-options"], [3, "allowMoving", "changeFolderAction", "openInANewTabAction", "downloadAction", "printAction"], [1, "document-tree-container__node", "document-tree-container__folder"], ["cdkTreeNodeToggle", "", 1, "node"], [1, "node__icon"], ["alt", "Folder icon", 1, "node__iconImg", 3, "src"], [1, "node__count"], [1, "node__name", "node__name--folder"], ["cdkTreeNodeOutlet", ""]], template: function CaseFileViewFolderComponent_Template(rf, ctx) {
|
|
19443
19216
|
if (rf & 1) {
|
|
@@ -19714,8 +19487,8 @@
|
|
|
19714
19487
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r8.flagTypeErrorMessage, " ");
|
|
19715
19488
|
}
|
|
19716
19489
|
}
|
|
19717
|
-
var _c0$
|
|
19718
|
-
var _c1$
|
|
19490
|
+
var _c0$q = function (a0) { return { "form-group-error": a0 }; };
|
|
19491
|
+
var _c1$7 = function (a0) { return { "govuk-input--error": a0 }; };
|
|
19719
19492
|
function SelectFlagTypeComponent_div_9_Template(rf, ctx) {
|
|
19720
19493
|
if (rf & 1) {
|
|
19721
19494
|
i0__namespace.ɵɵelementStart(0, "div", 15);
|
|
@@ -19731,11 +19504,11 @@
|
|
|
19731
19504
|
if (rf & 2) {
|
|
19732
19505
|
var ctx_r2 = i0__namespace.ɵɵnextContext();
|
|
19733
19506
|
i0__namespace.ɵɵadvance(1);
|
|
19734
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$
|
|
19507
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$q, ctx_r2.flagTypeErrorMessage.length > 0));
|
|
19735
19508
|
i0__namespace.ɵɵadvance(3);
|
|
19736
19509
|
i0__namespace.ɵɵproperty("ngIf", ctx_r2.flagTypeErrorMessage.length > 0);
|
|
19737
19510
|
i0__namespace.ɵɵadvance(1);
|
|
19738
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$
|
|
19511
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$7, ctx_r2.flagTypeErrorMessage.length > 0))("name", ctx_r2.descriptionControlName)("formControlName", ctx_r2.descriptionControlName);
|
|
19739
19512
|
}
|
|
19740
19513
|
}
|
|
19741
19514
|
function SelectFlagTypeComponent_div_10_Template(rf, ctx) {
|
|
@@ -19893,7 +19666,7 @@
|
|
|
19893
19666
|
if (rf & 2) {
|
|
19894
19667
|
i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
|
|
19895
19668
|
i0__namespace.ɵɵadvance(1);
|
|
19896
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$
|
|
19669
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$q, ctx.flagTypeNotSelectedErrorMessage.length > 0));
|
|
19897
19670
|
i0__namespace.ɵɵadvance(4);
|
|
19898
19671
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx.caseFlagWizardStepTitle.SELECT_CASE_FLAG, " ");
|
|
19899
19672
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -20005,7 +19778,7 @@
|
|
|
20005
19778
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r8.languageCharLimitErrorMessage, " ");
|
|
20006
19779
|
}
|
|
20007
19780
|
}
|
|
20008
|
-
var _c0$
|
|
19781
|
+
var _c0$p = function (a0) { return { "form-group-error": a0 }; };
|
|
20009
19782
|
function SearchLanguageInterpreterComponent_div_21_Template(rf, ctx) {
|
|
20010
19783
|
if (rf & 1) {
|
|
20011
19784
|
i0__namespace.ɵɵelementStart(0, "div", 25);
|
|
@@ -20022,7 +19795,7 @@
|
|
|
20022
19795
|
if (rf & 2) {
|
|
20023
19796
|
var ctx_r5 = i0__namespace.ɵɵnextContext();
|
|
20024
19797
|
i0__namespace.ɵɵadvance(1);
|
|
20025
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$
|
|
19798
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$p, ctx_r5.languageNotEnteredErrorMessage || ctx_r5.languageCharLimitErrorMessage));
|
|
20026
19799
|
i0__namespace.ɵɵadvance(2);
|
|
20027
19800
|
i0__namespace.ɵɵtextInterpolate(ctx_r5.searchLanguageInterpreterStep.INPUT_LABEL);
|
|
20028
19801
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -20197,7 +19970,7 @@
|
|
|
20197
19970
|
var _r2 = i0__namespace.ɵɵreference(12);
|
|
20198
19971
|
i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
|
|
20199
19972
|
i0__namespace.ɵɵadvance(1);
|
|
20200
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(16, _c0$
|
|
19973
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(16, _c0$p, ctx.languageNotSelectedErrorMessage || ctx.languageEnteredInBothFieldsErrorMessage));
|
|
20201
19974
|
i0__namespace.ɵɵadvance(2);
|
|
20202
19975
|
i0__namespace.ɵɵproperty("for", ctx.languageSearchTermControlName);
|
|
20203
19976
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -20331,7 +20104,7 @@
|
|
|
20331
20104
|
i0__namespace.ɵɵelementEnd();
|
|
20332
20105
|
}
|
|
20333
20106
|
}
|
|
20334
|
-
var _c0$
|
|
20107
|
+
var _c0$o = function (a0) { return { "form-group-error": a0 }; };
|
|
20335
20108
|
var SelectFlagLocationComponent = /** @class */ (function () {
|
|
20336
20109
|
function SelectFlagLocationComponent() {
|
|
20337
20110
|
this.caseFlagStateEmitter = new i0.EventEmitter();
|
|
@@ -20420,7 +20193,7 @@
|
|
|
20420
20193
|
if (rf & 2) {
|
|
20421
20194
|
i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
|
|
20422
20195
|
i0__namespace.ɵɵadvance(1);
|
|
20423
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$
|
|
20196
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$o, ctx.errorMessages.length > 0));
|
|
20424
20197
|
i0__namespace.ɵɵadvance(4);
|
|
20425
20198
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx.flagLocationTitle, " ");
|
|
20426
20199
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -20484,7 +20257,7 @@
|
|
|
20484
20257
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r2.flagCommentsCharLimitErrorMessage, " ");
|
|
20485
20258
|
}
|
|
20486
20259
|
}
|
|
20487
|
-
var _c0$
|
|
20260
|
+
var _c0$n = function (a0) { return { "form-group-error": a0 }; };
|
|
20488
20261
|
var AddCommentsComponent = /** @class */ (function () {
|
|
20489
20262
|
function AddCommentsComponent() {
|
|
20490
20263
|
this.optional = false;
|
|
@@ -20565,7 +20338,7 @@
|
|
|
20565
20338
|
if (rf & 2) {
|
|
20566
20339
|
i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
|
|
20567
20340
|
i0__namespace.ɵɵadvance(2);
|
|
20568
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(12, _c0$
|
|
20341
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(12, _c0$n, ctx.errorMessages.length > 0));
|
|
20569
20342
|
i0__namespace.ɵɵadvance(2);
|
|
20570
20343
|
i0__namespace.ɵɵproperty("for", ctx.flagCommentsControlName);
|
|
20571
20344
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -20645,7 +20418,7 @@
|
|
|
20645
20418
|
i0__namespace.ɵɵelementEnd();
|
|
20646
20419
|
}
|
|
20647
20420
|
}
|
|
20648
|
-
var _c0$
|
|
20421
|
+
var _c0$m = function (a0) { return { "form-group-error": a0 }; };
|
|
20649
20422
|
var ManageCaseFlagsComponent = /** @class */ (function () {
|
|
20650
20423
|
function ManageCaseFlagsComponent() {
|
|
20651
20424
|
this.caseFlagStateEmitter = new i0.EventEmitter();
|
|
@@ -20810,7 +20583,7 @@
|
|
|
20810
20583
|
if (rf & 2) {
|
|
20811
20584
|
i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
|
|
20812
20585
|
i0__namespace.ɵɵadvance(1);
|
|
20813
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$
|
|
20586
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$m, ctx.errorMessages.length > 0));
|
|
20814
20587
|
i0__namespace.ɵɵadvance(4);
|
|
20815
20588
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx.manageCaseFlagTitle, " ");
|
|
20816
20589
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -20880,8 +20653,8 @@
|
|
|
20880
20653
|
i0__namespace.ɵɵelementEnd();
|
|
20881
20654
|
}
|
|
20882
20655
|
}
|
|
20883
|
-
var _c0$
|
|
20884
|
-
var _c1$
|
|
20656
|
+
var _c0$l = function (a0) { return { "form-group-error": a0 }; };
|
|
20657
|
+
var _c1$6 = function (a0) { return { "govuk-tag--grey": a0 }; };
|
|
20885
20658
|
var UpdateFlagComponent = /** @class */ (function () {
|
|
20886
20659
|
function UpdateFlagComponent() {
|
|
20887
20660
|
this.caseFlagStateEmitter = new i0.EventEmitter();
|
|
@@ -21002,7 +20775,7 @@
|
|
|
21002
20775
|
if (rf & 2) {
|
|
21003
20776
|
i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
|
|
21004
20777
|
i0__namespace.ɵɵadvance(2);
|
|
21005
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(14, _c0$
|
|
20778
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(14, _c0$l, ctx.errorMessages.length > 0));
|
|
21006
20779
|
i0__namespace.ɵɵadvance(2);
|
|
21007
20780
|
i0__namespace.ɵɵproperty("for", ctx.updateFlagControlName);
|
|
21008
20781
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -21018,7 +20791,7 @@
|
|
|
21018
20791
|
i0__namespace.ɵɵadvance(3);
|
|
21019
20792
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagCharLimitInfo, " ");
|
|
21020
20793
|
i0__namespace.ɵɵadvance(6);
|
|
21021
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(16, _c1$
|
|
20794
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(16, _c1$6, ctx.selectedFlag.flagDetailDisplay.flagDetail.status === "Inactive"));
|
|
21022
20795
|
i0__namespace.ɵɵadvance(1);
|
|
21023
20796
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx.selectedFlag.flagDetailDisplay.flagDetail.status, " ");
|
|
21024
20797
|
i0__namespace.ɵɵadvance(2);
|
|
@@ -21151,2309 +20924,6 @@
|
|
|
21151
20924
|
}] });
|
|
21152
20925
|
})();
|
|
21153
20926
|
|
|
21154
|
-
exports.LinkedCasesPages = void 0;
|
|
21155
|
-
(function (LinkedCasesPages) {
|
|
21156
|
-
LinkedCasesPages[LinkedCasesPages["BEFORE_YOU_START"] = 0] = "BEFORE_YOU_START";
|
|
21157
|
-
LinkedCasesPages[LinkedCasesPages["NO_LINKED_CASES"] = 1] = "NO_LINKED_CASES";
|
|
21158
|
-
LinkedCasesPages[LinkedCasesPages["LINK_CASE"] = 2] = "LINK_CASE";
|
|
21159
|
-
LinkedCasesPages[LinkedCasesPages["UNLINK_CASE"] = 3] = "UNLINK_CASE";
|
|
21160
|
-
LinkedCasesPages[LinkedCasesPages["CHECK_YOUR_ANSWERS"] = 4] = "CHECK_YOUR_ANSWERS";
|
|
21161
|
-
})(exports.LinkedCasesPages || (exports.LinkedCasesPages = {}));
|
|
21162
|
-
exports.LinkedCasesErrorMessages = void 0;
|
|
21163
|
-
(function (LinkedCasesErrorMessages) {
|
|
21164
|
-
LinkedCasesErrorMessages["ProposedCaseWithIn"] = "Case can not be linked to the same case";
|
|
21165
|
-
LinkedCasesErrorMessages["CaseNumberError"] = "Case numbers must have 16 digits";
|
|
21166
|
-
LinkedCasesErrorMessages["ReasonSelectionError"] = "Select a reason why these cases should be linked";
|
|
21167
|
-
LinkedCasesErrorMessages["SomethingWrong"] = "Something went wrong, please try again later";
|
|
21168
|
-
LinkedCasesErrorMessages["CaseCheckAgainError"] = "Check the case number and try again";
|
|
21169
|
-
LinkedCasesErrorMessages["CaseSelectionError"] = "You need to propose at least one case";
|
|
21170
|
-
LinkedCasesErrorMessages["CaseProposedError"] = "This case has already been proposed";
|
|
21171
|
-
LinkedCasesErrorMessages["CasesLinkedError"] = "These cases are already linked";
|
|
21172
|
-
LinkedCasesErrorMessages["UnlinkCaseSelectionError"] = "Select a case to unlink before continue";
|
|
21173
|
-
LinkedCasesErrorMessages["LinkCasesNavigationError"] = "Please select Next to link case(s)";
|
|
21174
|
-
LinkedCasesErrorMessages["UnlinkCasesNavigationError"] = "Please select Next to unlink case(s)";
|
|
21175
|
-
LinkedCasesErrorMessages["BackNavigationError"] = "Please select Back to go to the previous page";
|
|
21176
|
-
})(exports.LinkedCasesErrorMessages || (exports.LinkedCasesErrorMessages = {}));
|
|
21177
|
-
exports.LinkedCasesEventTriggers = void 0;
|
|
21178
|
-
(function (LinkedCasesEventTriggers) {
|
|
21179
|
-
LinkedCasesEventTriggers["LINK_CASES"] = "Link cases";
|
|
21180
|
-
LinkedCasesEventTriggers["MANAGE_CASE_LINKS"] = "Manage case links";
|
|
21181
|
-
})(exports.LinkedCasesEventTriggers || (exports.LinkedCasesEventTriggers = {}));
|
|
21182
|
-
exports.Patterns = void 0;
|
|
21183
|
-
(function (Patterns) {
|
|
21184
|
-
Patterns["CASE_REF"] = "((([0-9]{4})(?: |-)?)){4}";
|
|
21185
|
-
})(exports.Patterns || (exports.Patterns = {}));
|
|
21186
|
-
|
|
21187
|
-
function BeforeYouStartComponent_div_1_p_3_Template(rf, ctx) {
|
|
21188
|
-
if (rf & 1) {
|
|
21189
|
-
i0__namespace.ɵɵelementStart(0, "p", 5);
|
|
21190
|
-
i0__namespace.ɵɵelementStart(1, "span", 6);
|
|
21191
|
-
i0__namespace.ɵɵtext(2, "Error:");
|
|
21192
|
-
i0__namespace.ɵɵelementEnd();
|
|
21193
|
-
i0__namespace.ɵɵtext(3);
|
|
21194
|
-
i0__namespace.ɵɵelementEnd();
|
|
21195
|
-
}
|
|
21196
|
-
if (rf & 2) {
|
|
21197
|
-
var ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
21198
|
-
i0__namespace.ɵɵadvance(3);
|
|
21199
|
-
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r2.linkedCasesService.serverLinkedApiError.message, " ");
|
|
21200
|
-
}
|
|
21201
|
-
}
|
|
21202
|
-
function BeforeYouStartComponent_div_1_Template(rf, ctx) {
|
|
21203
|
-
if (rf & 1) {
|
|
21204
|
-
var _r4_1 = i0__namespace.ɵɵgetCurrentView();
|
|
21205
|
-
i0__namespace.ɵɵelementStart(0, "div");
|
|
21206
|
-
i0__namespace.ɵɵelementStart(1, "h1", 1);
|
|
21207
|
-
i0__namespace.ɵɵtext(2, "There is a problem");
|
|
21208
|
-
i0__namespace.ɵɵelementEnd();
|
|
21209
|
-
i0__namespace.ɵɵtemplate(3, BeforeYouStartComponent_div_1_p_3_Template, 4, 1, "p", 2);
|
|
21210
|
-
i0__namespace.ɵɵelementStart(4, "p", 3);
|
|
21211
|
-
i0__namespace.ɵɵelementStart(5, "a", 4);
|
|
21212
|
-
i0__namespace.ɵɵlistener("click", function BeforeYouStartComponent_div_1_Template_a_click_5_listener() { i0__namespace.ɵɵrestoreView(_r4_1); var ctx_r3 = i0__namespace.ɵɵnextContext(); return ctx_r3.onBack(); });
|
|
21213
|
-
i0__namespace.ɵɵtext(6, "Go back to the Linked cases tab");
|
|
21214
|
-
i0__namespace.ɵɵelementEnd();
|
|
21215
|
-
i0__namespace.ɵɵelementEnd();
|
|
21216
|
-
i0__namespace.ɵɵelementEnd();
|
|
21217
|
-
}
|
|
21218
|
-
if (rf & 2) {
|
|
21219
|
-
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
21220
|
-
i0__namespace.ɵɵadvance(3);
|
|
21221
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r0.linkedCasesService.serverLinkedApiError);
|
|
21222
|
-
}
|
|
21223
|
-
}
|
|
21224
|
-
function BeforeYouStartComponent_div_2_div_3_Template(rf, ctx) {
|
|
21225
|
-
if (rf & 1) {
|
|
21226
|
-
i0__namespace.ɵɵelementStart(0, "div", 11);
|
|
21227
|
-
i0__namespace.ɵɵelementStart(1, "p", 3);
|
|
21228
|
-
i0__namespace.ɵɵtext(2, "If a group of linked cases has a lead case, you must start from the lead case.");
|
|
21229
|
-
i0__namespace.ɵɵelementEnd();
|
|
21230
|
-
i0__namespace.ɵɵelementStart(3, "p", 3);
|
|
21231
|
-
i0__namespace.ɵɵtext(4, "If the cases to be linked has no lead, you can start the linking journey from any of those cases.");
|
|
21232
|
-
i0__namespace.ɵɵelementEnd();
|
|
21233
|
-
i0__namespace.ɵɵelementEnd();
|
|
21234
|
-
}
|
|
21235
|
-
}
|
|
21236
|
-
function BeforeYouStartComponent_div_2_div_4_Template(rf, ctx) {
|
|
21237
|
-
if (rf & 1) {
|
|
21238
|
-
i0__namespace.ɵɵelementStart(0, "div", 12);
|
|
21239
|
-
i0__namespace.ɵɵelementStart(1, "p", 3);
|
|
21240
|
-
i0__namespace.ɵɵtext(2, "If there are linked hearings for the case you need to un-link then you must unlink the hearing first.");
|
|
21241
|
-
i0__namespace.ɵɵelementEnd();
|
|
21242
|
-
i0__namespace.ɵɵelementEnd();
|
|
21243
|
-
}
|
|
21244
|
-
}
|
|
21245
|
-
function BeforeYouStartComponent_div_2_Template(rf, ctx) {
|
|
21246
|
-
if (rf & 1) {
|
|
21247
|
-
var _r8_1 = i0__namespace.ɵɵgetCurrentView();
|
|
21248
|
-
i0__namespace.ɵɵelementStart(0, "div");
|
|
21249
|
-
i0__namespace.ɵɵelementStart(1, "h1", 1);
|
|
21250
|
-
i0__namespace.ɵɵtext(2, "Before you start");
|
|
21251
|
-
i0__namespace.ɵɵelementEnd();
|
|
21252
|
-
i0__namespace.ɵɵtemplate(3, BeforeYouStartComponent_div_2_div_3_Template, 5, 0, "div", 7);
|
|
21253
|
-
i0__namespace.ɵɵtemplate(4, BeforeYouStartComponent_div_2_div_4_Template, 3, 0, "div", 8);
|
|
21254
|
-
i0__namespace.ɵɵelementStart(5, "div", 9);
|
|
21255
|
-
i0__namespace.ɵɵelementStart(6, "button", 10);
|
|
21256
|
-
i0__namespace.ɵɵlistener("click", function BeforeYouStartComponent_div_2_Template_button_click_6_listener() { i0__namespace.ɵɵrestoreView(_r8_1); var ctx_r7 = i0__namespace.ɵɵnextContext(); return ctx_r7.onNext(); });
|
|
21257
|
-
i0__namespace.ɵɵtext(7, "Next");
|
|
21258
|
-
i0__namespace.ɵɵelementEnd();
|
|
21259
|
-
i0__namespace.ɵɵelementEnd();
|
|
21260
|
-
i0__namespace.ɵɵelementEnd();
|
|
21261
|
-
}
|
|
21262
|
-
if (rf & 2) {
|
|
21263
|
-
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
21264
|
-
i0__namespace.ɵɵadvance(3);
|
|
21265
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r1.isLinkCasesJourney);
|
|
21266
|
-
i0__namespace.ɵɵadvance(1);
|
|
21267
|
-
i0__namespace.ɵɵproperty("ngIf", !ctx_r1.isLinkCasesJourney);
|
|
21268
|
-
}
|
|
21269
|
-
}
|
|
21270
|
-
var BeforeYouStartComponent = /** @class */ (function () {
|
|
21271
|
-
function BeforeYouStartComponent(router, linkedCasesService) {
|
|
21272
|
-
this.router = router;
|
|
21273
|
-
this.linkedCasesService = linkedCasesService;
|
|
21274
|
-
this.linkedCasesStateEmitter = new i0.EventEmitter();
|
|
21275
|
-
this.isLinkCasesJourney = false;
|
|
21276
|
-
this.isLinkCasesJourney = this.linkedCasesService.isLinkedCasesEventTrigger;
|
|
21277
|
-
// re-initiate the state based on the casefield value
|
|
21278
|
-
var linkedCaseRefereneIds = this.linkedCasesService.caseFieldValue.filter(function (item) { return item; }).map(function (item) { return item.id; });
|
|
21279
|
-
this.linkedCasesService.linkedCases = this.linkedCasesService.linkedCases.filter(function (item) { return linkedCaseRefereneIds.indexOf(item.caseReference) !== -1; });
|
|
21280
|
-
this.linkedCasesService.initialCaseLinks = this.linkedCasesService.linkedCases;
|
|
21281
|
-
}
|
|
21282
|
-
BeforeYouStartComponent.prototype.onNext = function () {
|
|
21283
|
-
this.linkedCasesStateEmitter.emit({
|
|
21284
|
-
currentLinkedCasesPage: exports.LinkedCasesPages.BEFORE_YOU_START,
|
|
21285
|
-
errorMessages: this.errorMessages,
|
|
21286
|
-
navigateToNextPage: true
|
|
21287
|
-
});
|
|
21288
|
-
};
|
|
21289
|
-
BeforeYouStartComponent.prototype.onBack = function () {
|
|
21290
|
-
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId]).then(function () {
|
|
21291
|
-
window.location.hash = 'Linked cases';
|
|
21292
|
-
});
|
|
21293
|
-
};
|
|
21294
|
-
return BeforeYouStartComponent;
|
|
21295
|
-
}());
|
|
21296
|
-
BeforeYouStartComponent.ɵfac = function BeforeYouStartComponent_Factory(t) { return new (t || BeforeYouStartComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
21297
|
-
BeforeYouStartComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: BeforeYouStartComponent, selectors: [["ccd-linked-cases-before-you-start"]], outputs: { linkedCasesStateEmitter: "linkedCasesStateEmitter" }, decls: 3, vars: 2, consts: [[4, "ngIf"], [1, "govuk-heading-xl"], ["id", "unlink-cases-error", "class", "govuk-error-message", 4, "ngIf"], [1, "govuk-body"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], ["id", "unlink-cases-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "link-cases-journey", 4, "ngIf"], ["id", "manage-link-cases-journey", 4, "ngIf"], [1, "govuk-button-group"], ["type", "button", "id", "next-button", 1, "button", "button-primary", 3, "click"], ["id", "link-cases-journey"], ["id", "manage-link-cases-journey"]], template: function BeforeYouStartComponent_Template(rf, ctx) {
|
|
21298
|
-
if (rf & 1) {
|
|
21299
|
-
i0__namespace.ɵɵelementStart(0, "div");
|
|
21300
|
-
i0__namespace.ɵɵtemplate(1, BeforeYouStartComponent_div_1_Template, 7, 1, "div", 0);
|
|
21301
|
-
i0__namespace.ɵɵtemplate(2, BeforeYouStartComponent_div_2_Template, 8, 2, "div", 0);
|
|
21302
|
-
i0__namespace.ɵɵelementEnd();
|
|
21303
|
-
}
|
|
21304
|
-
if (rf & 2) {
|
|
21305
|
-
i0__namespace.ɵɵadvance(1);
|
|
21306
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.linkedCasesService.serverLinkedApiError);
|
|
21307
|
-
i0__namespace.ɵɵadvance(1);
|
|
21308
|
-
i0__namespace.ɵɵproperty("ngIf", !ctx.linkedCasesService || !ctx.linkedCasesService.serverLinkedApiError);
|
|
21309
|
-
}
|
|
21310
|
-
}, directives: [i2__namespace.NgIf], encapsulation: 2 });
|
|
21311
|
-
(function () {
|
|
21312
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(BeforeYouStartComponent, [{
|
|
21313
|
-
type: i0.Component,
|
|
21314
|
-
args: [{
|
|
21315
|
-
selector: 'ccd-linked-cases-before-you-start',
|
|
21316
|
-
templateUrl: './before-you-start.component.html'
|
|
21317
|
-
}]
|
|
21318
|
-
}], function () { return [{ type: i1__namespace$1.Router }, { type: LinkedCasesService }]; }, { linkedCasesStateEmitter: [{
|
|
21319
|
-
type: i0.Output
|
|
21320
|
-
}] });
|
|
21321
|
-
})();
|
|
21322
|
-
|
|
21323
|
-
function CheckYourAnswersComponent_table_4_tr_9_Template(rf, ctx) {
|
|
21324
|
-
if (rf & 1) {
|
|
21325
|
-
var _r8_1 = i0__namespace.ɵɵgetCurrentView();
|
|
21326
|
-
i0__namespace.ɵɵelementStart(0, "tr", 7);
|
|
21327
|
-
i0__namespace.ɵɵelementStart(1, "td", 14);
|
|
21328
|
-
i0__namespace.ɵɵtext(2);
|
|
21329
|
-
i0__namespace.ɵɵelement(3, "br");
|
|
21330
|
-
i0__namespace.ɵɵtext(4);
|
|
21331
|
-
i0__namespace.ɵɵpipe(5, "ccdCaseReference");
|
|
21332
|
-
i0__namespace.ɵɵelementEnd();
|
|
21333
|
-
i0__namespace.ɵɵelementStart(6, "td", 14);
|
|
21334
|
-
i0__namespace.ɵɵelementStart(7, "a", 15);
|
|
21335
|
-
i0__namespace.ɵɵlistener("click", function CheckYourAnswersComponent_table_4_tr_9_Template_a_click_7_listener() { i0__namespace.ɵɵrestoreView(_r8_1); var ctx_r7 = i0__namespace.ɵɵnextContext(2); return ctx_r7.onChange(); });
|
|
21336
|
-
i0__namespace.ɵɵtext(8, "Change");
|
|
21337
|
-
i0__namespace.ɵɵelementEnd();
|
|
21338
|
-
i0__namespace.ɵɵelementEnd();
|
|
21339
|
-
i0__namespace.ɵɵelementEnd();
|
|
21340
|
-
}
|
|
21341
|
-
if (rf & 2) {
|
|
21342
|
-
var case_r6 = ctx.$implicit;
|
|
21343
|
-
i0__namespace.ɵɵadvance(2);
|
|
21344
|
-
i0__namespace.ɵɵtextInterpolate1(" ", case_r6.caseName, " ");
|
|
21345
|
-
i0__namespace.ɵɵadvance(2);
|
|
21346
|
-
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 2, case_r6.caseReference), " ");
|
|
21347
|
-
}
|
|
21348
|
-
}
|
|
21349
|
-
function CheckYourAnswersComponent_table_4_tr_10_Template(rf, ctx) {
|
|
21350
|
-
if (rf & 1) {
|
|
21351
|
-
i0__namespace.ɵɵelementStart(0, "tr", 7);
|
|
21352
|
-
i0__namespace.ɵɵelementStart(1, "td", 16);
|
|
21353
|
-
i0__namespace.ɵɵtext(2, " None ");
|
|
21354
|
-
i0__namespace.ɵɵelementEnd();
|
|
21355
|
-
i0__namespace.ɵɵelementEnd();
|
|
21356
|
-
}
|
|
21357
|
-
}
|
|
21358
|
-
function CheckYourAnswersComponent_table_4_Template(rf, ctx) {
|
|
21359
|
-
if (rf & 1) {
|
|
21360
|
-
i0__namespace.ɵɵelementStart(0, "table", 13);
|
|
21361
|
-
i0__namespace.ɵɵelementStart(1, "caption", 5);
|
|
21362
|
-
i0__namespace.ɵɵtext(2, "Cases to unlink");
|
|
21363
|
-
i0__namespace.ɵɵelementEnd();
|
|
21364
|
-
i0__namespace.ɵɵelementStart(3, "thead", 6);
|
|
21365
|
-
i0__namespace.ɵɵelementStart(4, "tr", 7);
|
|
21366
|
-
i0__namespace.ɵɵelementStart(5, "th", 8);
|
|
21367
|
-
i0__namespace.ɵɵtext(6, "Case name and number");
|
|
21368
|
-
i0__namespace.ɵɵelementEnd();
|
|
21369
|
-
i0__namespace.ɵɵelement(7, "th", 8);
|
|
21370
|
-
i0__namespace.ɵɵelementEnd();
|
|
21371
|
-
i0__namespace.ɵɵelementEnd();
|
|
21372
|
-
i0__namespace.ɵɵelementStart(8, "tbody", 10);
|
|
21373
|
-
i0__namespace.ɵɵtemplate(9, CheckYourAnswersComponent_table_4_tr_9_Template, 9, 4, "tr", 11);
|
|
21374
|
-
i0__namespace.ɵɵtemplate(10, CheckYourAnswersComponent_table_4_tr_10_Template, 3, 0, "tr", 12);
|
|
21375
|
-
i0__namespace.ɵɵelementEnd();
|
|
21376
|
-
i0__namespace.ɵɵelementEnd();
|
|
21377
|
-
}
|
|
21378
|
-
if (rf & 2) {
|
|
21379
|
-
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
21380
|
-
i0__namespace.ɵɵadvance(9);
|
|
21381
|
-
i0__namespace.ɵɵproperty("ngForOf", ctx_r0.casesToUnlink);
|
|
21382
|
-
i0__namespace.ɵɵadvance(1);
|
|
21383
|
-
i0__namespace.ɵɵproperty("ngIf", !ctx_r0.casesToUnlink.length);
|
|
21384
|
-
}
|
|
21385
|
-
}
|
|
21386
|
-
function CheckYourAnswersComponent_th_15_Template(rf, ctx) {
|
|
21387
|
-
if (rf & 1) {
|
|
21388
|
-
i0__namespace.ɵɵelement(0, "th", 8);
|
|
21389
|
-
}
|
|
21390
|
-
}
|
|
21391
|
-
function CheckYourAnswersComponent_tr_17_span_8_br_3_Template(rf, ctx) {
|
|
21392
|
-
if (rf & 1) {
|
|
21393
|
-
i0__namespace.ɵɵelement(0, "br");
|
|
21394
|
-
}
|
|
21395
|
-
}
|
|
21396
|
-
function CheckYourAnswersComponent_tr_17_span_8_Template(rf, ctx) {
|
|
21397
|
-
if (rf & 1) {
|
|
21398
|
-
i0__namespace.ɵɵelementStart(0, "span");
|
|
21399
|
-
i0__namespace.ɵɵtext(1);
|
|
21400
|
-
i0__namespace.ɵɵpipe(2, "ccdLinkCasesReasonValue");
|
|
21401
|
-
i0__namespace.ɵɵtemplate(3, CheckYourAnswersComponent_tr_17_span_8_br_3_Template, 1, 0, "br", 19);
|
|
21402
|
-
i0__namespace.ɵɵelementEnd();
|
|
21403
|
-
}
|
|
21404
|
-
if (rf & 2) {
|
|
21405
|
-
var reason_r12 = ctx.$implicit;
|
|
21406
|
-
var isLast_r13 = ctx.last;
|
|
21407
|
-
i0__namespace.ɵɵadvance(1);
|
|
21408
|
-
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 2, reason_r12.reasonCode), "");
|
|
21409
|
-
i0__namespace.ɵɵadvance(2);
|
|
21410
|
-
i0__namespace.ɵɵproperty("ngIf", !isLast_r13);
|
|
21411
|
-
}
|
|
21412
|
-
}
|
|
21413
|
-
function CheckYourAnswersComponent_tr_17_td_10_Template(rf, ctx) {
|
|
21414
|
-
if (rf & 1) {
|
|
21415
|
-
var _r16_1 = i0__namespace.ɵɵgetCurrentView();
|
|
21416
|
-
i0__namespace.ɵɵelementStart(0, "td", 14);
|
|
21417
|
-
i0__namespace.ɵɵelementStart(1, "a", 15);
|
|
21418
|
-
i0__namespace.ɵɵlistener("click", function CheckYourAnswersComponent_tr_17_td_10_Template_a_click_1_listener() { i0__namespace.ɵɵrestoreView(_r16_1); var ctx_r15 = i0__namespace.ɵɵnextContext(2); return ctx_r15.onChange(); });
|
|
21419
|
-
i0__namespace.ɵɵtext(2, "Change");
|
|
21420
|
-
i0__namespace.ɵɵelementEnd();
|
|
21421
|
-
i0__namespace.ɵɵelementEnd();
|
|
21422
|
-
}
|
|
21423
|
-
}
|
|
21424
|
-
function CheckYourAnswersComponent_tr_17_Template(rf, ctx) {
|
|
21425
|
-
if (rf & 1) {
|
|
21426
|
-
i0__namespace.ɵɵelementStart(0, "tr", 7);
|
|
21427
|
-
i0__namespace.ɵɵelementStart(1, "td", 14);
|
|
21428
|
-
i0__namespace.ɵɵelementStart(2, "span");
|
|
21429
|
-
i0__namespace.ɵɵtext(3);
|
|
21430
|
-
i0__namespace.ɵɵelement(4, "br");
|
|
21431
|
-
i0__namespace.ɵɵtext(5);
|
|
21432
|
-
i0__namespace.ɵɵpipe(6, "ccdCaseReference");
|
|
21433
|
-
i0__namespace.ɵɵelementEnd();
|
|
21434
|
-
i0__namespace.ɵɵelementEnd();
|
|
21435
|
-
i0__namespace.ɵɵelementStart(7, "td", 14);
|
|
21436
|
-
i0__namespace.ɵɵtemplate(8, CheckYourAnswersComponent_tr_17_span_8_Template, 4, 4, "span", 17);
|
|
21437
|
-
i0__namespace.ɵɵelementEnd();
|
|
21438
|
-
i0__namespace.ɵɵelement(9, "td", 14);
|
|
21439
|
-
i0__namespace.ɵɵtemplate(10, CheckYourAnswersComponent_tr_17_td_10_Template, 3, 0, "td", 18);
|
|
21440
|
-
i0__namespace.ɵɵelementEnd();
|
|
21441
|
-
}
|
|
21442
|
-
if (rf & 2) {
|
|
21443
|
-
var case_r9 = ctx.$implicit;
|
|
21444
|
-
var ctx_r2 = i0__namespace.ɵɵnextContext();
|
|
21445
|
-
i0__namespace.ɵɵadvance(3);
|
|
21446
|
-
i0__namespace.ɵɵtextInterpolate1("", case_r9.caseName, " ");
|
|
21447
|
-
i0__namespace.ɵɵadvance(2);
|
|
21448
|
-
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(6, 4, case_r9.caseReference), " ");
|
|
21449
|
-
i0__namespace.ɵɵadvance(3);
|
|
21450
|
-
i0__namespace.ɵɵproperty("ngForOf", case_r9.reasons);
|
|
21451
|
-
i0__namespace.ɵɵadvance(2);
|
|
21452
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r2.isLinkCasesJourney);
|
|
21453
|
-
}
|
|
21454
|
-
}
|
|
21455
|
-
function CheckYourAnswersComponent_tr_18_Template(rf, ctx) {
|
|
21456
|
-
if (rf & 1) {
|
|
21457
|
-
i0__namespace.ɵɵelementStart(0, "tr", 7);
|
|
21458
|
-
i0__namespace.ɵɵelementStart(1, "td", 20);
|
|
21459
|
-
i0__namespace.ɵɵtext(2, " None ");
|
|
21460
|
-
i0__namespace.ɵɵelementEnd();
|
|
21461
|
-
i0__namespace.ɵɵelementEnd();
|
|
21462
|
-
}
|
|
21463
|
-
}
|
|
21464
|
-
var CheckYourAnswersComponent = /** @class */ (function () {
|
|
21465
|
-
function CheckYourAnswersComponent(linkedCasesService) {
|
|
21466
|
-
this.linkedCasesService = linkedCasesService;
|
|
21467
|
-
this.linkedCasesStateEmitter = new i0.EventEmitter();
|
|
21468
|
-
}
|
|
21469
|
-
CheckYourAnswersComponent.prototype.ngOnInit = function () {
|
|
21470
|
-
this.isLinkCasesJourney = this.linkedCasesService.isLinkedCasesEventTrigger;
|
|
21471
|
-
this.linkedCasesTableCaption = this.linkedCasesService.isLinkedCasesEventTrigger ? 'Proposed case links' : 'Linked cases';
|
|
21472
|
-
this.linkedCases = this.linkedCasesService.linkedCases.filter(function (linkedCase) { return !linkedCase.unlink; });
|
|
21473
|
-
this.casesToUnlink = this.linkedCasesService.linkedCases.filter(function (linkedCase) { return linkedCase.unlink && linkedCase.unlink === true; });
|
|
21474
|
-
};
|
|
21475
|
-
CheckYourAnswersComponent.prototype.onChange = function () {
|
|
21476
|
-
this.linkedCasesService.editMode = true;
|
|
21477
|
-
this.linkedCasesStateEmitter.emit({
|
|
21478
|
-
currentLinkedCasesPage: exports.LinkedCasesPages.CHECK_YOUR_ANSWERS,
|
|
21479
|
-
navigateToPreviousPage: true,
|
|
21480
|
-
navigateToNextPage: true
|
|
21481
|
-
});
|
|
21482
|
-
};
|
|
21483
|
-
return CheckYourAnswersComponent;
|
|
21484
|
-
}());
|
|
21485
|
-
CheckYourAnswersComponent.ɵfac = function CheckYourAnswersComponent_Factory(t) { return new (t || CheckYourAnswersComponent)(i0__namespace.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
21486
|
-
CheckYourAnswersComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CheckYourAnswersComponent, selectors: [["ccd-linked-cases-check-your-answers"]], outputs: { linkedCasesStateEmitter: "linkedCasesStateEmitter" }, decls: 19, vars: 5, consts: [[1, "govuk-grid-row"], [1, "govuk-grid-column-full"], [1, "govuk-heading-xl"], ["id", "cases-to-unlink-table", "class", "govuk-table", 4, "ngIf"], ["id", "linked-cases-table", 1, "govuk-table"], [1, "govuk-table__caption", "govuk-table__caption--m"], [1, "govuk-table__head"], [1, "govuk-table__row"], ["scope", "col", 1, "govuk-table__header"], ["scope", "col", "class", "govuk-table__header", 4, "ngIf"], [1, "govuk-table__body"], ["class", "govuk-table__row", 4, "ngFor", "ngForOf"], ["class", "govuk-table__row", 4, "ngIf"], ["id", "cases-to-unlink-table", 1, "govuk-table"], [1, "govuk-table__cell"], ["href", "javascript:void(0)", 1, "govuk-link", "govuk-link--no-visited-state", "float-right", 3, "click"], ["colspan", "2", 1, "govuk-table__cell"], [4, "ngFor", "ngForOf"], ["class", "govuk-table__cell", 4, "ngIf"], [4, "ngIf"], ["colspan", "4", 1, "govuk-table__cell"]], template: function CheckYourAnswersComponent_Template(rf, ctx) {
|
|
21487
|
-
if (rf & 1) {
|
|
21488
|
-
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
21489
|
-
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
21490
|
-
i0__namespace.ɵɵelementStart(2, "h1", 2);
|
|
21491
|
-
i0__namespace.ɵɵtext(3, "Check your answers");
|
|
21492
|
-
i0__namespace.ɵɵelementEnd();
|
|
21493
|
-
i0__namespace.ɵɵtemplate(4, CheckYourAnswersComponent_table_4_Template, 11, 2, "table", 3);
|
|
21494
|
-
i0__namespace.ɵɵelementStart(5, "table", 4);
|
|
21495
|
-
i0__namespace.ɵɵelementStart(6, "caption", 5);
|
|
21496
|
-
i0__namespace.ɵɵtext(7);
|
|
21497
|
-
i0__namespace.ɵɵelementEnd();
|
|
21498
|
-
i0__namespace.ɵɵelementStart(8, "thead", 6);
|
|
21499
|
-
i0__namespace.ɵɵelementStart(9, "tr", 7);
|
|
21500
|
-
i0__namespace.ɵɵelementStart(10, "th", 8);
|
|
21501
|
-
i0__namespace.ɵɵtext(11, "Case name and number");
|
|
21502
|
-
i0__namespace.ɵɵelementEnd();
|
|
21503
|
-
i0__namespace.ɵɵelementStart(12, "th", 8);
|
|
21504
|
-
i0__namespace.ɵɵtext(13, "Reasons for case link");
|
|
21505
|
-
i0__namespace.ɵɵelementEnd();
|
|
21506
|
-
i0__namespace.ɵɵelement(14, "th", 8);
|
|
21507
|
-
i0__namespace.ɵɵtemplate(15, CheckYourAnswersComponent_th_15_Template, 1, 0, "th", 9);
|
|
21508
|
-
i0__namespace.ɵɵelementEnd();
|
|
21509
|
-
i0__namespace.ɵɵelementEnd();
|
|
21510
|
-
i0__namespace.ɵɵelementStart(16, "tbody", 10);
|
|
21511
|
-
i0__namespace.ɵɵtemplate(17, CheckYourAnswersComponent_tr_17_Template, 11, 6, "tr", 11);
|
|
21512
|
-
i0__namespace.ɵɵtemplate(18, CheckYourAnswersComponent_tr_18_Template, 3, 0, "tr", 12);
|
|
21513
|
-
i0__namespace.ɵɵelementEnd();
|
|
21514
|
-
i0__namespace.ɵɵelementEnd();
|
|
21515
|
-
i0__namespace.ɵɵelementEnd();
|
|
21516
|
-
i0__namespace.ɵɵelementEnd();
|
|
21517
|
-
}
|
|
21518
|
-
if (rf & 2) {
|
|
21519
|
-
i0__namespace.ɵɵadvance(4);
|
|
21520
|
-
i0__namespace.ɵɵproperty("ngIf", !ctx.isLinkCasesJourney);
|
|
21521
|
-
i0__namespace.ɵɵadvance(3);
|
|
21522
|
-
i0__namespace.ɵɵtextInterpolate(ctx.linkedCasesTableCaption);
|
|
21523
|
-
i0__namespace.ɵɵadvance(8);
|
|
21524
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.isLinkCasesJourney);
|
|
21525
|
-
i0__namespace.ɵɵadvance(2);
|
|
21526
|
-
i0__namespace.ɵɵproperty("ngForOf", ctx.linkedCases);
|
|
21527
|
-
i0__namespace.ɵɵadvance(1);
|
|
21528
|
-
i0__namespace.ɵɵproperty("ngIf", !ctx.linkedCases.length);
|
|
21529
|
-
}
|
|
21530
|
-
}, styles: [".float-right[_ngcontent-%COMP%]{float:right}"] });
|
|
21531
|
-
(function () {
|
|
21532
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CheckYourAnswersComponent, [{
|
|
21533
|
-
type: i0.Component,
|
|
21534
|
-
args: [{
|
|
21535
|
-
selector: 'ccd-linked-cases-check-your-answers',
|
|
21536
|
-
templateUrl: './check-your-answers.component.html',
|
|
21537
|
-
styleUrls: ['./check-your-answers.component.scss']
|
|
21538
|
-
}]
|
|
21539
|
-
}], function () { return [{ type: LinkedCasesService }]; }, { linkedCasesStateEmitter: [{
|
|
21540
|
-
type: i0.Output
|
|
21541
|
-
}] });
|
|
21542
|
-
})();
|
|
21543
|
-
|
|
21544
|
-
var ValidatorsUtils = /** @class */ (function () {
|
|
21545
|
-
function ValidatorsUtils() {
|
|
21546
|
-
}
|
|
21547
|
-
ValidatorsUtils.prototype.numberLengthValidator = function (inputLength) {
|
|
21548
|
-
return function (control) {
|
|
21549
|
-
return control.value.length !== inputLength ? { isValid: false } : null;
|
|
21550
|
-
};
|
|
21551
|
-
};
|
|
21552
|
-
ValidatorsUtils.prototype.formArraySelectedValidator = function () {
|
|
21553
|
-
return function (control) {
|
|
21554
|
-
return control.value.every(function (option) { return !option.selected; }) ? { isValid: false } : null;
|
|
21555
|
-
};
|
|
21556
|
-
};
|
|
21557
|
-
ValidatorsUtils.prototype.regexPattern = function (regexPattern) {
|
|
21558
|
-
return function (control) {
|
|
21559
|
-
var regex = new RegExp(regexPattern);
|
|
21560
|
-
return regex.test(control.value) ? null : { isValid: false };
|
|
21561
|
-
};
|
|
21562
|
-
};
|
|
21563
|
-
return ValidatorsUtils;
|
|
21564
|
-
}());
|
|
21565
|
-
ValidatorsUtils.ɵfac = function ValidatorsUtils_Factory(t) { return new (t || ValidatorsUtils)(); };
|
|
21566
|
-
ValidatorsUtils.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: ValidatorsUtils, factory: ValidatorsUtils.ɵfac, providedIn: 'root' });
|
|
21567
|
-
(function () {
|
|
21568
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ValidatorsUtils, [{
|
|
21569
|
-
type: i0.Injectable,
|
|
21570
|
-
args: [{ providedIn: 'root' }]
|
|
21571
|
-
}], null, null);
|
|
21572
|
-
})();
|
|
21573
|
-
|
|
21574
|
-
function LinkCasesComponent_div_8_span_4_Template(rf, ctx) {
|
|
21575
|
-
if (rf & 1) {
|
|
21576
|
-
i0__namespace.ɵɵelementStart(0, "span", 28);
|
|
21577
|
-
i0__namespace.ɵɵelementStart(1, "span", 29);
|
|
21578
|
-
i0__namespace.ɵɵtext(2, "Error:");
|
|
21579
|
-
i0__namespace.ɵɵelementEnd();
|
|
21580
|
-
i0__namespace.ɵɵtext(3);
|
|
21581
|
-
i0__namespace.ɵɵelementEnd();
|
|
21582
|
-
}
|
|
21583
|
-
if (rf & 2) {
|
|
21584
|
-
var ctx_r4 = i0__namespace.ɵɵnextContext(2);
|
|
21585
|
-
i0__namespace.ɵɵadvance(3);
|
|
21586
|
-
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r4.caseNumberError, " ");
|
|
21587
|
-
}
|
|
21588
|
-
}
|
|
21589
|
-
function LinkCasesComponent_div_8_span_10_Template(rf, ctx) {
|
|
21590
|
-
if (rf & 1) {
|
|
21591
|
-
i0__namespace.ɵɵelementStart(0, "span", 28);
|
|
21592
|
-
i0__namespace.ɵɵelementStart(1, "span", 29);
|
|
21593
|
-
i0__namespace.ɵɵtext(2, "Error:");
|
|
21594
|
-
i0__namespace.ɵɵelementEnd();
|
|
21595
|
-
i0__namespace.ɵɵtext(3);
|
|
21596
|
-
i0__namespace.ɵɵelementEnd();
|
|
21597
|
-
}
|
|
21598
|
-
if (rf & 2) {
|
|
21599
|
-
var ctx_r5 = i0__namespace.ɵɵnextContext(2);
|
|
21600
|
-
i0__namespace.ɵɵadvance(3);
|
|
21601
|
-
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r5.caseReasonError, " ");
|
|
21602
|
-
}
|
|
21603
|
-
}
|
|
21604
|
-
function LinkCasesComponent_div_8_div_12_Template(rf, ctx) {
|
|
21605
|
-
if (rf & 1) {
|
|
21606
|
-
i0__namespace.ɵɵelementStart(0, "div", 30);
|
|
21607
|
-
i0__namespace.ɵɵelement(1, "input", 31);
|
|
21608
|
-
i0__namespace.ɵɵelementStart(2, "label", 32);
|
|
21609
|
-
i0__namespace.ɵɵtext(3);
|
|
21610
|
-
i0__namespace.ɵɵelementEnd();
|
|
21611
|
-
i0__namespace.ɵɵelementEnd();
|
|
21612
|
-
}
|
|
21613
|
-
if (rf & 2) {
|
|
21614
|
-
var reason_r8 = ctx.$implicit;
|
|
21615
|
-
var pos_r9 = ctx.index;
|
|
21616
|
-
i0__namespace.ɵɵproperty("formGroupName", pos_r9);
|
|
21617
|
-
i0__namespace.ɵɵadvance(1);
|
|
21618
|
-
i0__namespace.ɵɵpropertyInterpolate("id", reason_r8.key);
|
|
21619
|
-
i0__namespace.ɵɵproperty("value", reason_r8.value_en);
|
|
21620
|
-
i0__namespace.ɵɵadvance(1);
|
|
21621
|
-
i0__namespace.ɵɵpropertyInterpolate("for", reason_r8.key);
|
|
21622
|
-
i0__namespace.ɵɵadvance(1);
|
|
21623
|
-
i0__namespace.ɵɵtextInterpolate(reason_r8.value_en);
|
|
21624
|
-
}
|
|
21625
|
-
}
|
|
21626
|
-
function LinkCasesComponent_div_8_span_15_Template(rf, ctx) {
|
|
21627
|
-
if (rf & 1) {
|
|
21628
|
-
i0__namespace.ɵɵelementStart(0, "span", 28);
|
|
21629
|
-
i0__namespace.ɵɵelementStart(1, "span", 29);
|
|
21630
|
-
i0__namespace.ɵɵtext(2, "Error:");
|
|
21631
|
-
i0__namespace.ɵɵelementEnd();
|
|
21632
|
-
i0__namespace.ɵɵtext(3);
|
|
21633
|
-
i0__namespace.ɵɵelementEnd();
|
|
21634
|
-
}
|
|
21635
|
-
if (rf & 2) {
|
|
21636
|
-
var ctx_r7 = i0__namespace.ɵɵnextContext(2);
|
|
21637
|
-
i0__namespace.ɵɵadvance(3);
|
|
21638
|
-
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r7.caseSelectionError, " ");
|
|
21639
|
-
}
|
|
21640
|
-
}
|
|
21641
|
-
var _c0$m = function (a0) { return { "govuk-form-group--error": a0 }; };
|
|
21642
|
-
function LinkCasesComponent_div_8_Template(rf, ctx) {
|
|
21643
|
-
if (rf & 1) {
|
|
21644
|
-
var _r11_1 = i0__namespace.ɵɵgetCurrentView();
|
|
21645
|
-
i0__namespace.ɵɵelementStart(0, "div", 21);
|
|
21646
|
-
i0__namespace.ɵɵelementStart(1, "h3", 22);
|
|
21647
|
-
i0__namespace.ɵɵtext(2, "Enter case reference");
|
|
21648
|
-
i0__namespace.ɵɵelementEnd();
|
|
21649
|
-
i0__namespace.ɵɵelementStart(3, "div", 5);
|
|
21650
|
-
i0__namespace.ɵɵtemplate(4, LinkCasesComponent_div_8_span_4_Template, 4, 1, "span", 6);
|
|
21651
|
-
i0__namespace.ɵɵelement(5, "input", 23);
|
|
21652
|
-
i0__namespace.ɵɵelementEnd();
|
|
21653
|
-
i0__namespace.ɵɵelementStart(6, "h3", 22);
|
|
21654
|
-
i0__namespace.ɵɵtext(7, "Why should these cases be linked?");
|
|
21655
|
-
i0__namespace.ɵɵelementEnd();
|
|
21656
|
-
i0__namespace.ɵɵelementStart(8, "div", 24);
|
|
21657
|
-
i0__namespace.ɵɵtext(9, " Select all that apply. ");
|
|
21658
|
-
i0__namespace.ɵɵelementEnd();
|
|
21659
|
-
i0__namespace.ɵɵtemplate(10, LinkCasesComponent_div_8_span_10_Template, 4, 1, "span", 6);
|
|
21660
|
-
i0__namespace.ɵɵelementStart(11, "div", 25);
|
|
21661
|
-
i0__namespace.ɵɵtemplate(12, LinkCasesComponent_div_8_div_12_Template, 4, 5, "div", 26);
|
|
21662
|
-
i0__namespace.ɵɵelementEnd();
|
|
21663
|
-
i0__namespace.ɵɵelement(13, "br");
|
|
21664
|
-
i0__namespace.ɵɵelement(14, "br");
|
|
21665
|
-
i0__namespace.ɵɵtemplate(15, LinkCasesComponent_div_8_span_15_Template, 4, 1, "span", 6);
|
|
21666
|
-
i0__namespace.ɵɵelementStart(16, "button", 27);
|
|
21667
|
-
i0__namespace.ɵɵlistener("click", function LinkCasesComponent_div_8_Template_button_click_16_listener() { i0__namespace.ɵɵrestoreView(_r11_1); var ctx_r10 = i0__namespace.ɵɵnextContext(); return ctx_r10.submitCaseInfo(); });
|
|
21668
|
-
i0__namespace.ɵɵtext(17, "Propose case link");
|
|
21669
|
-
i0__namespace.ɵɵelementEnd();
|
|
21670
|
-
i0__namespace.ɵɵelementEnd();
|
|
21671
|
-
}
|
|
21672
|
-
if (rf & 2) {
|
|
21673
|
-
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
21674
|
-
i0__namespace.ɵɵproperty("formGroup", ctx_r0.linkCaseForm);
|
|
21675
|
-
i0__namespace.ɵɵadvance(3);
|
|
21676
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$m, !!ctx_r0.caseNumberError));
|
|
21677
|
-
i0__namespace.ɵɵadvance(1);
|
|
21678
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r0.caseNumberError);
|
|
21679
|
-
i0__namespace.ɵɵadvance(6);
|
|
21680
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r0.caseReasonError);
|
|
21681
|
-
i0__namespace.ɵɵadvance(1);
|
|
21682
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$m, !!ctx_r0.caseReasonError));
|
|
21683
|
-
i0__namespace.ɵɵadvance(1);
|
|
21684
|
-
i0__namespace.ɵɵproperty("ngForOf", ctx_r0.linkCaseReasons);
|
|
21685
|
-
i0__namespace.ɵɵadvance(3);
|
|
21686
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r0.caseSelectionError);
|
|
21687
|
-
}
|
|
21688
|
-
}
|
|
21689
|
-
function LinkCasesComponent_span_13_Template(rf, ctx) {
|
|
21690
|
-
if (rf & 1) {
|
|
21691
|
-
i0__namespace.ɵɵelementStart(0, "span", 28);
|
|
21692
|
-
i0__namespace.ɵɵelementStart(1, "span", 29);
|
|
21693
|
-
i0__namespace.ɵɵtext(2, "Error:");
|
|
21694
|
-
i0__namespace.ɵɵelementEnd();
|
|
21695
|
-
i0__namespace.ɵɵtext(3);
|
|
21696
|
-
i0__namespace.ɵɵelementEnd();
|
|
21697
|
-
}
|
|
21698
|
-
if (rf & 2) {
|
|
21699
|
-
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
21700
|
-
i0__namespace.ɵɵadvance(3);
|
|
21701
|
-
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.noSelectedCaseError, " ");
|
|
21702
|
-
}
|
|
21703
|
-
}
|
|
21704
|
-
function LinkCasesComponent_tr_31_span_15_Template(rf, ctx) {
|
|
21705
|
-
if (rf & 1) {
|
|
21706
|
-
i0__namespace.ɵɵelementStart(0, "span");
|
|
21707
|
-
i0__namespace.ɵɵtext(1);
|
|
21708
|
-
i0__namespace.ɵɵpipe(2, "ccdLinkCasesReasonValue");
|
|
21709
|
-
i0__namespace.ɵɵelement(3, "br");
|
|
21710
|
-
i0__namespace.ɵɵelementEnd();
|
|
21711
|
-
}
|
|
21712
|
-
if (rf & 2) {
|
|
21713
|
-
var reason_r15 = ctx.$implicit;
|
|
21714
|
-
i0__namespace.ɵɵadvance(1);
|
|
21715
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, reason_r15.reasonCode));
|
|
21716
|
-
}
|
|
21717
|
-
}
|
|
21718
|
-
var _c1$6 = function (a0) { return { "table-group-error": a0 }; };
|
|
21719
|
-
function LinkCasesComponent_tr_31_Template(rf, ctx) {
|
|
21720
|
-
if (rf & 1) {
|
|
21721
|
-
var _r17_1 = i0__namespace.ɵɵgetCurrentView();
|
|
21722
|
-
i0__namespace.ɵɵelementStart(0, "tr", 10);
|
|
21723
|
-
i0__namespace.ɵɵelementStart(1, "td", 33);
|
|
21724
|
-
i0__namespace.ɵɵelement(2, "div", 34);
|
|
21725
|
-
i0__namespace.ɵɵelementStart(3, "span");
|
|
21726
|
-
i0__namespace.ɵɵtext(4);
|
|
21727
|
-
i0__namespace.ɵɵelement(5, "br");
|
|
21728
|
-
i0__namespace.ɵɵtext(6);
|
|
21729
|
-
i0__namespace.ɵɵpipe(7, "ccdCaseReference");
|
|
21730
|
-
i0__namespace.ɵɵelementEnd();
|
|
21731
|
-
i0__namespace.ɵɵelementEnd();
|
|
21732
|
-
i0__namespace.ɵɵelementStart(8, "td", 35);
|
|
21733
|
-
i0__namespace.ɵɵtext(9);
|
|
21734
|
-
i0__namespace.ɵɵelementEnd();
|
|
21735
|
-
i0__namespace.ɵɵelementStart(10, "td", 33);
|
|
21736
|
-
i0__namespace.ɵɵtext(11);
|
|
21737
|
-
i0__namespace.ɵɵelementEnd();
|
|
21738
|
-
i0__namespace.ɵɵelementStart(12, "td", 35);
|
|
21739
|
-
i0__namespace.ɵɵtext(13);
|
|
21740
|
-
i0__namespace.ɵɵelementEnd();
|
|
21741
|
-
i0__namespace.ɵɵelementStart(14, "td", 33);
|
|
21742
|
-
i0__namespace.ɵɵtemplate(15, LinkCasesComponent_tr_31_span_15_Template, 4, 3, "span", 36);
|
|
21743
|
-
i0__namespace.ɵɵelementEnd();
|
|
21744
|
-
i0__namespace.ɵɵelementStart(16, "td", 33);
|
|
21745
|
-
i0__namespace.ɵɵelementStart(17, "a", 37);
|
|
21746
|
-
i0__namespace.ɵɵlistener("click", function LinkCasesComponent_tr_31_Template_a_click_17_listener() { i0__namespace.ɵɵrestoreView(_r17_1); var pos_r13 = ctx.index; var case_r12 = ctx.$implicit; var ctx_r16 = i0__namespace.ɵɵnextContext(); return ctx_r16.onSelectedLinkedCaseRemove(pos_r13, case_r12.caseReference); });
|
|
21747
|
-
i0__namespace.ɵɵtext(18, "Remove");
|
|
21748
|
-
i0__namespace.ɵɵelementEnd();
|
|
21749
|
-
i0__namespace.ɵɵelementEnd();
|
|
21750
|
-
i0__namespace.ɵɵelementEnd();
|
|
21751
|
-
}
|
|
21752
|
-
if (rf & 2) {
|
|
21753
|
-
var case_r12 = ctx.$implicit;
|
|
21754
|
-
var ctx_r2 = i0__namespace.ɵɵnextContext();
|
|
21755
|
-
i0__namespace.ɵɵadvance(2);
|
|
21756
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(12, _c1$6, ctx_r2.caseSelectionError && case_r12.caseReference === ctx_r2.linkCaseForm.value.caseNumber));
|
|
21757
|
-
i0__namespace.ɵɵadvance(2);
|
|
21758
|
-
i0__namespace.ɵɵtextInterpolate1("", case_r12.caseName, " ");
|
|
21759
|
-
i0__namespace.ɵɵadvance(2);
|
|
21760
|
-
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(7, 10, case_r12.caseReference), "");
|
|
21761
|
-
i0__namespace.ɵɵadvance(2);
|
|
21762
|
-
i0__namespace.ɵɵproperty("title", case_r12.caseTypeDescription);
|
|
21763
|
-
i0__namespace.ɵɵadvance(1);
|
|
21764
|
-
i0__namespace.ɵɵtextInterpolate(case_r12.caseType);
|
|
21765
|
-
i0__namespace.ɵɵadvance(2);
|
|
21766
|
-
i0__namespace.ɵɵtextInterpolate(case_r12.caseService);
|
|
21767
|
-
i0__namespace.ɵɵadvance(1);
|
|
21768
|
-
i0__namespace.ɵɵproperty("title", case_r12.caseStateDescription);
|
|
21769
|
-
i0__namespace.ɵɵadvance(1);
|
|
21770
|
-
i0__namespace.ɵɵtextInterpolate(case_r12.caseState);
|
|
21771
|
-
i0__namespace.ɵɵadvance(2);
|
|
21772
|
-
i0__namespace.ɵɵproperty("ngForOf", case_r12.reasons);
|
|
21773
|
-
i0__namespace.ɵɵadvance(2);
|
|
21774
|
-
i0__namespace.ɵɵattribute("id", case_r12.caseReference);
|
|
21775
|
-
}
|
|
21776
|
-
}
|
|
21777
|
-
function LinkCasesComponent_tr_32_Template(rf, ctx) {
|
|
21778
|
-
if (rf & 1) {
|
|
21779
|
-
i0__namespace.ɵɵelementStart(0, "tr", 10);
|
|
21780
|
-
i0__namespace.ɵɵelementStart(1, "td", 38);
|
|
21781
|
-
i0__namespace.ɵɵtext(2, " None ");
|
|
21782
|
-
i0__namespace.ɵɵelementEnd();
|
|
21783
|
-
i0__namespace.ɵɵelementEnd();
|
|
21784
|
-
}
|
|
21785
|
-
}
|
|
21786
|
-
var LinkCasesComponent = /** @class */ (function () {
|
|
21787
|
-
function LinkCasesComponent(casesService, fb, validatorsUtils, linkedCasesService) {
|
|
21788
|
-
this.casesService = casesService;
|
|
21789
|
-
this.fb = fb;
|
|
21790
|
-
this.validatorsUtils = validatorsUtils;
|
|
21791
|
-
this.linkedCasesService = linkedCasesService;
|
|
21792
|
-
this.linkedCasesStateEmitter = new i0.EventEmitter();
|
|
21793
|
-
this.errorMessages = [];
|
|
21794
|
-
this.selectedCases = [];
|
|
21795
|
-
this.linkCaseReasons = [];
|
|
21796
|
-
this.ISO_FORMAT = 'YYYY-MM-DDTHH:mm:ss.SSS';
|
|
21797
|
-
}
|
|
21798
|
-
LinkCasesComponent.prototype.ngOnInit = function () {
|
|
21799
|
-
this.caseId = this.linkedCasesService.caseId;
|
|
21800
|
-
this.caseName = this.linkedCasesService.caseName;
|
|
21801
|
-
this.linkCaseReasons = this.linkedCasesService.linkCaseReasons;
|
|
21802
|
-
this.initForm();
|
|
21803
|
-
if (this.linkedCasesService.editMode) {
|
|
21804
|
-
// this may have includes the currently added one but yet to be submitted.
|
|
21805
|
-
this.selectedCases = this.linkedCasesService.linkedCases;
|
|
21806
|
-
}
|
|
21807
|
-
else if (this.linkedCasesService.initialCaseLinks.length !== this.linkedCasesService.caseFieldValue.length) {
|
|
21808
|
-
this.linkedCasesService.linkedCases = this.linkedCasesService.initialCaseLinks;
|
|
21809
|
-
}
|
|
21810
|
-
};
|
|
21811
|
-
LinkCasesComponent.prototype.initForm = function () {
|
|
21812
|
-
this.linkCaseForm = this.fb.group({
|
|
21813
|
-
caseNumber: ['', [i2$1.Validators.minLength(16), this.validatorsUtils.regexPattern(exports.Patterns.CASE_REF)]],
|
|
21814
|
-
reasonType: this.getReasonTypeFormArray,
|
|
21815
|
-
});
|
|
21816
|
-
};
|
|
21817
|
-
Object.defineProperty(LinkCasesComponent.prototype, "getReasonTypeFormArray", {
|
|
21818
|
-
get: function () {
|
|
21819
|
-
var _this = this;
|
|
21820
|
-
return this.fb.array(this.linkCaseReasons.map(function (val) { return _this.fb.group({
|
|
21821
|
-
key: [val.key],
|
|
21822
|
-
value_en: [val.value_en],
|
|
21823
|
-
value_cy: [val.value_cy],
|
|
21824
|
-
hint_text_en: [val.hint_text_en],
|
|
21825
|
-
hint_text_cy: [val.hint_text_cy],
|
|
21826
|
-
lov_order: [val.lov_order],
|
|
21827
|
-
parent_key: [val.parent_key],
|
|
21828
|
-
selected: [!!val.selected],
|
|
21829
|
-
}); }), this.validatorsUtils.formArraySelectedValidator());
|
|
21830
|
-
},
|
|
21831
|
-
enumerable: false,
|
|
21832
|
-
configurable: true
|
|
21833
|
-
});
|
|
21834
|
-
LinkCasesComponent.prototype.submitCaseInfo = function () {
|
|
21835
|
-
this.errorMessages = [];
|
|
21836
|
-
this.caseReasonError = null;
|
|
21837
|
-
this.caseNumberError = null;
|
|
21838
|
-
this.caseSelectionError = null;
|
|
21839
|
-
this.noSelectedCaseError = null;
|
|
21840
|
-
if (this.linkCaseForm.valid &&
|
|
21841
|
-
!this.isCaseSelected(this.selectedCases) &&
|
|
21842
|
-
!this.isCaseSelected(this.linkedCasesService.linkedCases) &&
|
|
21843
|
-
!this.isCaseSelectedSameAsCurrentCase()) {
|
|
21844
|
-
this.getCaseInfo();
|
|
21845
|
-
}
|
|
21846
|
-
else {
|
|
21847
|
-
this.showErrorInfo();
|
|
21848
|
-
}
|
|
21849
|
-
};
|
|
21850
|
-
LinkCasesComponent.prototype.isCaseSelected = function (linkedCases) {
|
|
21851
|
-
if (linkedCases.length === 0) {
|
|
21852
|
-
return false;
|
|
21853
|
-
}
|
|
21854
|
-
var caseNumber = this.linkCaseForm.value.caseNumber;
|
|
21855
|
-
return !!linkedCases.find(function (caseLink) { return caseLink.caseReference.split('-').join('') === caseNumber.split('-').join(''); });
|
|
21856
|
-
};
|
|
21857
|
-
LinkCasesComponent.prototype.isCaseSelectedSameAsCurrentCase = function () {
|
|
21858
|
-
return this.linkCaseForm.value.caseNumber.split('-').join('') === this.linkedCasesService.caseId.split('-').join('');
|
|
21859
|
-
};
|
|
21860
|
-
LinkCasesComponent.prototype.showErrorInfo = function () {
|
|
21861
|
-
if (this.linkCaseForm.controls.caseNumber.invalid) {
|
|
21862
|
-
this.caseNumberError = exports.LinkedCasesErrorMessages.CaseNumberError;
|
|
21863
|
-
this.errorMessages.push({
|
|
21864
|
-
title: 'dummy-case-number',
|
|
21865
|
-
description: exports.LinkedCasesErrorMessages.CaseNumberError,
|
|
21866
|
-
fieldId: 'caseNumber',
|
|
21867
|
-
});
|
|
21868
|
-
}
|
|
21869
|
-
if (this.linkCaseForm.controls.reasonType.invalid) {
|
|
21870
|
-
this.caseReasonError = exports.LinkedCasesErrorMessages.ReasonSelectionError;
|
|
21871
|
-
this.errorMessages.push({
|
|
21872
|
-
title: 'dummy-case-reason',
|
|
21873
|
-
description: exports.LinkedCasesErrorMessages.ReasonSelectionError,
|
|
21874
|
-
fieldId: 'caseReason',
|
|
21875
|
-
});
|
|
21876
|
-
}
|
|
21877
|
-
if (this.isCaseSelected(this.selectedCases)) {
|
|
21878
|
-
this.caseSelectionError = exports.LinkedCasesErrorMessages.CaseProposedError;
|
|
21879
|
-
this.errorMessages.push({
|
|
21880
|
-
title: 'dummy-case-number',
|
|
21881
|
-
description: exports.LinkedCasesErrorMessages.CaseProposedError,
|
|
21882
|
-
fieldId: 'caseNumber',
|
|
21883
|
-
});
|
|
21884
|
-
}
|
|
21885
|
-
if (this.isCaseSelected(this.linkedCasesService.linkedCases)) {
|
|
21886
|
-
this.caseSelectionError = exports.LinkedCasesErrorMessages.CasesLinkedError;
|
|
21887
|
-
this.errorMessages.push({
|
|
21888
|
-
title: 'dummy-case-number',
|
|
21889
|
-
description: exports.LinkedCasesErrorMessages.CasesLinkedError,
|
|
21890
|
-
fieldId: 'caseNumber',
|
|
21891
|
-
});
|
|
21892
|
-
}
|
|
21893
|
-
if (this.linkCaseForm.value.caseNumber.split('-').join('') === this.linkedCasesService.caseId.split('-').join('')) {
|
|
21894
|
-
this.errorMessages.push({
|
|
21895
|
-
title: 'dummy-case-number',
|
|
21896
|
-
description: exports.LinkedCasesErrorMessages.ProposedCaseWithIn,
|
|
21897
|
-
fieldId: 'caseNumber',
|
|
21898
|
-
});
|
|
21899
|
-
}
|
|
21900
|
-
window.scrollTo(0, 0);
|
|
21901
|
-
this.emitLinkedCasesState(false);
|
|
21902
|
-
};
|
|
21903
|
-
LinkCasesComponent.prototype.getCaseInfo = function () {
|
|
21904
|
-
var _this = this;
|
|
21905
|
-
var caseNumberData = this.linkCaseForm.value.caseNumber.replace(/[- ]/g, '');
|
|
21906
|
-
this.casesService
|
|
21907
|
-
.getCaseViewV2(caseNumberData)
|
|
21908
|
-
.subscribe(function (caseView) {
|
|
21909
|
-
_this.linkedCasesService.caseDetails = caseView;
|
|
21910
|
-
var caseLink = {
|
|
21911
|
-
caseReference: caseView.case_id,
|
|
21912
|
-
reasons: _this.getSelectedCaseReasons(),
|
|
21913
|
-
createdDateTime: moment__namespace(new Date()).format(_this.ISO_FORMAT),
|
|
21914
|
-
caseType: caseView.case_type.name || '',
|
|
21915
|
-
caseTypeDescription: caseView.case_type.description || '',
|
|
21916
|
-
caseState: caseView.state.name || '',
|
|
21917
|
-
caseStateDescription: caseView.state.description || '',
|
|
21918
|
-
caseService: caseView.case_type && caseView.case_type.jurisdiction && caseView.case_type.jurisdiction.description || '',
|
|
21919
|
-
caseName: _this.linkedCasesService.getCaseName(caseView),
|
|
21920
|
-
};
|
|
21921
|
-
var ccdApiCaseLinkData = {
|
|
21922
|
-
CaseReference: caseView.case_id,
|
|
21923
|
-
CaseType: caseView.case_type.id,
|
|
21924
|
-
CreatedDateTime: moment__namespace(new Date()).format(_this.ISO_FORMAT),
|
|
21925
|
-
ReasonForLink: _this.getSelectedCCDTypeCaseReason()
|
|
21926
|
-
};
|
|
21927
|
-
if (!_this.linkedCasesService.caseFieldValue) {
|
|
21928
|
-
_this.linkedCasesService.caseFieldValue = [];
|
|
21929
|
-
}
|
|
21930
|
-
_this.linkedCasesService.caseFieldValue.push({ id: caseView.case_id.toString(), value: ccdApiCaseLinkData });
|
|
21931
|
-
_this.selectedCases.push(caseLink);
|
|
21932
|
-
_this.initForm();
|
|
21933
|
-
_this.emitLinkedCasesState(false);
|
|
21934
|
-
}, function (error) {
|
|
21935
|
-
_this.caseNumberError = exports.LinkedCasesErrorMessages.CaseCheckAgainError;
|
|
21936
|
-
_this.errorMessages.push({
|
|
21937
|
-
title: 'dummy-case-number',
|
|
21938
|
-
description: exports.LinkedCasesErrorMessages.CaseCheckAgainError,
|
|
21939
|
-
fieldId: 'caseNumber',
|
|
21940
|
-
});
|
|
21941
|
-
_this.emitLinkedCasesState(false);
|
|
21942
|
-
window.scrollTo(0, 0);
|
|
21943
|
-
return rxjs.throwError(error);
|
|
21944
|
-
});
|
|
21945
|
-
};
|
|
21946
|
-
// Return linked cases state and error messages to the parent
|
|
21947
|
-
LinkCasesComponent.prototype.emitLinkedCasesState = function (isNavigateToNextPage) {
|
|
21948
|
-
this.linkedCasesStateEmitter.emit({
|
|
21949
|
-
currentLinkedCasesPage: exports.LinkedCasesPages.LINK_CASE,
|
|
21950
|
-
errorMessages: this.errorMessages,
|
|
21951
|
-
navigateToNextPage: isNavigateToNextPage,
|
|
21952
|
-
});
|
|
21953
|
-
};
|
|
21954
|
-
LinkCasesComponent.prototype.getSelectedCaseReasons = function () {
|
|
21955
|
-
var selectedReasons = [];
|
|
21956
|
-
this.linkCaseForm.controls.reasonType.value.forEach(function (selectedReason) {
|
|
21957
|
-
if (selectedReason.selected) {
|
|
21958
|
-
selectedReasons.push({
|
|
21959
|
-
reasonCode: selectedReason.key
|
|
21960
|
-
});
|
|
21961
|
-
}
|
|
21962
|
-
});
|
|
21963
|
-
return selectedReasons;
|
|
21964
|
-
};
|
|
21965
|
-
LinkCasesComponent.prototype.getSelectedCCDTypeCaseReason = function () {
|
|
21966
|
-
var selectedReasons = [];
|
|
21967
|
-
this.linkCaseForm.controls.reasonType.value.forEach(function (selectedReason) {
|
|
21968
|
-
if (selectedReason.selected) {
|
|
21969
|
-
selectedReasons.push({
|
|
21970
|
-
value: {
|
|
21971
|
-
Reason: selectedReason.key,
|
|
21972
|
-
}
|
|
21973
|
-
});
|
|
21974
|
-
}
|
|
21975
|
-
});
|
|
21976
|
-
return selectedReasons;
|
|
21977
|
-
};
|
|
21978
|
-
LinkCasesComponent.prototype.onSelectedLinkedCaseRemove = function (pos, selectedCaseReference) {
|
|
21979
|
-
var caseFieldValue = this.linkedCasesService.caseFieldValue || [];
|
|
21980
|
-
var updatedItems = caseFieldValue.filter(function (item) { return item.value && item.value.CaseReference !== selectedCaseReference; });
|
|
21981
|
-
if (updatedItems) {
|
|
21982
|
-
this.linkedCasesService.caseFieldValue = updatedItems;
|
|
21983
|
-
}
|
|
21984
|
-
this.selectedCases.splice(pos, 1);
|
|
21985
|
-
};
|
|
21986
|
-
LinkCasesComponent.prototype.onNext = function () {
|
|
21987
|
-
this.errorMessages = [];
|
|
21988
|
-
this.caseReasonError = null;
|
|
21989
|
-
this.caseNumberError = null;
|
|
21990
|
-
this.caseSelectionError = null;
|
|
21991
|
-
this.noSelectedCaseError = null;
|
|
21992
|
-
var navigateToNextPage = true;
|
|
21993
|
-
if (this.selectedCases.length) {
|
|
21994
|
-
this.linkedCasesService.linkedCases = this.selectedCases;
|
|
21995
|
-
}
|
|
21996
|
-
else {
|
|
21997
|
-
this.noSelectedCaseError = exports.LinkedCasesErrorMessages.CaseSelectionError;
|
|
21998
|
-
this.errorMessages.push({
|
|
21999
|
-
title: 'dummy-case-selection',
|
|
22000
|
-
description: exports.LinkedCasesErrorMessages.CaseSelectionError,
|
|
22001
|
-
fieldId: 'caseReason',
|
|
22002
|
-
});
|
|
22003
|
-
navigateToNextPage = false;
|
|
22004
|
-
}
|
|
22005
|
-
this.emitLinkedCasesState(navigateToNextPage);
|
|
22006
|
-
};
|
|
22007
|
-
return LinkCasesComponent;
|
|
22008
|
-
}());
|
|
22009
|
-
LinkCasesComponent.ɵfac = function LinkCasesComponent_Factory(t) { return new (t || LinkCasesComponent)(i0__namespace.ɵɵdirectiveInject(CasesService), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.FormBuilder), i0__namespace.ɵɵdirectiveInject(ValidatorsUtils), i0__namespace.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
22010
|
-
LinkCasesComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: LinkCasesComponent, selectors: [["ccd-link-cases"]], outputs: { linkedCasesStateEmitter: "linkedCasesStateEmitter" }, decls: 36, vars: 11, consts: [[1, "govuk-grid-row"], [1, "govuk-grid-column-full"], [1, "govuk-caption-l"], [1, "govuk-heading-xl"], ["class", "form-group", 3, "formGroup", 4, "ngIf"], ["id", "caseNumber", 1, "govuk-form-group", 3, "ngClass"], ["class", "govuk-error-message", 4, "ngIf"], [1, "govuk-table"], [1, "govuk-table__caption", "govuk-table__caption--m"], [1, "govuk-table__head"], [1, "govuk-table__row"], ["scope", "col", "width", "300", 1, "govuk-table__header"], ["scope", "col", "width", "150", 1, "govuk-table__header"], ["scope", "col", "width", "200", 1, "govuk-table__header"], ["scope", "col", "width", "400", 1, "govuk-table__header"], ["scope", "col", "width", "50", 1, "govuk-table__header"], [1, "govuk-table__body"], ["class", "govuk-table__row", 4, "ngFor", "ngForOf"], ["class", "govuk-table__row", 4, "ngIf"], [1, "govuk-button-group"], ["type", "button", "id", "next-button", 1, "button", "button-primary", 3, "click"], [1, "form-group", 3, "formGroup"], [1, "govuk-heading-s"], ["formControlName", "caseNumber", "id", "width-20", "name", "width-20", "type", "text", 1, "govuk-input", "govuk-input--width-20"], ["id", "waste-hint", 1, "govuk-hint"], ["data-module", "govuk-checkboxes", "formArrayName", "reasonType", "id", "caseReason", 1, "govuk-checkboxes", 3, "ngClass"], ["class", "govuk-checkboxes__item", 3, "formGroupName", 4, "ngFor", "ngForOf"], ["id", "propose", "type", "button", "data-module", "govuk-button", 1, "govuk-button", "govuk-button--secondary", 3, "click"], [1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-checkboxes__item", 3, "formGroupName"], ["formControlName", "selected", "name", "pos", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "id", "value"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"], [1, "govuk-table__cell"], [1, "govuk-form-group--error", 3, "ngClass"], [1, "govuk-table__cell", 3, "title"], [4, "ngFor", "ngForOf"], [1, "govuk-link", "no-visited-state", 3, "click"], ["colspan", "6", 1, "govuk-table__cell"]], template: function LinkCasesComponent_Template(rf, ctx) {
|
|
22011
|
-
if (rf & 1) {
|
|
22012
|
-
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
22013
|
-
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
22014
|
-
i0__namespace.ɵɵelementStart(2, "div");
|
|
22015
|
-
i0__namespace.ɵɵelementStart(3, "span", 2);
|
|
22016
|
-
i0__namespace.ɵɵtext(4);
|
|
22017
|
-
i0__namespace.ɵɵpipe(5, "ccdCaseReference");
|
|
22018
|
-
i0__namespace.ɵɵelementEnd();
|
|
22019
|
-
i0__namespace.ɵɵelementStart(6, "h1", 3);
|
|
22020
|
-
i0__namespace.ɵɵtext(7, "Select a\u00A0case you want to link to this case");
|
|
22021
|
-
i0__namespace.ɵɵelementEnd();
|
|
22022
|
-
i0__namespace.ɵɵtemplate(8, LinkCasesComponent_div_8_Template, 18, 11, "div", 4);
|
|
22023
|
-
i0__namespace.ɵɵelement(9, "hr");
|
|
22024
|
-
i0__namespace.ɵɵelement(10, "br");
|
|
22025
|
-
i0__namespace.ɵɵelement(11, "br");
|
|
22026
|
-
i0__namespace.ɵɵelementStart(12, "div", 5);
|
|
22027
|
-
i0__namespace.ɵɵtemplate(13, LinkCasesComponent_span_13_Template, 4, 1, "span", 6);
|
|
22028
|
-
i0__namespace.ɵɵelementStart(14, "table", 7);
|
|
22029
|
-
i0__namespace.ɵɵelementStart(15, "caption", 8);
|
|
22030
|
-
i0__namespace.ɵɵtext(16, "Proposed case links ");
|
|
22031
|
-
i0__namespace.ɵɵelementEnd();
|
|
22032
|
-
i0__namespace.ɵɵelementStart(17, "thead", 9);
|
|
22033
|
-
i0__namespace.ɵɵelementStart(18, "tr", 10);
|
|
22034
|
-
i0__namespace.ɵɵelementStart(19, "th", 11);
|
|
22035
|
-
i0__namespace.ɵɵtext(20, "Case name and number");
|
|
22036
|
-
i0__namespace.ɵɵelementEnd();
|
|
22037
|
-
i0__namespace.ɵɵelementStart(21, "th", 12);
|
|
22038
|
-
i0__namespace.ɵɵtext(22, "Case type ");
|
|
22039
|
-
i0__namespace.ɵɵelementEnd();
|
|
22040
|
-
i0__namespace.ɵɵelementStart(23, "th", 13);
|
|
22041
|
-
i0__namespace.ɵɵtext(24, "Service");
|
|
22042
|
-
i0__namespace.ɵɵelementEnd();
|
|
22043
|
-
i0__namespace.ɵɵelementStart(25, "th", 13);
|
|
22044
|
-
i0__namespace.ɵɵtext(26, "State");
|
|
22045
|
-
i0__namespace.ɵɵelementEnd();
|
|
22046
|
-
i0__namespace.ɵɵelementStart(27, "th", 14);
|
|
22047
|
-
i0__namespace.ɵɵtext(28, "Reasons for case link");
|
|
22048
|
-
i0__namespace.ɵɵelementEnd();
|
|
22049
|
-
i0__namespace.ɵɵelement(29, "th", 15);
|
|
22050
|
-
i0__namespace.ɵɵelementEnd();
|
|
22051
|
-
i0__namespace.ɵɵelementEnd();
|
|
22052
|
-
i0__namespace.ɵɵelementStart(30, "tbody", 16);
|
|
22053
|
-
i0__namespace.ɵɵtemplate(31, LinkCasesComponent_tr_31_Template, 19, 14, "tr", 17);
|
|
22054
|
-
i0__namespace.ɵɵtemplate(32, LinkCasesComponent_tr_32_Template, 3, 0, "tr", 18);
|
|
22055
|
-
i0__namespace.ɵɵelementEnd();
|
|
22056
|
-
i0__namespace.ɵɵelementEnd();
|
|
22057
|
-
i0__namespace.ɵɵelementEnd();
|
|
22058
|
-
i0__namespace.ɵɵelementStart(33, "div", 19);
|
|
22059
|
-
i0__namespace.ɵɵelementStart(34, "button", 20);
|
|
22060
|
-
i0__namespace.ɵɵlistener("click", function LinkCasesComponent_Template_button_click_34_listener() { return ctx.onNext(); });
|
|
22061
|
-
i0__namespace.ɵɵtext(35, "Next");
|
|
22062
|
-
i0__namespace.ɵɵelementEnd();
|
|
22063
|
-
i0__namespace.ɵɵelementEnd();
|
|
22064
|
-
i0__namespace.ɵɵelementEnd();
|
|
22065
|
-
i0__namespace.ɵɵelementEnd();
|
|
22066
|
-
i0__namespace.ɵɵelementEnd();
|
|
22067
|
-
}
|
|
22068
|
-
if (rf & 2) {
|
|
22069
|
-
i0__namespace.ɵɵadvance(4);
|
|
22070
|
-
i0__namespace.ɵɵtextInterpolate2("Link cases to ", ctx.caseName, " ", i0__namespace.ɵɵpipeBind1(5, 7, ctx.caseId), "");
|
|
22071
|
-
i0__namespace.ɵɵadvance(4);
|
|
22072
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.linkCaseForm);
|
|
22073
|
-
i0__namespace.ɵɵadvance(4);
|
|
22074
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$m, !!ctx.noSelectedCaseError));
|
|
22075
|
-
i0__namespace.ɵɵadvance(1);
|
|
22076
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.noSelectedCaseError);
|
|
22077
|
-
i0__namespace.ɵɵadvance(18);
|
|
22078
|
-
i0__namespace.ɵɵproperty("ngForOf", ctx.selectedCases);
|
|
22079
|
-
i0__namespace.ɵɵadvance(1);
|
|
22080
|
-
i0__namespace.ɵɵproperty("ngIf", !ctx.selectedCases.length);
|
|
22081
|
-
}
|
|
22082
|
-
}, styles: [".no-visited-state[_ngcontent-%COMP%]{color:#1d70b8;cursor:pointer}.no-visited-state[_ngcontent-%COMP%]:hover{color:#003078}.govuk-checkboxes[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-wrap:wrap;max-height:500px;width:100%;overflow-x:auto;overflow-y:hidden;padding-top:5px}.govuk-checkboxes[_ngcontent-%COMP%] .govuk-checkboxes__item[_ngcontent-%COMP%]{display:flex} .govuk-width-container .screen-990 .width-50{width:100%}.govuk-table__row[_ngcontent-%COMP%]{position:relative}.govuk-table__row[_ngcontent-%COMP%] .table-group-error[_ngcontent-%COMP%]{position:absolute;height:calc(100% - 20px);margin-left:-15px}"] });
|
|
22083
|
-
(function () {
|
|
22084
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(LinkCasesComponent, [{
|
|
22085
|
-
type: i0.Component,
|
|
22086
|
-
args: [{
|
|
22087
|
-
selector: 'ccd-link-cases',
|
|
22088
|
-
styleUrls: ['./link-cases.component.scss'],
|
|
22089
|
-
templateUrl: './link-cases.component.html',
|
|
22090
|
-
}]
|
|
22091
|
-
}], function () { return [{ type: CasesService }, { type: i2__namespace$1.FormBuilder }, { type: ValidatorsUtils }, { type: LinkedCasesService }]; }, { linkedCasesStateEmitter: [{
|
|
22092
|
-
type: i0.Output
|
|
22093
|
-
}] });
|
|
22094
|
-
})();
|
|
22095
|
-
|
|
22096
|
-
function LinkedCasesFromTableComponent_a_0_Template(rf, ctx) {
|
|
22097
|
-
if (rf & 1) {
|
|
22098
|
-
var _r3_1 = i0__namespace.ɵɵgetCurrentView();
|
|
22099
|
-
i0__namespace.ɵɵelementStart(0, "a", 2);
|
|
22100
|
-
i0__namespace.ɵɵlistener("click", function LinkedCasesFromTableComponent_a_0_Template_a_click_0_listener() { i0__namespace.ɵɵrestoreView(_r3_1); var ctx_r2 = i0__namespace.ɵɵnextContext(); return ctx_r2.onClick(); });
|
|
22101
|
-
i0__namespace.ɵɵtext(1);
|
|
22102
|
-
i0__namespace.ɵɵelementEnd();
|
|
22103
|
-
}
|
|
22104
|
-
if (rf & 2) {
|
|
22105
|
-
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
22106
|
-
i0__namespace.ɵɵadvance(1);
|
|
22107
|
-
i0__namespace.ɵɵtextInterpolate(ctx_r0.showHideLinkText);
|
|
22108
|
-
}
|
|
22109
|
-
}
|
|
22110
|
-
function LinkedCasesFromTableComponent_table_1_tbody_13_tr_1_td_18_span_1_Template(rf, ctx) {
|
|
22111
|
-
if (rf & 1) {
|
|
22112
|
-
i0__namespace.ɵɵelementStart(0, "span");
|
|
22113
|
-
i0__namespace.ɵɵtext(1);
|
|
22114
|
-
i0__namespace.ɵɵpipe(2, "ccdLinkCasesReasonValue");
|
|
22115
|
-
i0__namespace.ɵɵelement(3, "br");
|
|
22116
|
-
i0__namespace.ɵɵelementEnd();
|
|
22117
|
-
}
|
|
22118
|
-
if (rf & 2) {
|
|
22119
|
-
var reason_r11 = ctx.$implicit;
|
|
22120
|
-
i0__namespace.ɵɵadvance(1);
|
|
22121
|
-
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, reason_r11.reasonCode), " ");
|
|
22122
|
-
}
|
|
22123
|
-
}
|
|
22124
|
-
function LinkedCasesFromTableComponent_table_1_tbody_13_tr_1_td_18_Template(rf, ctx) {
|
|
22125
|
-
if (rf & 1) {
|
|
22126
|
-
i0__namespace.ɵɵelementStart(0, "td", 14);
|
|
22127
|
-
i0__namespace.ɵɵtemplate(1, LinkedCasesFromTableComponent_table_1_tbody_13_tr_1_td_18_span_1_Template, 4, 3, "span", 17);
|
|
22128
|
-
i0__namespace.ɵɵelementEnd();
|
|
22129
|
-
}
|
|
22130
|
-
if (rf & 2) {
|
|
22131
|
-
var details_r9 = ctx.$implicit;
|
|
22132
|
-
i0__namespace.ɵɵadvance(1);
|
|
22133
|
-
i0__namespace.ɵɵproperty("ngForOf", details_r9.reasons);
|
|
22134
|
-
}
|
|
22135
|
-
}
|
|
22136
|
-
function LinkedCasesFromTableComponent_table_1_tbody_13_tr_1_Template(rf, ctx) {
|
|
22137
|
-
if (rf & 1) {
|
|
22138
|
-
i0__namespace.ɵɵelementStart(0, "tr", 5);
|
|
22139
|
-
i0__namespace.ɵɵelementStart(1, "td", 11);
|
|
22140
|
-
i0__namespace.ɵɵelementStart(2, "p", 12);
|
|
22141
|
-
i0__namespace.ɵɵelementStart(3, "a", 13);
|
|
22142
|
-
i0__namespace.ɵɵelementStart(4, "span");
|
|
22143
|
-
i0__namespace.ɵɵtext(5);
|
|
22144
|
-
i0__namespace.ɵɵelement(6, "br");
|
|
22145
|
-
i0__namespace.ɵɵtext(7);
|
|
22146
|
-
i0__namespace.ɵɵpipe(8, "ccdCaseReference");
|
|
22147
|
-
i0__namespace.ɵɵelementEnd();
|
|
22148
|
-
i0__namespace.ɵɵelementEnd();
|
|
22149
|
-
i0__namespace.ɵɵelementEnd();
|
|
22150
|
-
i0__namespace.ɵɵelementEnd();
|
|
22151
|
-
i0__namespace.ɵɵelementStart(9, "td", 14);
|
|
22152
|
-
i0__namespace.ɵɵelementStart(10, "span", 15);
|
|
22153
|
-
i0__namespace.ɵɵtext(11);
|
|
22154
|
-
i0__namespace.ɵɵelementEnd();
|
|
22155
|
-
i0__namespace.ɵɵelementEnd();
|
|
22156
|
-
i0__namespace.ɵɵelementStart(12, "td", 14);
|
|
22157
|
-
i0__namespace.ɵɵelementStart(13, "span");
|
|
22158
|
-
i0__namespace.ɵɵtext(14);
|
|
22159
|
-
i0__namespace.ɵɵelementEnd();
|
|
22160
|
-
i0__namespace.ɵɵelementEnd();
|
|
22161
|
-
i0__namespace.ɵɵelementStart(15, "td", 14);
|
|
22162
|
-
i0__namespace.ɵɵelementStart(16, "span", 15);
|
|
22163
|
-
i0__namespace.ɵɵtext(17);
|
|
22164
|
-
i0__namespace.ɵɵelementEnd();
|
|
22165
|
-
i0__namespace.ɵɵelementEnd();
|
|
22166
|
-
i0__namespace.ɵɵtemplate(18, LinkedCasesFromTableComponent_table_1_tbody_13_tr_1_td_18_Template, 2, 1, "td", 16);
|
|
22167
|
-
i0__namespace.ɵɵelementEnd();
|
|
22168
|
-
}
|
|
22169
|
-
if (rf & 2) {
|
|
22170
|
-
var case_r7 = ctx.$implicit;
|
|
22171
|
-
i0__namespace.ɵɵadvance(3);
|
|
22172
|
-
i0__namespace.ɵɵpropertyInterpolate1("href", "cases/case-details/", case_r7.caseReference, "", i0__namespace.ɵɵsanitizeUrl);
|
|
22173
|
-
i0__namespace.ɵɵadvance(2);
|
|
22174
|
-
i0__namespace.ɵɵtextInterpolate1("", case_r7.caseNameHmctsInternal, " ");
|
|
22175
|
-
i0__namespace.ɵɵadvance(2);
|
|
22176
|
-
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(8, 9, case_r7.caseReference), "");
|
|
22177
|
-
i0__namespace.ɵɵadvance(3);
|
|
22178
|
-
i0__namespace.ɵɵproperty("title", case_r7.ccdCaseTypeDescription);
|
|
22179
|
-
i0__namespace.ɵɵadvance(1);
|
|
22180
|
-
i0__namespace.ɵɵtextInterpolate(case_r7.ccdCaseType);
|
|
22181
|
-
i0__namespace.ɵɵadvance(3);
|
|
22182
|
-
i0__namespace.ɵɵtextInterpolate(case_r7.ccdJurisdiction);
|
|
22183
|
-
i0__namespace.ɵɵadvance(2);
|
|
22184
|
-
i0__namespace.ɵɵproperty("title", case_r7.stateDescription);
|
|
22185
|
-
i0__namespace.ɵɵadvance(1);
|
|
22186
|
-
i0__namespace.ɵɵtextInterpolate(case_r7.state);
|
|
22187
|
-
i0__namespace.ɵɵadvance(1);
|
|
22188
|
-
i0__namespace.ɵɵproperty("ngForOf", case_r7.linkDetails);
|
|
22189
|
-
}
|
|
22190
|
-
}
|
|
22191
|
-
function LinkedCasesFromTableComponent_table_1_tbody_13_tr_2_Template(rf, ctx) {
|
|
22192
|
-
if (rf & 1) {
|
|
22193
|
-
i0__namespace.ɵɵelementStart(0, "tr", 5);
|
|
22194
|
-
i0__namespace.ɵɵelementStart(1, "td", 18);
|
|
22195
|
-
i0__namespace.ɵɵtext(2, " None ");
|
|
22196
|
-
i0__namespace.ɵɵelementEnd();
|
|
22197
|
-
i0__namespace.ɵɵelementEnd();
|
|
22198
|
-
}
|
|
22199
|
-
}
|
|
22200
|
-
function LinkedCasesFromTableComponent_table_1_tbody_13_Template(rf, ctx) {
|
|
22201
|
-
if (rf & 1) {
|
|
22202
|
-
i0__namespace.ɵɵelementStart(0, "tbody", 8);
|
|
22203
|
-
i0__namespace.ɵɵtemplate(1, LinkedCasesFromTableComponent_table_1_tbody_13_tr_1_Template, 19, 11, "tr", 9);
|
|
22204
|
-
i0__namespace.ɵɵtemplate(2, LinkedCasesFromTableComponent_table_1_tbody_13_tr_2_Template, 3, 0, "tr", 10);
|
|
22205
|
-
i0__namespace.ɵɵelementEnd();
|
|
22206
|
-
}
|
|
22207
|
-
if (rf & 2) {
|
|
22208
|
-
var ctx_r4 = i0__namespace.ɵɵnextContext(2);
|
|
22209
|
-
i0__namespace.ɵɵadvance(1);
|
|
22210
|
-
i0__namespace.ɵɵproperty("ngForOf", ctx_r4.getLinkedCasesResponse);
|
|
22211
|
-
i0__namespace.ɵɵadvance(1);
|
|
22212
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r4.noLinkedCases);
|
|
22213
|
-
}
|
|
22214
|
-
}
|
|
22215
|
-
function LinkedCasesFromTableComponent_table_1_Template(rf, ctx) {
|
|
22216
|
-
if (rf & 1) {
|
|
22217
|
-
i0__namespace.ɵɵelementStart(0, "table", 3);
|
|
22218
|
-
i0__namespace.ɵɵelementStart(1, "thead", 4);
|
|
22219
|
-
i0__namespace.ɵɵelementStart(2, "tr", 5);
|
|
22220
|
-
i0__namespace.ɵɵelementStart(3, "th", 6);
|
|
22221
|
-
i0__namespace.ɵɵtext(4, "Case name and number");
|
|
22222
|
-
i0__namespace.ɵɵelementEnd();
|
|
22223
|
-
i0__namespace.ɵɵelementStart(5, "th", 6);
|
|
22224
|
-
i0__namespace.ɵɵtext(6, "Case type ");
|
|
22225
|
-
i0__namespace.ɵɵelementEnd();
|
|
22226
|
-
i0__namespace.ɵɵelementStart(7, "th", 6);
|
|
22227
|
-
i0__namespace.ɵɵtext(8, "Service");
|
|
22228
|
-
i0__namespace.ɵɵelementEnd();
|
|
22229
|
-
i0__namespace.ɵɵelementStart(9, "th", 6);
|
|
22230
|
-
i0__namespace.ɵɵtext(10, "State");
|
|
22231
|
-
i0__namespace.ɵɵelementEnd();
|
|
22232
|
-
i0__namespace.ɵɵelementStart(11, "th", 6);
|
|
22233
|
-
i0__namespace.ɵɵtext(12, "Reasons for case link");
|
|
22234
|
-
i0__namespace.ɵɵelementEnd();
|
|
22235
|
-
i0__namespace.ɵɵelementEnd();
|
|
22236
|
-
i0__namespace.ɵɵelementEnd();
|
|
22237
|
-
i0__namespace.ɵɵtemplate(13, LinkedCasesFromTableComponent_table_1_tbody_13_Template, 3, 2, "tbody", 7);
|
|
22238
|
-
i0__namespace.ɵɵelementEnd();
|
|
22239
|
-
}
|
|
22240
|
-
if (rf & 2) {
|
|
22241
|
-
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
22242
|
-
i0__namespace.ɵɵadvance(13);
|
|
22243
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r1.getLinkedCasesResponse && (!ctx_r1.isServerError && !ctx_r1.linkedCasesService.isServerReasonCodeError));
|
|
22244
|
-
}
|
|
22245
|
-
}
|
|
22246
|
-
exports.PageType = void 0;
|
|
22247
|
-
(function (PageType) {
|
|
22248
|
-
PageType["LINKEDCASESTABLBEVIEW"] = "linkedCasesTableView";
|
|
22249
|
-
PageType["PROPOSEDCASELINK"] = "proposedCaseLink";
|
|
22250
|
-
})(exports.PageType || (exports.PageType = {}));
|
|
22251
|
-
var LinkedCasesFromTableComponent = /** @class */ (function () {
|
|
22252
|
-
function LinkedCasesFromTableComponent(route, casesService, linkedCasesService) {
|
|
22253
|
-
this.route = route;
|
|
22254
|
-
this.casesService = casesService;
|
|
22255
|
-
this.linkedCasesService = linkedCasesService;
|
|
22256
|
-
this.notifyAPIFailure = new i0.EventEmitter(false);
|
|
22257
|
-
this.pageType = exports.PageType;
|
|
22258
|
-
this.getLinkedCasesResponse = [];
|
|
22259
|
-
this.showHideLinkText = 'Show';
|
|
22260
|
-
this.noLinkedCases = true;
|
|
22261
|
-
this.isServerError = false;
|
|
22262
|
-
}
|
|
22263
|
-
LinkedCasesFromTableComponent.prototype.ngAfterViewInit = function () {
|
|
22264
|
-
var labelField = document.getElementsByClassName('case-viewer-label');
|
|
22265
|
-
if (labelField && labelField.length) {
|
|
22266
|
-
labelField[0].replaceWith('');
|
|
22267
|
-
}
|
|
22268
|
-
};
|
|
22269
|
-
LinkedCasesFromTableComponent.prototype.ngOnInit = function () {
|
|
22270
|
-
this.fetchPageData();
|
|
22271
|
-
if (this.route.snapshot.data.case) {
|
|
22272
|
-
this.linkedCasesService.caseDetails = this.route.snapshot.data.case;
|
|
22273
|
-
}
|
|
22274
|
-
};
|
|
22275
|
-
LinkedCasesFromTableComponent.prototype.fetchPageData = function () {
|
|
22276
|
-
var _this = this;
|
|
22277
|
-
this.caseId = this.route.snapshot.data.case.case_id;
|
|
22278
|
-
this.getLinkedCases().subscribe(function (response) {
|
|
22279
|
-
_this.isServerError = false;
|
|
22280
|
-
_this.getLinkedCasesResponse = response.linkedCases && response.linkedCases.map(function (item) {
|
|
22281
|
-
var mappedCasetype = _this.mapLookupIDToValueFromJurisdictions('CASE_TYPE', item.ccdCaseType);
|
|
22282
|
-
var mappedCasetypeDescription = _this.mapLookupIDToValueFromJurisdictions('CASE_TYPE_DESCRIPTION', item.ccdCaseType);
|
|
22283
|
-
var mappedCaseState = _this.mapLookupIDToValueFromJurisdictions('STATE', item.state);
|
|
22284
|
-
var mappedCaseStateDescription = _this.mapLookupIDToValueFromJurisdictions('STATE_DESCRIPTION', item.state);
|
|
22285
|
-
var mappedCaseService = _this.mapLookupIDToValueFromJurisdictions('JURISDICTION', item.ccdJurisdiction);
|
|
22286
|
-
return Object.assign(Object.assign({}, item), { ccdCaseType: mappedCasetype, ccdCaseTypeDescription: mappedCasetypeDescription, ccdJurisdiction: mappedCaseService, state: mappedCaseState, stateDescription: mappedCaseStateDescription, caseNameHmctsInternal: item.caseNameHmctsInternal || LinkedCasesFromTableComponent.CASE_NAME_MISSING_TEXT });
|
|
22287
|
-
});
|
|
22288
|
-
_this.noLinkedCases = !response.linkedCases || !response.linkedCases.length;
|
|
22289
|
-
}, function (err) {
|
|
22290
|
-
_this.isServerError = true;
|
|
22291
|
-
_this.notifyAPIFailure.emit(true);
|
|
22292
|
-
});
|
|
22293
|
-
};
|
|
22294
|
-
LinkedCasesFromTableComponent.prototype.getLinkedCases = function () {
|
|
22295
|
-
return this.casesService.getLinkedCases(this.caseId);
|
|
22296
|
-
};
|
|
22297
|
-
LinkedCasesFromTableComponent.prototype.mapLookupIDToValueFromJurisdictions = function (fieldName, fieldValue) {
|
|
22298
|
-
return this.linkedCasesService.mapLookupIDToValueFromJurisdictions(fieldName, fieldValue);
|
|
22299
|
-
};
|
|
22300
|
-
LinkedCasesFromTableComponent.prototype.onClick = function () {
|
|
22301
|
-
this.showHideLinkText = this.showHideLinkText === 'Show'
|
|
22302
|
-
? 'Hide'
|
|
22303
|
-
: 'Show';
|
|
22304
|
-
};
|
|
22305
|
-
return LinkedCasesFromTableComponent;
|
|
22306
|
-
}());
|
|
22307
|
-
LinkedCasesFromTableComponent.CASE_NAME_MISSING_TEXT = 'Case name missing';
|
|
22308
|
-
LinkedCasesFromTableComponent.ɵfac = function LinkedCasesFromTableComponent_Factory(t) { return new (t || LinkedCasesFromTableComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(CasesService), i0__namespace.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
22309
|
-
LinkedCasesFromTableComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: LinkedCasesFromTableComponent, selectors: [["ccd-linked-cases-from-table"]], inputs: { caseField: "caseField" }, outputs: { notifyAPIFailure: "notifyAPIFailure" }, decls: 2, vars: 2, consts: [["id", "show-hide-link", "class", "govuk-link", "href", "javascript:void(0)", 3, "click", 4, "ngIf"], ["aria-describedby", "table to display cases linked from", 4, "ngIf"], ["id", "show-hide-link", "href", "javascript:void(0)", 1, "govuk-link", 3, "click"], ["aria-describedby", "table to display cases linked from"], [1, "govuk-table__head"], [1, "govuk-table__row"], ["scope", "col", "width", "20%", 1, "govuk-table__header", "case-table-column"], ["class", "govuk-table__body", 4, "ngIf"], [1, "govuk-table__body"], ["class", "govuk-table__row", 4, "ngFor", "ngForOf"], ["class", "govuk-table__row", 4, "ngIf"], [1, "govuk-table__header", "case-table-column", "width-20"], [1, "govuk-body"], ["target", "_blank", "rel", "noopener", 1, "govuk-link", 3, "href"], [1, "case-table-column"], [3, "title"], ["class", "case-table-column", 4, "ngFor", "ngForOf"], [4, "ngFor", "ngForOf"], ["colspan", "5", 1, "govuk-table__cell"]], template: function LinkedCasesFromTableComponent_Template(rf, ctx) {
|
|
22310
|
-
if (rf & 1) {
|
|
22311
|
-
i0__namespace.ɵɵtemplate(0, LinkedCasesFromTableComponent_a_0_Template, 2, 1, "a", 0);
|
|
22312
|
-
i0__namespace.ɵɵtemplate(1, LinkedCasesFromTableComponent_table_1_Template, 14, 1, "table", 1);
|
|
22313
|
-
}
|
|
22314
|
-
if (rf & 2) {
|
|
22315
|
-
i0__namespace.ɵɵproperty("ngIf", !ctx.noLinkedCases && !ctx.isServerError);
|
|
22316
|
-
i0__namespace.ɵɵadvance(1);
|
|
22317
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.getLinkedCasesResponse && ctx.showHideLinkText === "Hide" || ctx.noLinkedCases);
|
|
22318
|
-
}
|
|
22319
|
-
}, styles: [".case-table-column[_ngcontent-%COMP%]{min-width:20%;max-width:20%}.heading-h2[_ngcontent-%COMP%]{margin-bottom:0}"] });
|
|
22320
|
-
(function () {
|
|
22321
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(LinkedCasesFromTableComponent, [{
|
|
22322
|
-
type: i0.Component,
|
|
22323
|
-
args: [{
|
|
22324
|
-
selector: 'ccd-linked-cases-from-table',
|
|
22325
|
-
templateUrl: './linked-cases-from-table.component.html',
|
|
22326
|
-
styleUrls: ['./linked-cases-from-table.component.scss']
|
|
22327
|
-
}]
|
|
22328
|
-
}], function () { return [{ type: i1__namespace$1.ActivatedRoute }, { type: CasesService }, { type: LinkedCasesService }]; }, { caseField: [{
|
|
22329
|
-
type: i0.Input
|
|
22330
|
-
}], notifyAPIFailure: [{
|
|
22331
|
-
type: i0.Output
|
|
22332
|
-
}] });
|
|
22333
|
-
})();
|
|
22334
|
-
|
|
22335
|
-
function LinkedCasesToTableComponent_table_2_tr_14_td_18_span_1_a_4_Template(rf, ctx) {
|
|
22336
|
-
if (rf & 1) {
|
|
22337
|
-
i0__namespace.ɵɵelementStart(0, "a", 16);
|
|
22338
|
-
i0__namespace.ɵɵtext(1);
|
|
22339
|
-
i0__namespace.ɵɵelementEnd();
|
|
22340
|
-
}
|
|
22341
|
-
if (rf & 2) {
|
|
22342
|
-
var case_r3 = i0__namespace.ɵɵnextContext(3).$implicit;
|
|
22343
|
-
var ctx_r9 = i0__namespace.ɵɵnextContext(2);
|
|
22344
|
-
i0__namespace.ɵɵpropertyInterpolate1("href", "cases/case-details/", case_r3.caseReference, "", i0__namespace.ɵɵsanitizeUrl);
|
|
22345
|
-
i0__namespace.ɵɵadvance(1);
|
|
22346
|
-
i0__namespace.ɵɵtextInterpolate(ctx_r9.getCaseRefereneLink(case_r3.caseReference));
|
|
22347
|
-
}
|
|
22348
|
-
}
|
|
22349
|
-
function LinkedCasesToTableComponent_table_2_tr_14_td_18_span_1_br_5_Template(rf, ctx) {
|
|
22350
|
-
if (rf & 1) {
|
|
22351
|
-
i0__namespace.ɵɵelement(0, "br");
|
|
22352
|
-
}
|
|
22353
|
-
}
|
|
22354
|
-
function LinkedCasesToTableComponent_table_2_tr_14_td_18_span_1_Template(rf, ctx) {
|
|
22355
|
-
if (rf & 1) {
|
|
22356
|
-
i0__namespace.ɵɵelementStart(0, "span");
|
|
22357
|
-
i0__namespace.ɵɵtext(1);
|
|
22358
|
-
i0__namespace.ɵɵpipe(2, "ccdLinkCasesReasonValue");
|
|
22359
|
-
i0__namespace.ɵɵelementStart(3, "span");
|
|
22360
|
-
i0__namespace.ɵɵtemplate(4, LinkedCasesToTableComponent_table_2_tr_14_td_18_span_1_a_4_Template, 2, 2, "a", 15);
|
|
22361
|
-
i0__namespace.ɵɵelementEnd();
|
|
22362
|
-
i0__namespace.ɵɵtemplate(5, LinkedCasesToTableComponent_table_2_tr_14_td_18_span_1_br_5_Template, 1, 0, "br", 13);
|
|
22363
|
-
i0__namespace.ɵɵelementEnd();
|
|
22364
|
-
}
|
|
22365
|
-
if (rf & 2) {
|
|
22366
|
-
var reason_r6 = ctx.$implicit;
|
|
22367
|
-
var isLast_r8 = ctx.last;
|
|
22368
|
-
var ctx_r5 = i0__namespace.ɵɵnextContext(4);
|
|
22369
|
-
i0__namespace.ɵɵadvance(1);
|
|
22370
|
-
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 3, reason_r6), "");
|
|
22371
|
-
i0__namespace.ɵɵadvance(3);
|
|
22372
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r5.hasLeadCaseOrConsolidated(reason_r6));
|
|
22373
|
-
i0__namespace.ɵɵadvance(1);
|
|
22374
|
-
i0__namespace.ɵɵproperty("ngIf", !isLast_r8);
|
|
22375
|
-
}
|
|
22376
|
-
}
|
|
22377
|
-
function LinkedCasesToTableComponent_table_2_tr_14_td_18_Template(rf, ctx) {
|
|
22378
|
-
if (rf & 1) {
|
|
22379
|
-
i0__namespace.ɵɵelementStart(0, "td");
|
|
22380
|
-
i0__namespace.ɵɵtemplate(1, LinkedCasesToTableComponent_table_2_tr_14_td_18_span_1_Template, 6, 5, "span", 14);
|
|
22381
|
-
i0__namespace.ɵɵelementEnd();
|
|
22382
|
-
}
|
|
22383
|
-
if (rf & 2) {
|
|
22384
|
-
var case_r3 = i0__namespace.ɵɵnextContext().$implicit;
|
|
22385
|
-
i0__namespace.ɵɵadvance(1);
|
|
22386
|
-
i0__namespace.ɵɵproperty("ngForOf", case_r3.reasons);
|
|
22387
|
-
}
|
|
22388
|
-
}
|
|
22389
|
-
function LinkedCasesToTableComponent_table_2_tr_14_Template(rf, ctx) {
|
|
22390
|
-
if (rf & 1) {
|
|
22391
|
-
i0__namespace.ɵɵelementStart(0, "tr", 4);
|
|
22392
|
-
i0__namespace.ɵɵelementStart(1, "td");
|
|
22393
|
-
i0__namespace.ɵɵelementStart(2, "p", 9);
|
|
22394
|
-
i0__namespace.ɵɵelementStart(3, "a", 10);
|
|
22395
|
-
i0__namespace.ɵɵelementStart(4, "span", 11);
|
|
22396
|
-
i0__namespace.ɵɵtext(5);
|
|
22397
|
-
i0__namespace.ɵɵelement(6, "br");
|
|
22398
|
-
i0__namespace.ɵɵtext(7);
|
|
22399
|
-
i0__namespace.ɵɵpipe(8, "ccdCaseReference");
|
|
22400
|
-
i0__namespace.ɵɵelementEnd();
|
|
22401
|
-
i0__namespace.ɵɵelementEnd();
|
|
22402
|
-
i0__namespace.ɵɵelementEnd();
|
|
22403
|
-
i0__namespace.ɵɵelementEnd();
|
|
22404
|
-
i0__namespace.ɵɵelementStart(9, "td");
|
|
22405
|
-
i0__namespace.ɵɵelementStart(10, "span", 12);
|
|
22406
|
-
i0__namespace.ɵɵtext(11);
|
|
22407
|
-
i0__namespace.ɵɵelementEnd();
|
|
22408
|
-
i0__namespace.ɵɵelementEnd();
|
|
22409
|
-
i0__namespace.ɵɵelementStart(12, "td");
|
|
22410
|
-
i0__namespace.ɵɵelementStart(13, "span");
|
|
22411
|
-
i0__namespace.ɵɵtext(14);
|
|
22412
|
-
i0__namespace.ɵɵelementEnd();
|
|
22413
|
-
i0__namespace.ɵɵelementEnd();
|
|
22414
|
-
i0__namespace.ɵɵelementStart(15, "td");
|
|
22415
|
-
i0__namespace.ɵɵelementStart(16, "span", 12);
|
|
22416
|
-
i0__namespace.ɵɵtext(17);
|
|
22417
|
-
i0__namespace.ɵɵelementEnd();
|
|
22418
|
-
i0__namespace.ɵɵelementEnd();
|
|
22419
|
-
i0__namespace.ɵɵtemplate(18, LinkedCasesToTableComponent_table_2_tr_14_td_18_Template, 2, 1, "td", 13);
|
|
22420
|
-
i0__namespace.ɵɵelementEnd();
|
|
22421
|
-
}
|
|
22422
|
-
if (rf & 2) {
|
|
22423
|
-
var case_r3 = ctx.$implicit;
|
|
22424
|
-
i0__namespace.ɵɵadvance(3);
|
|
22425
|
-
i0__namespace.ɵɵpropertyInterpolate1("href", "cases/case-details/", case_r3.caseReference, "", i0__namespace.ɵɵsanitizeUrl);
|
|
22426
|
-
i0__namespace.ɵɵadvance(2);
|
|
22427
|
-
i0__namespace.ɵɵtextInterpolate1("", case_r3.caseName, " ");
|
|
22428
|
-
i0__namespace.ɵɵadvance(2);
|
|
22429
|
-
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(8, 9, case_r3.caseReference), "");
|
|
22430
|
-
i0__namespace.ɵɵadvance(3);
|
|
22431
|
-
i0__namespace.ɵɵproperty("title", case_r3.caseTypeDescription);
|
|
22432
|
-
i0__namespace.ɵɵadvance(1);
|
|
22433
|
-
i0__namespace.ɵɵtextInterpolate(case_r3.caseType);
|
|
22434
|
-
i0__namespace.ɵɵadvance(3);
|
|
22435
|
-
i0__namespace.ɵɵtextInterpolate(case_r3.service);
|
|
22436
|
-
i0__namespace.ɵɵadvance(2);
|
|
22437
|
-
i0__namespace.ɵɵproperty("title", case_r3.stateDescription);
|
|
22438
|
-
i0__namespace.ɵɵadvance(1);
|
|
22439
|
-
i0__namespace.ɵɵtextInterpolate(case_r3.state);
|
|
22440
|
-
i0__namespace.ɵɵadvance(1);
|
|
22441
|
-
i0__namespace.ɵɵproperty("ngIf", case_r3 && case_r3.reasons);
|
|
22442
|
-
}
|
|
22443
|
-
}
|
|
22444
|
-
function LinkedCasesToTableComponent_table_2_tr_15_Template(rf, ctx) {
|
|
22445
|
-
if (rf & 1) {
|
|
22446
|
-
i0__namespace.ɵɵelementStart(0, "tr", 4);
|
|
22447
|
-
i0__namespace.ɵɵelementStart(1, "td", 17);
|
|
22448
|
-
i0__namespace.ɵɵtext(2, " None ");
|
|
22449
|
-
i0__namespace.ɵɵelementEnd();
|
|
22450
|
-
i0__namespace.ɵɵelementEnd();
|
|
22451
|
-
}
|
|
22452
|
-
}
|
|
22453
|
-
function LinkedCasesToTableComponent_table_2_Template(rf, ctx) {
|
|
22454
|
-
if (rf & 1) {
|
|
22455
|
-
i0__namespace.ɵɵelementStart(0, "table", 3);
|
|
22456
|
-
i0__namespace.ɵɵelementStart(1, "thead");
|
|
22457
|
-
i0__namespace.ɵɵelementStart(2, "tr", 4);
|
|
22458
|
-
i0__namespace.ɵɵelementStart(3, "th", 5);
|
|
22459
|
-
i0__namespace.ɵɵtext(4, "Case name and number");
|
|
22460
|
-
i0__namespace.ɵɵelementEnd();
|
|
22461
|
-
i0__namespace.ɵɵelementStart(5, "th", 5);
|
|
22462
|
-
i0__namespace.ɵɵtext(6, "Case type ");
|
|
22463
|
-
i0__namespace.ɵɵelementEnd();
|
|
22464
|
-
i0__namespace.ɵɵelementStart(7, "th", 5);
|
|
22465
|
-
i0__namespace.ɵɵtext(8, "Service");
|
|
22466
|
-
i0__namespace.ɵɵelementEnd();
|
|
22467
|
-
i0__namespace.ɵɵelementStart(9, "th", 5);
|
|
22468
|
-
i0__namespace.ɵɵtext(10, "State");
|
|
22469
|
-
i0__namespace.ɵɵelementEnd();
|
|
22470
|
-
i0__namespace.ɵɵelementStart(11, "th", 5);
|
|
22471
|
-
i0__namespace.ɵɵtext(12, "Reasons for case link");
|
|
22472
|
-
i0__namespace.ɵɵelementEnd();
|
|
22473
|
-
i0__namespace.ɵɵelementEnd();
|
|
22474
|
-
i0__namespace.ɵɵelementEnd();
|
|
22475
|
-
i0__namespace.ɵɵelementStart(13, "tbody", 6);
|
|
22476
|
-
i0__namespace.ɵɵtemplate(14, LinkedCasesToTableComponent_table_2_tr_14_Template, 19, 11, "tr", 7);
|
|
22477
|
-
i0__namespace.ɵɵtemplate(15, LinkedCasesToTableComponent_table_2_tr_15_Template, 3, 0, "tr", 8);
|
|
22478
|
-
i0__namespace.ɵɵelementEnd();
|
|
22479
|
-
i0__namespace.ɵɵelementEnd();
|
|
22480
|
-
}
|
|
22481
|
-
if (rf & 2) {
|
|
22482
|
-
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
22483
|
-
i0__namespace.ɵɵadvance(14);
|
|
22484
|
-
i0__namespace.ɵɵproperty("ngForOf", ctx_r0.linkedCasesFromResponse);
|
|
22485
|
-
i0__namespace.ɵɵadvance(1);
|
|
22486
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r0.linkedCasesFromResponse && ctx_r0.linkedCasesFromResponse.length === 0 && (!ctx_r0.isServerError && !ctx_r0.linkedCasesService.isServerReasonCodeError));
|
|
22487
|
-
}
|
|
22488
|
-
}
|
|
22489
|
-
var LinkedCasesToTableComponent = /** @class */ (function () {
|
|
22490
|
-
function LinkedCasesToTableComponent(route, linkedCasesService, casesService) {
|
|
22491
|
-
this.route = route;
|
|
22492
|
-
this.linkedCasesService = linkedCasesService;
|
|
22493
|
-
this.casesService = casesService;
|
|
22494
|
-
this.notifyAPIFailure = new i0.EventEmitter(false);
|
|
22495
|
-
this.linkedCasesFromResponse = [];
|
|
22496
|
-
this.isServerError = false;
|
|
22497
|
-
this.jurisdictionsResponse = [];
|
|
22498
|
-
}
|
|
22499
|
-
LinkedCasesToTableComponent.prototype.ngAfterViewInit = function () {
|
|
22500
|
-
var labelField = document.getElementsByClassName('govuk-heading-l');
|
|
22501
|
-
if (labelField && labelField.length) {
|
|
22502
|
-
labelField[0].replaceWith('');
|
|
22503
|
-
}
|
|
22504
|
-
labelField = document.getElementsByClassName('heading-h2');
|
|
22505
|
-
if (labelField && labelField.length) {
|
|
22506
|
-
labelField[0].replaceWith('');
|
|
22507
|
-
}
|
|
22508
|
-
};
|
|
22509
|
-
LinkedCasesToTableComponent.prototype.ngOnInit = function () {
|
|
22510
|
-
this.caseId = this.route.snapshot && this.route.snapshot.data && this.route.snapshot.data.case.case_id;
|
|
22511
|
-
this.getAllLinkedCaseInformation();
|
|
22512
|
-
if (this.route.snapshot.data.case) {
|
|
22513
|
-
this.linkedCasesService.caseDetails = this.route.snapshot.data.case;
|
|
22514
|
-
}
|
|
22515
|
-
};
|
|
22516
|
-
LinkedCasesToTableComponent.prototype.getCaseRefereneLink = function (caseRef) {
|
|
22517
|
-
return caseRef.slice(this.caseId.length - 4);
|
|
22518
|
-
};
|
|
22519
|
-
LinkedCasesToTableComponent.prototype.sortLinkedCasesByReasonCode = function (searchCasesResponse) {
|
|
22520
|
-
var topLevelresultArray = [];
|
|
22521
|
-
var secondLevelresultArray = [];
|
|
22522
|
-
searchCasesResponse.forEach(function (item) {
|
|
22523
|
-
var reasons = item && item.reasons || [];
|
|
22524
|
-
var consolidatedStateReason = reasons.map(function (x) { return x; }).find(function (reason) { return reason === LinkedCasesToTableComponent.CASE_CONSOLIDATED_REASON_CODE; });
|
|
22525
|
-
var progressedStateReason = reasons.map(function (x) { return x; }).find(function (reason) { return reason === LinkedCasesToTableComponent.CASE_PROGRESS_REASON_CODE; });
|
|
22526
|
-
var arrayItem;
|
|
22527
|
-
if (progressedStateReason) {
|
|
22528
|
-
arrayItem = Object.assign({}, item);
|
|
22529
|
-
topLevelresultArray.push(arrayItem);
|
|
22530
|
-
}
|
|
22531
|
-
else if (consolidatedStateReason) {
|
|
22532
|
-
arrayItem = Object.assign({}, item);
|
|
22533
|
-
secondLevelresultArray = __spread([Object.assign({}, item)], secondLevelresultArray);
|
|
22534
|
-
}
|
|
22535
|
-
else {
|
|
22536
|
-
arrayItem = Object.assign({}, item);
|
|
22537
|
-
secondLevelresultArray.push(Object.assign({}, item));
|
|
22538
|
-
}
|
|
22539
|
-
});
|
|
22540
|
-
return topLevelresultArray.concat(secondLevelresultArray);
|
|
22541
|
-
};
|
|
22542
|
-
LinkedCasesToTableComponent.prototype.getAllLinkedCaseInformation = function () {
|
|
22543
|
-
var _this = this;
|
|
22544
|
-
var searchCasesResponse = [];
|
|
22545
|
-
var caseFieldValue = this.caseField ? this.caseField.value : [];
|
|
22546
|
-
// Generate the list of observables
|
|
22547
|
-
caseFieldValue.forEach(function (fieldValue) {
|
|
22548
|
-
if (fieldValue && fieldValue.id) {
|
|
22549
|
-
searchCasesResponse.push(_this.casesService.getCaseViewV2(fieldValue.id));
|
|
22550
|
-
}
|
|
22551
|
-
});
|
|
22552
|
-
if (searchCasesResponse.length) {
|
|
22553
|
-
this.searchCasesByCaseIds(searchCasesResponse).subscribe(function (searchCases) {
|
|
22554
|
-
var casesResponse = [];
|
|
22555
|
-
searchCases.forEach(function (response) {
|
|
22556
|
-
casesResponse.push(_this.mapResponse(response));
|
|
22557
|
-
});
|
|
22558
|
-
_this.linkedCasesFromResponse = _this.sortLinkedCasesByReasonCode(casesResponse);
|
|
22559
|
-
_this.isLoaded = true;
|
|
22560
|
-
var caseLinks = _this.linkedCasesFromResponse.map(function (item) {
|
|
22561
|
-
return {
|
|
22562
|
-
caseReference: item.caseReference,
|
|
22563
|
-
caseName: item.caseName,
|
|
22564
|
-
caseService: item.service,
|
|
22565
|
-
caseType: item.caseType,
|
|
22566
|
-
unlink: false,
|
|
22567
|
-
reasons: item.reasons && item.reasons.map(function (reason) {
|
|
22568
|
-
return {
|
|
22569
|
-
reasonCode: reason
|
|
22570
|
-
};
|
|
22571
|
-
}),
|
|
22572
|
-
};
|
|
22573
|
-
});
|
|
22574
|
-
_this.linkedCasesService.initialCaseLinks = caseLinks;
|
|
22575
|
-
_this.linkedCasesService.linkedCases = caseLinks;
|
|
22576
|
-
_this.isServerError = false;
|
|
22577
|
-
}, function (err) {
|
|
22578
|
-
_this.isServerError = true;
|
|
22579
|
-
_this.notifyAPIFailure.emit(true);
|
|
22580
|
-
});
|
|
22581
|
-
}
|
|
22582
|
-
};
|
|
22583
|
-
LinkedCasesToTableComponent.prototype.searchCasesByCaseIds = function (searchCasesResponse) {
|
|
22584
|
-
return rxjs.forkJoin(searchCasesResponse);
|
|
22585
|
-
};
|
|
22586
|
-
LinkedCasesToTableComponent.prototype.hasLeadCaseOrConsolidated = function (reasonCode) {
|
|
22587
|
-
return reasonCode === LinkedCasesToTableComponent.CASE_PROGRESS_REASON_CODE ||
|
|
22588
|
-
reasonCode === LinkedCasesToTableComponent.CASE_CONSOLIDATED_REASON_CODE;
|
|
22589
|
-
};
|
|
22590
|
-
LinkedCasesToTableComponent.prototype.mapResponse = function (esSearchCasesResponse) {
|
|
22591
|
-
var caseInfo = this.caseField.value.find(function (item) { return item.value && item.value.CaseReference === esSearchCasesResponse.case_id; });
|
|
22592
|
-
return caseInfo && {
|
|
22593
|
-
caseReference: esSearchCasesResponse.case_id,
|
|
22594
|
-
caseName: this.linkedCasesService.getCaseName(esSearchCasesResponse),
|
|
22595
|
-
caseType: esSearchCasesResponse.case_type.name || '',
|
|
22596
|
-
caseTypeDescription: esSearchCasesResponse.case_type.description || '',
|
|
22597
|
-
service: esSearchCasesResponse.case_type && esSearchCasesResponse.case_type.jurisdiction.description || '',
|
|
22598
|
-
state: esSearchCasesResponse.state.name || '',
|
|
22599
|
-
stateDescription: esSearchCasesResponse.state.description || '',
|
|
22600
|
-
reasons: caseInfo.value && caseInfo.value.ReasonForLink &&
|
|
22601
|
-
caseInfo.value.ReasonForLink.map(function (reason) { return reason.value && reason.value.Reason; }),
|
|
22602
|
-
};
|
|
22603
|
-
};
|
|
22604
|
-
return LinkedCasesToTableComponent;
|
|
22605
|
-
}());
|
|
22606
|
-
LinkedCasesToTableComponent.CASE_CONSOLIDATED_REASON_CODE = 'CLRC015';
|
|
22607
|
-
LinkedCasesToTableComponent.CASE_PROGRESS_REASON_CODE = 'CLRC016';
|
|
22608
|
-
LinkedCasesToTableComponent.ɵfac = function LinkedCasesToTableComponent_Factory(t) { return new (t || LinkedCasesToTableComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(LinkedCasesService), i0__namespace.ɵɵdirectiveInject(CasesService)); };
|
|
22609
|
-
LinkedCasesToTableComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: LinkedCasesToTableComponent, selectors: [["ccd-linked-cases-to-table"]], inputs: { caseField: "caseField" }, outputs: { notifyAPIFailure: "notifyAPIFailure" }, decls: 3, vars: 1, consts: [[1, "govuk-grid-row", "govuk-!-margin-bottom-2"], [1, "govuk-grid-column-full"], ["aria-describedby", "table to display cases linked TO", 4, "ngIf"], ["aria-describedby", "table to display cases linked TO"], [1, "govuk-table__row"], ["scope", "col", "width", "20%", 1, "govuk-table__header", "case-table-column"], [1, "govuk-table__body"], ["class", "govuk-table__row", 4, "ngFor", "ngForOf"], ["class", "govuk-table__row", 4, "ngIf"], [1, "govuk-body"], ["target", "_blank", "rel", "noopener", 3, "href"], [1, "govuk-link"], [3, "title"], [4, "ngIf"], [4, "ngFor", "ngForOf"], ["class", "govuk-!-padding-left-1", 3, "href", 4, "ngIf"], [1, "govuk-!-padding-left-1", 3, "href"], ["colspan", "5", 1, "govuk-table__cell"]], template: function LinkedCasesToTableComponent_Template(rf, ctx) {
|
|
22610
|
-
if (rf & 1) {
|
|
22611
|
-
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
22612
|
-
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
22613
|
-
i0__namespace.ɵɵtemplate(2, LinkedCasesToTableComponent_table_2_Template, 16, 2, "table", 2);
|
|
22614
|
-
i0__namespace.ɵɵelementEnd();
|
|
22615
|
-
i0__namespace.ɵɵelementEnd();
|
|
22616
|
-
}
|
|
22617
|
-
if (rf & 2) {
|
|
22618
|
-
i0__namespace.ɵɵadvance(2);
|
|
22619
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.linkedCasesFromResponse);
|
|
22620
|
-
}
|
|
22621
|
-
}, styles: [".case-table-column[_ngcontent-%COMP%]{min-width:20%;max-width:20%}"] });
|
|
22622
|
-
(function () {
|
|
22623
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(LinkedCasesToTableComponent, [{
|
|
22624
|
-
type: i0.Component,
|
|
22625
|
-
args: [{
|
|
22626
|
-
selector: 'ccd-linked-cases-to-table',
|
|
22627
|
-
templateUrl: './linked-cases-to-table.component.html',
|
|
22628
|
-
styleUrls: ['./linked-cases-to-table.component.scss']
|
|
22629
|
-
}]
|
|
22630
|
-
}], function () { return [{ type: i1__namespace$1.ActivatedRoute }, { type: LinkedCasesService }, { type: CasesService }]; }, { caseField: [{
|
|
22631
|
-
type: i0.Input
|
|
22632
|
-
}], notifyAPIFailure: [{
|
|
22633
|
-
type: i0.Output
|
|
22634
|
-
}] });
|
|
22635
|
-
})();
|
|
22636
|
-
|
|
22637
|
-
function NoLinkedCasesComponent_h1_2_Template(rf, ctx) {
|
|
22638
|
-
if (rf & 1) {
|
|
22639
|
-
i0__namespace.ɵɵelementStart(0, "h1", 9);
|
|
22640
|
-
i0__namespace.ɵɵtext(1, "There is a problem");
|
|
22641
|
-
i0__namespace.ɵɵelementEnd();
|
|
22642
|
-
}
|
|
22643
|
-
}
|
|
22644
|
-
function NoLinkedCasesComponent_p_3_Template(rf, ctx) {
|
|
22645
|
-
if (rf & 1) {
|
|
22646
|
-
i0__namespace.ɵɵelementStart(0, "p", 10);
|
|
22647
|
-
i0__namespace.ɵɵelementStart(1, "span", 11);
|
|
22648
|
-
i0__namespace.ɵɵtext(2, "Error:");
|
|
22649
|
-
i0__namespace.ɵɵelementEnd();
|
|
22650
|
-
i0__namespace.ɵɵtext(3);
|
|
22651
|
-
i0__namespace.ɵɵelementEnd();
|
|
22652
|
-
}
|
|
22653
|
-
if (rf & 2) {
|
|
22654
|
-
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
22655
|
-
i0__namespace.ɵɵadvance(3);
|
|
22656
|
-
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.linkedCasesService.serverLinkedApiError.message, " ");
|
|
22657
|
-
}
|
|
22658
|
-
}
|
|
22659
|
-
function NoLinkedCasesComponent_ng_template_4_Template(rf, ctx) {
|
|
22660
|
-
if (rf & 1) {
|
|
22661
|
-
i0__namespace.ɵɵelementStart(0, "p", 5);
|
|
22662
|
-
i0__namespace.ɵɵtext(1, "There are no cases linked to this one.");
|
|
22663
|
-
i0__namespace.ɵɵelementEnd();
|
|
22664
|
-
}
|
|
22665
|
-
}
|
|
22666
|
-
var NoLinkedCasesComponent = /** @class */ (function () {
|
|
22667
|
-
function NoLinkedCasesComponent(router, linkedCasesService) {
|
|
22668
|
-
this.router = router;
|
|
22669
|
-
this.linkedCasesService = linkedCasesService;
|
|
22670
|
-
}
|
|
22671
|
-
NoLinkedCasesComponent.prototype.onBack = function () {
|
|
22672
|
-
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId]).then(function () {
|
|
22673
|
-
window.location.hash = 'Linked cases';
|
|
22674
|
-
});
|
|
22675
|
-
};
|
|
22676
|
-
return NoLinkedCasesComponent;
|
|
22677
|
-
}());
|
|
22678
|
-
NoLinkedCasesComponent.ɵfac = function NoLinkedCasesComponent_Factory(t) { return new (t || NoLinkedCasesComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
22679
|
-
NoLinkedCasesComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: NoLinkedCasesComponent, selectors: [["ccd-no-linked-cases"]], decls: 12, vars: 3, consts: [[1, "govuk-grid-row"], [1, "govuk-grid-column-full"], ["class", "govuk-heading-xl", 4, "ngIf"], ["id", "unlink-cases-error", "class", "govuk-error-message", 4, "ngIf", "ngIfElse"], ["noLinkedCases", ""], [1, "govuk-body"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "govuk-button-group"], ["type", "button", "id", "back-button", 1, "button", "button-primary", 3, "click"], [1, "govuk-heading-xl"], ["id", "unlink-cases-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"]], template: function NoLinkedCasesComponent_Template(rf, ctx) {
|
|
22680
|
-
if (rf & 1) {
|
|
22681
|
-
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
22682
|
-
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
22683
|
-
i0__namespace.ɵɵtemplate(2, NoLinkedCasesComponent_h1_2_Template, 2, 0, "h1", 2);
|
|
22684
|
-
i0__namespace.ɵɵtemplate(3, NoLinkedCasesComponent_p_3_Template, 4, 1, "p", 3);
|
|
22685
|
-
i0__namespace.ɵɵtemplate(4, NoLinkedCasesComponent_ng_template_4_Template, 2, 0, "ng-template", null, 4, i0__namespace.ɵɵtemplateRefExtractor);
|
|
22686
|
-
i0__namespace.ɵɵelementStart(6, "p", 5);
|
|
22687
|
-
i0__namespace.ɵɵelementStart(7, "a", 6);
|
|
22688
|
-
i0__namespace.ɵɵlistener("click", function NoLinkedCasesComponent_Template_a_click_7_listener() { return ctx.onBack(); });
|
|
22689
|
-
i0__namespace.ɵɵtext(8, "Go back to the Linked cases tab");
|
|
22690
|
-
i0__namespace.ɵɵelementEnd();
|
|
22691
|
-
i0__namespace.ɵɵelementEnd();
|
|
22692
|
-
i0__namespace.ɵɵelementStart(9, "div", 7);
|
|
22693
|
-
i0__namespace.ɵɵelementStart(10, "button", 8);
|
|
22694
|
-
i0__namespace.ɵɵlistener("click", function NoLinkedCasesComponent_Template_button_click_10_listener() { return ctx.onBack(); });
|
|
22695
|
-
i0__namespace.ɵɵtext(11, "Back");
|
|
22696
|
-
i0__namespace.ɵɵelementEnd();
|
|
22697
|
-
i0__namespace.ɵɵelementEnd();
|
|
22698
|
-
i0__namespace.ɵɵelementEnd();
|
|
22699
|
-
i0__namespace.ɵɵelementEnd();
|
|
22700
|
-
}
|
|
22701
|
-
if (rf & 2) {
|
|
22702
|
-
var _r2 = i0__namespace.ɵɵreference(5);
|
|
22703
|
-
i0__namespace.ɵɵadvance(2);
|
|
22704
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.linkedCasesService.serverLinkedApiError);
|
|
22705
|
-
i0__namespace.ɵɵadvance(1);
|
|
22706
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.linkedCasesService.serverLinkedApiError)("ngIfElse", _r2);
|
|
22707
|
-
}
|
|
22708
|
-
}, directives: [i2__namespace.NgIf], encapsulation: 2 });
|
|
22709
|
-
(function () {
|
|
22710
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(NoLinkedCasesComponent, [{
|
|
22711
|
-
type: i0.Component,
|
|
22712
|
-
args: [{
|
|
22713
|
-
selector: 'ccd-no-linked-cases',
|
|
22714
|
-
templateUrl: './no-linked-cases.component.html'
|
|
22715
|
-
}]
|
|
22716
|
-
}], function () { return [{ type: i1__namespace$1.Router }, { type: LinkedCasesService }]; }, null);
|
|
22717
|
-
})();
|
|
22718
|
-
|
|
22719
|
-
function UnLinkCasesComponent_div_0_div_4_p_1_Template(rf, ctx) {
|
|
22720
|
-
if (rf & 1) {
|
|
22721
|
-
i0__namespace.ɵɵelementStart(0, "p", 11);
|
|
22722
|
-
i0__namespace.ɵɵelementStart(1, "span", 12);
|
|
22723
|
-
i0__namespace.ɵɵtext(2, "Error:");
|
|
22724
|
-
i0__namespace.ɵɵelementEnd();
|
|
22725
|
-
i0__namespace.ɵɵtext(3);
|
|
22726
|
-
i0__namespace.ɵɵelementEnd();
|
|
22727
|
-
}
|
|
22728
|
-
if (rf & 2) {
|
|
22729
|
-
var ctx_r2 = i0__namespace.ɵɵnextContext(3);
|
|
22730
|
-
i0__namespace.ɵɵadvance(3);
|
|
22731
|
-
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r2.unlinkErrorMessage, " ");
|
|
22732
|
-
}
|
|
22733
|
-
}
|
|
22734
|
-
function UnLinkCasesComponent_div_0_div_4_div_3_Template(rf, ctx) {
|
|
22735
|
-
if (rf & 1) {
|
|
22736
|
-
var _r6_1 = i0__namespace.ɵɵgetCurrentView();
|
|
22737
|
-
i0__namespace.ɵɵelementStart(0, "div", 13);
|
|
22738
|
-
i0__namespace.ɵɵelementStart(1, "input", 14);
|
|
22739
|
-
i0__namespace.ɵɵlistener("change", function UnLinkCasesComponent_div_0_div_4_div_3_Template_input_change_1_listener($event) { i0__namespace.ɵɵrestoreView(_r6_1); var ctx_r5 = i0__namespace.ɵɵnextContext(3); return ctx_r5.onChange($event.target); });
|
|
22740
|
-
i0__namespace.ɵɵelementEnd();
|
|
22741
|
-
i0__namespace.ɵɵelementStart(2, "label", 15);
|
|
22742
|
-
i0__namespace.ɵɵtext(3);
|
|
22743
|
-
i0__namespace.ɵɵpipe(4, "ccdCaseReference");
|
|
22744
|
-
i0__namespace.ɵɵelementEnd();
|
|
22745
|
-
i0__namespace.ɵɵelementEnd();
|
|
22746
|
-
}
|
|
22747
|
-
if (rf & 2) {
|
|
22748
|
-
var case_r4 = ctx.$implicit;
|
|
22749
|
-
i0__namespace.ɵɵadvance(1);
|
|
22750
|
-
i0__namespace.ɵɵpropertyInterpolate1("id", "case-reference-", case_r4.caseReference, "");
|
|
22751
|
-
i0__namespace.ɵɵproperty("value", case_r4.caseReference)("checked", case_r4.unlink);
|
|
22752
|
-
i0__namespace.ɵɵadvance(1);
|
|
22753
|
-
i0__namespace.ɵɵpropertyInterpolate("for", case_r4.caseReference);
|
|
22754
|
-
i0__namespace.ɵɵadvance(1);
|
|
22755
|
-
i0__namespace.ɵɵtextInterpolate2(" ", case_r4.caseName, " ", i0__namespace.ɵɵpipeBind1(4, 6, case_r4.caseReference), " ");
|
|
22756
|
-
}
|
|
22757
|
-
}
|
|
22758
|
-
var _c0$l = function (a0) { return { "govuk-form-group--error": a0 }; };
|
|
22759
|
-
function UnLinkCasesComponent_div_0_div_4_Template(rf, ctx) {
|
|
22760
|
-
if (rf & 1) {
|
|
22761
|
-
i0__namespace.ɵɵelementStart(0, "div", 7);
|
|
22762
|
-
i0__namespace.ɵɵtemplate(1, UnLinkCasesComponent_div_0_div_4_p_1_Template, 4, 1, "p", 8);
|
|
22763
|
-
i0__namespace.ɵɵelementStart(2, "div", 9);
|
|
22764
|
-
i0__namespace.ɵɵtemplate(3, UnLinkCasesComponent_div_0_div_4_div_3_Template, 5, 8, "div", 10);
|
|
22765
|
-
i0__namespace.ɵɵelementEnd();
|
|
22766
|
-
i0__namespace.ɵɵelementEnd();
|
|
22767
|
-
}
|
|
22768
|
-
if (rf & 2) {
|
|
22769
|
-
var ctx_r1 = i0__namespace.ɵɵnextContext(2);
|
|
22770
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$l, ctx_r1.unlinkErrorMessage))("formGroup", ctx_r1.unlinkCaseForm);
|
|
22771
|
-
i0__namespace.ɵɵadvance(1);
|
|
22772
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r1.unlinkErrorMessage);
|
|
22773
|
-
i0__namespace.ɵɵadvance(2);
|
|
22774
|
-
i0__namespace.ɵɵproperty("ngForOf", ctx_r1.linkedCases);
|
|
22775
|
-
}
|
|
22776
|
-
}
|
|
22777
|
-
function UnLinkCasesComponent_div_0_Template(rf, ctx) {
|
|
22778
|
-
if (rf & 1) {
|
|
22779
|
-
var _r8_1 = i0__namespace.ɵɵgetCurrentView();
|
|
22780
|
-
i0__namespace.ɵɵelementStart(0, "div", 1);
|
|
22781
|
-
i0__namespace.ɵɵelementStart(1, "div", 2);
|
|
22782
|
-
i0__namespace.ɵɵelementStart(2, "h1", 3);
|
|
22783
|
-
i0__namespace.ɵɵtext(3, "Select the cases you want to unlink from this case");
|
|
22784
|
-
i0__namespace.ɵɵelementEnd();
|
|
22785
|
-
i0__namespace.ɵɵtemplate(4, UnLinkCasesComponent_div_0_div_4_Template, 4, 6, "div", 4);
|
|
22786
|
-
i0__namespace.ɵɵelementStart(5, "div", 5);
|
|
22787
|
-
i0__namespace.ɵɵelementStart(6, "button", 6);
|
|
22788
|
-
i0__namespace.ɵɵlistener("click", function UnLinkCasesComponent_div_0_Template_button_click_6_listener() { i0__namespace.ɵɵrestoreView(_r8_1); var ctx_r7 = i0__namespace.ɵɵnextContext(); return ctx_r7.onNext(); });
|
|
22789
|
-
i0__namespace.ɵɵtext(7, "Next");
|
|
22790
|
-
i0__namespace.ɵɵelementEnd();
|
|
22791
|
-
i0__namespace.ɵɵelementEnd();
|
|
22792
|
-
i0__namespace.ɵɵelementEnd();
|
|
22793
|
-
i0__namespace.ɵɵelementEnd();
|
|
22794
|
-
}
|
|
22795
|
-
if (rf & 2) {
|
|
22796
|
-
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
22797
|
-
i0__namespace.ɵɵadvance(4);
|
|
22798
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r0.unlinkCaseForm);
|
|
22799
|
-
}
|
|
22800
|
-
}
|
|
22801
|
-
var UnLinkCasesComponent = /** @class */ (function () {
|
|
22802
|
-
function UnLinkCasesComponent(caseEdit, fb, casesService, linkedCasesService) {
|
|
22803
|
-
this.caseEdit = caseEdit;
|
|
22804
|
-
this.fb = fb;
|
|
22805
|
-
this.casesService = casesService;
|
|
22806
|
-
this.linkedCasesService = linkedCasesService;
|
|
22807
|
-
this.linkedCasesStateEmitter = new i0.EventEmitter();
|
|
22808
|
-
this.notifyAPIFailure = new i0.EventEmitter(false);
|
|
22809
|
-
this.linkedCases = [];
|
|
22810
|
-
this.errorMessages = [];
|
|
22811
|
-
this.isServerError = false;
|
|
22812
|
-
}
|
|
22813
|
-
UnLinkCasesComponent.prototype.ngOnInit = function () {
|
|
22814
|
-
this.getLinkedCases();
|
|
22815
|
-
};
|
|
22816
|
-
UnLinkCasesComponent.prototype.getLinkedCases = function () {
|
|
22817
|
-
var _this = this;
|
|
22818
|
-
this.caseId = this.linkedCasesService.caseId;
|
|
22819
|
-
if (this.linkedCasesService.linkedCases.length > 0) {
|
|
22820
|
-
this.linkedCases = this.linkedCasesService.linkedCases;
|
|
22821
|
-
this.getAllLinkedCaseInformation();
|
|
22822
|
-
}
|
|
22823
|
-
else {
|
|
22824
|
-
this.casesService.getCaseViewV2(this.caseId).subscribe(function (caseView) {
|
|
22825
|
-
var linkedCasesTab = caseView.tabs.find(function (tab) { return tab.id === UnLinkCasesComponent.LINKED_CASES_TAB_ID; });
|
|
22826
|
-
if (linkedCasesTab) {
|
|
22827
|
-
var linkedCases = linkedCasesTab.fields[0].value;
|
|
22828
|
-
_this.linkedCases = linkedCases;
|
|
22829
|
-
_this.linkedCasesService.linkedCases = linkedCases;
|
|
22830
|
-
_this.getAllLinkedCaseInformation();
|
|
22831
|
-
}
|
|
22832
|
-
});
|
|
22833
|
-
}
|
|
22834
|
-
};
|
|
22835
|
-
UnLinkCasesComponent.prototype.getAllLinkedCaseInformation = function () {
|
|
22836
|
-
var _this = this;
|
|
22837
|
-
var searchCasesResponse = [];
|
|
22838
|
-
this.linkedCases.forEach(function (linkedCase) {
|
|
22839
|
-
searchCasesResponse.push(_this.casesService.getCaseViewV2(linkedCase.caseReference));
|
|
22840
|
-
});
|
|
22841
|
-
if (searchCasesResponse.length) {
|
|
22842
|
-
this.searchCasesByCaseIds(searchCasesResponse).subscribe(function (searchCases) {
|
|
22843
|
-
searchCases.forEach(function (response) {
|
|
22844
|
-
var linkedCaseFromList = _this.linkedCases.find(function (linkedCase) { return linkedCase.caseReference === response.case_id; });
|
|
22845
|
-
if (linkedCaseFromList) {
|
|
22846
|
-
var caseName = _this.linkedCasesService.getCaseName(response);
|
|
22847
|
-
_this.linkedCases.find(function (linkedCase) { return linkedCase.caseReference === response.case_id; }).caseName = caseName;
|
|
22848
|
-
}
|
|
22849
|
-
});
|
|
22850
|
-
_this.initForm();
|
|
22851
|
-
_this.linkedCasesService.linkedCases = _this.linkedCases;
|
|
22852
|
-
_this.isServerError = false;
|
|
22853
|
-
}, function (err) {
|
|
22854
|
-
_this.isServerError = true;
|
|
22855
|
-
_this.notifyAPIFailure.emit(true);
|
|
22856
|
-
});
|
|
22857
|
-
}
|
|
22858
|
-
};
|
|
22859
|
-
UnLinkCasesComponent.prototype.searchCasesByCaseIds = function (searchCasesResponse) {
|
|
22860
|
-
return rxjs.forkJoin(searchCasesResponse);
|
|
22861
|
-
};
|
|
22862
|
-
UnLinkCasesComponent.prototype.initForm = function () {
|
|
22863
|
-
this.unlinkCaseForm = this.fb.group({
|
|
22864
|
-
linkedCases: this.getLinkedCasesFormArray
|
|
22865
|
-
});
|
|
22866
|
-
};
|
|
22867
|
-
Object.defineProperty(UnLinkCasesComponent.prototype, "getLinkedCasesFormArray", {
|
|
22868
|
-
get: function () {
|
|
22869
|
-
var _this = this;
|
|
22870
|
-
var formFieldArray = this.linkedCases.map(function (val) { return _this.fb.group({
|
|
22871
|
-
caseReference: val.caseReference,
|
|
22872
|
-
reasons: val.reasons,
|
|
22873
|
-
createdDateTime: val.createdDateTime,
|
|
22874
|
-
caseType: val.caseType,
|
|
22875
|
-
caseState: val.caseState,
|
|
22876
|
-
caseService: val.caseService,
|
|
22877
|
-
caseName: val.caseName || UnLinkCasesComponent.CASE_NAME_MISSING_TEXT,
|
|
22878
|
-
unlink: val.unlink
|
|
22879
|
-
}); });
|
|
22880
|
-
return this.fb.array(formFieldArray);
|
|
22881
|
-
},
|
|
22882
|
-
enumerable: false,
|
|
22883
|
-
configurable: true
|
|
22884
|
-
});
|
|
22885
|
-
UnLinkCasesComponent.prototype.onChange = function (caseSelected) {
|
|
22886
|
-
this.resetErrorMessages();
|
|
22887
|
-
var selectedCase = this.linkedCases.find(function (linkedCase) { return linkedCase.caseReference === caseSelected.value; });
|
|
22888
|
-
if (selectedCase) {
|
|
22889
|
-
selectedCase.unlink = caseSelected.checked ? true : false;
|
|
22890
|
-
}
|
|
22891
|
-
};
|
|
22892
|
-
UnLinkCasesComponent.prototype.onNext = function () {
|
|
22893
|
-
this.resetErrorMessages();
|
|
22894
|
-
var navigateToNextPage = true;
|
|
22895
|
-
var casesMarkedToUnlink = this.linkedCases.find(function (linkedCase) { return linkedCase.unlink && linkedCase.unlink === true; });
|
|
22896
|
-
if (!casesMarkedToUnlink) {
|
|
22897
|
-
this.errorMessages.push({
|
|
22898
|
-
title: 'case-selection',
|
|
22899
|
-
description: exports.LinkedCasesErrorMessages.UnlinkCaseSelectionError,
|
|
22900
|
-
fieldId: "case-reference-" + this.linkedCases[0].caseReference
|
|
22901
|
-
});
|
|
22902
|
-
this.unlinkErrorMessage = exports.LinkedCasesErrorMessages.UnlinkCaseSelectionError;
|
|
22903
|
-
navigateToNextPage = false;
|
|
22904
|
-
}
|
|
22905
|
-
var unlinkedCaseRefereneIds = this.linkedCasesService.linkedCases.filter(function (item) { return item.unlink; }).map(function (item) { return item.caseReference; });
|
|
22906
|
-
var updatedLinkedCases = this.linkedCasesService.caseFieldValue.filter(function (item) { return unlinkedCaseRefereneIds.indexOf(item.value.CaseReference) === -1; });
|
|
22907
|
-
this.caseEdit.form.controls['data'] = new i2$1.FormGroup({ caseLinks: new i2$1.FormControl(updatedLinkedCases || []) });
|
|
22908
|
-
// Return linked cases state and error messages to the parent
|
|
22909
|
-
this.linkedCasesStateEmitter.emit({
|
|
22910
|
-
currentLinkedCasesPage: exports.LinkedCasesPages.UNLINK_CASE,
|
|
22911
|
-
errorMessages: this.errorMessages,
|
|
22912
|
-
navigateToNextPage: navigateToNextPage
|
|
22913
|
-
});
|
|
22914
|
-
};
|
|
22915
|
-
UnLinkCasesComponent.prototype.resetErrorMessages = function () {
|
|
22916
|
-
this.errorMessages = [];
|
|
22917
|
-
this.unlinkErrorMessage = null;
|
|
22918
|
-
};
|
|
22919
|
-
return UnLinkCasesComponent;
|
|
22920
|
-
}());
|
|
22921
|
-
UnLinkCasesComponent.LINKED_CASES_TAB_ID = 'linked_cases_sscs';
|
|
22922
|
-
UnLinkCasesComponent.CASE_NAME_MISSING_TEXT = 'Case name missing';
|
|
22923
|
-
UnLinkCasesComponent.ɵfac = function UnLinkCasesComponent_Factory(t) { return new (t || UnLinkCasesComponent)(i0__namespace.ɵɵdirectiveInject(CaseEditComponent), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.FormBuilder), i0__namespace.ɵɵdirectiveInject(CasesService), i0__namespace.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
22924
|
-
UnLinkCasesComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: UnLinkCasesComponent, selectors: [["ccd-unlink-cases"]], outputs: { linkedCasesStateEmitter: "linkedCasesStateEmitter", notifyAPIFailure: "notifyAPIFailure" }, decls: 1, vars: 1, consts: [["class", "govuk-grid-row", 4, "ngIf"], [1, "govuk-grid-row"], [1, "govuk-grid-column-full"], [1, "govuk-heading-xl"], ["class", "govuk-form-group form-group", 3, "ngClass", "formGroup", 4, "ngIf"], [1, "govuk-button-group"], ["type", "button", "id", "next-button", 1, "button", "button-primary", 3, "click"], [1, "govuk-form-group", "form-group", 3, "ngClass", "formGroup"], ["id", "unlink-cases-error", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-checkboxes", 1, "govuk-checkboxes"], ["class", "govuk-checkboxes__item", 4, "ngFor", "ngForOf"], ["id", "unlink-cases-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-checkboxes__item"], ["formArrayName", "linkedCases", "name", "linkedCases", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "id", "value", "checked", "change"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"]], template: function UnLinkCasesComponent_Template(rf, ctx) {
|
|
22925
|
-
if (rf & 1) {
|
|
22926
|
-
i0__namespace.ɵɵtemplate(0, UnLinkCasesComponent_div_0_Template, 8, 1, "div", 0);
|
|
22927
|
-
}
|
|
22928
|
-
if (rf & 2) {
|
|
22929
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.linkedCases.length > 0);
|
|
22930
|
-
}
|
|
22931
|
-
}, directives: [i2__namespace.NgIf, i2__namespace.NgClass, i2__namespace$1.NgControlStatusGroup, i2__namespace$1.FormGroupDirective, i2__namespace.NgForOf, i2__namespace$1.FormArrayName], pipes: [CaseReferencePipe], encapsulation: 2 });
|
|
22932
|
-
(function () {
|
|
22933
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(UnLinkCasesComponent, [{
|
|
22934
|
-
type: i0.Component,
|
|
22935
|
-
args: [{
|
|
22936
|
-
selector: 'ccd-unlink-cases',
|
|
22937
|
-
templateUrl: './unlink-cases.component.html'
|
|
22938
|
-
}]
|
|
22939
|
-
}], function () { return [{ type: CaseEditComponent }, { type: i2__namespace$1.FormBuilder }, { type: CasesService }, { type: LinkedCasesService }]; }, { linkedCasesStateEmitter: [{
|
|
22940
|
-
type: i0.Output
|
|
22941
|
-
}], notifyAPIFailure: [{
|
|
22942
|
-
type: i0.Output
|
|
22943
|
-
}] });
|
|
22944
|
-
})();
|
|
22945
|
-
|
|
22946
|
-
function WriteLinkedCasesComponent_div_0_div_3_Template(rf, ctx) {
|
|
22947
|
-
if (rf & 1) {
|
|
22948
|
-
var _r9_1 = i0__namespace.ɵɵgetCurrentView();
|
|
22949
|
-
i0__namespace.ɵɵelementStart(0, "div", 7);
|
|
22950
|
-
i0__namespace.ɵɵelementStart(1, "ul", 8);
|
|
22951
|
-
i0__namespace.ɵɵelementStart(2, "li");
|
|
22952
|
-
i0__namespace.ɵɵelementStart(3, "a", 9);
|
|
22953
|
-
i0__namespace.ɵɵlistener("click", function WriteLinkedCasesComponent_div_0_div_3_Template_a_click_3_listener() { i0__namespace.ɵɵrestoreView(_r9_1); var errorMessage_r7 = ctx.$implicit; var ctx_r8 = i0__namespace.ɵɵnextContext(2); return ctx_r8.navigateToErrorElement(errorMessage_r7.fieldId); });
|
|
22954
|
-
i0__namespace.ɵɵtext(4);
|
|
22955
|
-
i0__namespace.ɵɵelementEnd();
|
|
22956
|
-
i0__namespace.ɵɵelementEnd();
|
|
22957
|
-
i0__namespace.ɵɵelementEnd();
|
|
22958
|
-
i0__namespace.ɵɵelementEnd();
|
|
22959
|
-
}
|
|
22960
|
-
if (rf & 2) {
|
|
22961
|
-
var errorMessage_r7 = ctx.$implicit;
|
|
22962
|
-
i0__namespace.ɵɵadvance(4);
|
|
22963
|
-
i0__namespace.ɵɵtextInterpolate(errorMessage_r7.description);
|
|
22964
|
-
}
|
|
22965
|
-
}
|
|
22966
|
-
function WriteLinkedCasesComponent_div_0_Template(rf, ctx) {
|
|
22967
|
-
if (rf & 1) {
|
|
22968
|
-
i0__namespace.ɵɵelementStart(0, "div", 4);
|
|
22969
|
-
i0__namespace.ɵɵelementStart(1, "h2", 5);
|
|
22970
|
-
i0__namespace.ɵɵtext(2, " There is a problem ");
|
|
22971
|
-
i0__namespace.ɵɵelementEnd();
|
|
22972
|
-
i0__namespace.ɵɵtemplate(3, WriteLinkedCasesComponent_div_0_div_3_Template, 5, 1, "div", 6);
|
|
22973
|
-
i0__namespace.ɵɵelementEnd();
|
|
22974
|
-
}
|
|
22975
|
-
if (rf & 2) {
|
|
22976
|
-
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
22977
|
-
i0__namespace.ɵɵadvance(3);
|
|
22978
|
-
i0__namespace.ɵɵproperty("ngForOf", ctx_r0.errorMessages);
|
|
22979
|
-
}
|
|
22980
|
-
}
|
|
22981
|
-
function WriteLinkedCasesComponent_ng_container_3_Template(rf, ctx) {
|
|
22982
|
-
if (rf & 1) {
|
|
22983
|
-
var _r11_1 = i0__namespace.ɵɵgetCurrentView();
|
|
22984
|
-
i0__namespace.ɵɵelementContainerStart(0);
|
|
22985
|
-
i0__namespace.ɵɵelementStart(1, "ccd-linked-cases-before-you-start", 10);
|
|
22986
|
-
i0__namespace.ɵɵlistener("linkedCasesStateEmitter", function WriteLinkedCasesComponent_ng_container_3_Template_ccd_linked_cases_before_you_start_linkedCasesStateEmitter_1_listener($event) { i0__namespace.ɵɵrestoreView(_r11_1); var ctx_r10 = i0__namespace.ɵɵnextContext(); return ctx_r10.onLinkedCasesStateEmitted($event); });
|
|
22987
|
-
i0__namespace.ɵɵelementEnd();
|
|
22988
|
-
i0__namespace.ɵɵelementContainerEnd();
|
|
22989
|
-
}
|
|
22990
|
-
}
|
|
22991
|
-
function WriteLinkedCasesComponent_ng_container_4_Template(rf, ctx) {
|
|
22992
|
-
if (rf & 1) {
|
|
22993
|
-
var _r13_1 = i0__namespace.ɵɵgetCurrentView();
|
|
22994
|
-
i0__namespace.ɵɵelementContainerStart(0);
|
|
22995
|
-
i0__namespace.ɵɵelementStart(1, "ccd-no-linked-cases", 10);
|
|
22996
|
-
i0__namespace.ɵɵlistener("linkedCasesStateEmitter", function WriteLinkedCasesComponent_ng_container_4_Template_ccd_no_linked_cases_linkedCasesStateEmitter_1_listener($event) { i0__namespace.ɵɵrestoreView(_r13_1); var ctx_r12 = i0__namespace.ɵɵnextContext(); return ctx_r12.onLinkedCasesStateEmitted($event); });
|
|
22997
|
-
i0__namespace.ɵɵelementEnd();
|
|
22998
|
-
i0__namespace.ɵɵelementContainerEnd();
|
|
22999
|
-
}
|
|
23000
|
-
}
|
|
23001
|
-
function WriteLinkedCasesComponent_ng_container_5_Template(rf, ctx) {
|
|
23002
|
-
if (rf & 1) {
|
|
23003
|
-
var _r15_1 = i0__namespace.ɵɵgetCurrentView();
|
|
23004
|
-
i0__namespace.ɵɵelementContainerStart(0);
|
|
23005
|
-
i0__namespace.ɵɵelementStart(1, "ccd-link-cases", 10);
|
|
23006
|
-
i0__namespace.ɵɵlistener("linkedCasesStateEmitter", function WriteLinkedCasesComponent_ng_container_5_Template_ccd_link_cases_linkedCasesStateEmitter_1_listener($event) { i0__namespace.ɵɵrestoreView(_r15_1); var ctx_r14 = i0__namespace.ɵɵnextContext(); return ctx_r14.onLinkedCasesStateEmitted($event); });
|
|
23007
|
-
i0__namespace.ɵɵelementEnd();
|
|
23008
|
-
i0__namespace.ɵɵelementContainerEnd();
|
|
23009
|
-
}
|
|
23010
|
-
}
|
|
23011
|
-
function WriteLinkedCasesComponent_ng_container_6_Template(rf, ctx) {
|
|
23012
|
-
if (rf & 1) {
|
|
23013
|
-
var _r17_1 = i0__namespace.ɵɵgetCurrentView();
|
|
23014
|
-
i0__namespace.ɵɵelementContainerStart(0);
|
|
23015
|
-
i0__namespace.ɵɵelementStart(1, "ccd-unlink-cases", 10);
|
|
23016
|
-
i0__namespace.ɵɵlistener("linkedCasesStateEmitter", function WriteLinkedCasesComponent_ng_container_6_Template_ccd_unlink_cases_linkedCasesStateEmitter_1_listener($event) { i0__namespace.ɵɵrestoreView(_r17_1); var ctx_r16 = i0__namespace.ɵɵnextContext(); return ctx_r16.onLinkedCasesStateEmitted($event); });
|
|
23017
|
-
i0__namespace.ɵɵelementEnd();
|
|
23018
|
-
i0__namespace.ɵɵelementContainerEnd();
|
|
23019
|
-
}
|
|
23020
|
-
}
|
|
23021
|
-
function WriteLinkedCasesComponent_ng_container_7_Template(rf, ctx) {
|
|
23022
|
-
if (rf & 1) {
|
|
23023
|
-
var _r19_1 = i0__namespace.ɵɵgetCurrentView();
|
|
23024
|
-
i0__namespace.ɵɵelementContainerStart(0);
|
|
23025
|
-
i0__namespace.ɵɵelementStart(1, "ccd-linked-cases-check-your-answers", 10);
|
|
23026
|
-
i0__namespace.ɵɵlistener("linkedCasesStateEmitter", function WriteLinkedCasesComponent_ng_container_7_Template_ccd_linked_cases_check_your_answers_linkedCasesStateEmitter_1_listener($event) { i0__namespace.ɵɵrestoreView(_r19_1); var ctx_r18 = i0__namespace.ɵɵnextContext(); return ctx_r18.onLinkedCasesStateEmitted($event); });
|
|
23027
|
-
i0__namespace.ɵɵelementEnd();
|
|
23028
|
-
i0__namespace.ɵɵelementContainerEnd();
|
|
23029
|
-
}
|
|
23030
|
-
}
|
|
23031
|
-
var WriteLinkedCasesComponent = /** @class */ (function (_super) {
|
|
23032
|
-
__extends(WriteLinkedCasesComponent, _super);
|
|
23033
|
-
function WriteLinkedCasesComponent(caseEdit, appConfig, commonDataService, casesService, linkedCasesService, caseEditDataService) {
|
|
23034
|
-
var _this = _super.call(this) || this;
|
|
23035
|
-
_this.caseEdit = caseEdit;
|
|
23036
|
-
_this.appConfig = appConfig;
|
|
23037
|
-
_this.commonDataService = commonDataService;
|
|
23038
|
-
_this.casesService = casesService;
|
|
23039
|
-
_this.linkedCasesService = linkedCasesService;
|
|
23040
|
-
_this.caseEditDataService = caseEditDataService;
|
|
23041
|
-
_this.onLinkedCasesSelected = new i0.EventEmitter();
|
|
23042
|
-
_this.isLinkedCasesJourney = false;
|
|
23043
|
-
_this.linkedCasesPages = exports.LinkedCasesPages;
|
|
23044
|
-
_this.linkedCasesEventTriggers = exports.LinkedCasesEventTriggers;
|
|
23045
|
-
_this.linkedCases = [];
|
|
23046
|
-
_this.errorMessages = [];
|
|
23047
|
-
return _this;
|
|
23048
|
-
}
|
|
23049
|
-
WriteLinkedCasesComponent.prototype.ngOnInit = function () {
|
|
23050
|
-
var _this = this;
|
|
23051
|
-
this.caseEditDataService.clearFormValidationErrors();
|
|
23052
|
-
this.linkedCasesService.caseId = this.caseEdit.caseDetails.case_id;
|
|
23053
|
-
this.linkedCasesService.caseName = this.linkedCasesService.getCaseName(this.caseEdit.caseDetails);
|
|
23054
|
-
this.linkedCasesService.caseDetails = this.caseEdit.caseDetails;
|
|
23055
|
-
this.linkedCasesService.editMode = false;
|
|
23056
|
-
var reasonCodeAPIurl = this.appConfig.getRDCommonDataApiUrl() + '/lov/categories/CaseLinkingReasonCode';
|
|
23057
|
-
this.commonDataService.getRefData(reasonCodeAPIurl).subscribe({
|
|
23058
|
-
next: function (reasons) {
|
|
23059
|
-
_this.linkedCasesService.linkCaseReasons = reasons.list_of_values.sort(function (a, b) { return (a.value_en > b.value_en) ? 1 : -1; });
|
|
23060
|
-
}
|
|
23061
|
-
});
|
|
23062
|
-
this.getLinkedCases();
|
|
23063
|
-
this.caseEditDataService.caseEventTriggerName$.subscribe({
|
|
23064
|
-
next: function (name) {
|
|
23065
|
-
_this.linkedCasesService.isLinkedCasesEventTrigger
|
|
23066
|
-
= (name === exports.LinkedCasesEventTriggers.LINK_CASES);
|
|
23067
|
-
}
|
|
23068
|
-
});
|
|
23069
|
-
};
|
|
23070
|
-
WriteLinkedCasesComponent.prototype.ngAfterViewInit = function () {
|
|
23071
|
-
var labelField = document.getElementsByClassName('govuk-heading-l');
|
|
23072
|
-
if (labelField && labelField.length) {
|
|
23073
|
-
labelField[0].replaceWith('');
|
|
23074
|
-
}
|
|
23075
|
-
labelField = document.getElementsByClassName('heading-h2');
|
|
23076
|
-
if (labelField && labelField.length) {
|
|
23077
|
-
labelField[0].replaceWith('');
|
|
23078
|
-
}
|
|
23079
|
-
};
|
|
23080
|
-
WriteLinkedCasesComponent.prototype.onLinkedCasesStateEmitted = function (linkedCasesState) {
|
|
23081
|
-
var _this = this;
|
|
23082
|
-
this.errorMessages = [];
|
|
23083
|
-
this.caseEditDataService.clearFormValidationErrors();
|
|
23084
|
-
if (linkedCasesState.navigateToNextPage) {
|
|
23085
|
-
this.linkedCasesPage = this.getNextPage(linkedCasesState);
|
|
23086
|
-
this.setContinueButtonValidationErrorMessage();
|
|
23087
|
-
this.proceedToNextPage();
|
|
23088
|
-
}
|
|
23089
|
-
else {
|
|
23090
|
-
if (linkedCasesState.errorMessages && linkedCasesState.errorMessages.length) {
|
|
23091
|
-
linkedCasesState.errorMessages.forEach(function (errorMessage, index) {
|
|
23092
|
-
_this.caseEditDataService.addFormValidationError({ id: errorMessage.fieldId, message: errorMessage.description });
|
|
23093
|
-
});
|
|
23094
|
-
}
|
|
23095
|
-
}
|
|
23096
|
-
};
|
|
23097
|
-
WriteLinkedCasesComponent.prototype.isAtFinalState = function () {
|
|
23098
|
-
return this.linkedCasesPage === this.linkedCasesPages.CHECK_YOUR_ANSWERS;
|
|
23099
|
-
};
|
|
23100
|
-
WriteLinkedCasesComponent.prototype.setContinueButtonValidationErrorMessage = function () {
|
|
23101
|
-
var errorMessage = this.linkedCasesService.isLinkedCasesEventTrigger
|
|
23102
|
-
? exports.LinkedCasesErrorMessages.LinkCasesNavigationError
|
|
23103
|
-
: exports.LinkedCasesErrorMessages.UnlinkCasesNavigationError;
|
|
23104
|
-
var buttonId = this.linkedCasesService.linkedCases.length === 0
|
|
23105
|
-
? 'back-button'
|
|
23106
|
-
: 'next-button';
|
|
23107
|
-
this.caseEditDataService.setCaseLinkError({
|
|
23108
|
-
componentId: buttonId,
|
|
23109
|
-
errorMessage: errorMessage
|
|
23110
|
-
});
|
|
23111
|
-
};
|
|
23112
|
-
WriteLinkedCasesComponent.prototype.proceedToNextPage = function () {
|
|
23113
|
-
if (this.isAtFinalPage()) {
|
|
23114
|
-
// Continue button event must be allowed in final page
|
|
23115
|
-
this.caseEditDataService.clearCaseLinkError();
|
|
23116
|
-
// Trigger validation to clear the "notAtFinalPage" error if now at the final state
|
|
23117
|
-
this.formGroup.updateValueAndValidity();
|
|
23118
|
-
// update form value
|
|
23119
|
-
this.onLinkedCasesSelected.emit();
|
|
23120
|
-
this.caseEdit.form.controls['data'] = new i2$1.FormGroup({ caseLinks: new i2$1.FormControl(this.linkedCasesService.caseFieldValue) });
|
|
23121
|
-
}
|
|
23122
|
-
};
|
|
23123
|
-
WriteLinkedCasesComponent.prototype.isAtFinalPage = function () {
|
|
23124
|
-
return this.linkedCasesPage === this.linkedCasesPages.CHECK_YOUR_ANSWERS;
|
|
23125
|
-
};
|
|
23126
|
-
WriteLinkedCasesComponent.prototype.getNextPage = function (linkedCasesState) {
|
|
23127
|
-
if ((this.linkedCasesPage === exports.LinkedCasesPages.BEFORE_YOU_START) ||
|
|
23128
|
-
(linkedCasesState.currentLinkedCasesPage === exports.LinkedCasesPages.CHECK_YOUR_ANSWERS && linkedCasesState.navigateToPreviousPage)) {
|
|
23129
|
-
return this.isLinkedCasesJourney
|
|
23130
|
-
? exports.LinkedCasesPages.LINK_CASE
|
|
23131
|
-
: exports.LinkedCasesPages.UNLINK_CASE;
|
|
23132
|
-
}
|
|
23133
|
-
return exports.LinkedCasesPages.CHECK_YOUR_ANSWERS;
|
|
23134
|
-
};
|
|
23135
|
-
WriteLinkedCasesComponent.prototype.getLinkedCases = function () {
|
|
23136
|
-
var _this = this;
|
|
23137
|
-
this.casesService.getCaseViewV2(this.linkedCasesService.caseId).subscribe(function (caseView) {
|
|
23138
|
-
var caseViewFiltered = caseView.tabs.filter(function (tab) {
|
|
23139
|
-
var linkField = tab.fields.some(function (_a) {
|
|
23140
|
-
var field_type = _a.field_type;
|
|
23141
|
-
return field_type && field_type.collection_field_type && field_type.collection_field_type.id === 'CaseLink';
|
|
23142
|
-
});
|
|
23143
|
-
return linkField;
|
|
23144
|
-
});
|
|
23145
|
-
if (caseViewFiltered) {
|
|
23146
|
-
var caseLinkFieldValue = caseViewFiltered.map(function (filtered) { return filtered.fields.length && filtered.fields[0].value; });
|
|
23147
|
-
_this.linkedCasesService.caseFieldValue = caseLinkFieldValue.length ? caseLinkFieldValue[0] : [];
|
|
23148
|
-
_this.linkedCasesService.getAllLinkedCaseInformation();
|
|
23149
|
-
}
|
|
23150
|
-
// Initialise the first page to display
|
|
23151
|
-
_this.linkedCasesPage = _this.linkedCasesService.isLinkedCasesEventTrigger ||
|
|
23152
|
-
(_this.linkedCasesService.caseFieldValue && _this.linkedCasesService.caseFieldValue.length > 0
|
|
23153
|
-
&& !_this.linkedCasesService.serverLinkedApiError)
|
|
23154
|
-
? exports.LinkedCasesPages.BEFORE_YOU_START
|
|
23155
|
-
: exports.LinkedCasesPages.NO_LINKED_CASES;
|
|
23156
|
-
// Initialise the error to be displayed when clicked on Continue button
|
|
23157
|
-
_this.setContinueButtonValidationErrorMessage();
|
|
23158
|
-
});
|
|
23159
|
-
};
|
|
23160
|
-
WriteLinkedCasesComponent.prototype.navigateToErrorElement = function (elementId) {
|
|
23161
|
-
if (elementId) {
|
|
23162
|
-
var htmlElement = document.getElementById(elementId);
|
|
23163
|
-
if (htmlElement) {
|
|
23164
|
-
htmlElement.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
|
23165
|
-
htmlElement.focus();
|
|
23166
|
-
}
|
|
23167
|
-
}
|
|
23168
|
-
};
|
|
23169
|
-
return WriteLinkedCasesComponent;
|
|
23170
|
-
}(AbstractFieldWriteComponent));
|
|
23171
|
-
WriteLinkedCasesComponent.ɵfac = function WriteLinkedCasesComponent_Factory(t) { return new (t || WriteLinkedCasesComponent)(i0__namespace.ɵɵdirectiveInject(CaseEditComponent), i0__namespace.ɵɵdirectiveInject(AbstractAppConfig), i0__namespace.ɵɵdirectiveInject(CommonDataService), i0__namespace.ɵɵdirectiveInject(CasesService), i0__namespace.ɵɵdirectiveInject(LinkedCasesService), i0__namespace.ɵɵdirectiveInject(CaseEditDataService)); };
|
|
23172
|
-
WriteLinkedCasesComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteLinkedCasesComponent, selectors: [["ccd-write-linked-cases"]], inputs: { caseFields: "caseFields", caseField: "caseField", isLinkedCasesJourney: "isLinkedCasesJourney", formGroup: "formGroup" }, outputs: { onLinkedCasesSelected: "onLinkedCasesSelected" }, features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 8, vars: 8, consts: [["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], [1, "form-group", "govuk-!-margin-bottom-2", 3, "formGroup"], [1, "govuk-form-group", 3, "ngSwitch"], [4, "ngSwitchCase"], ["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"], [3, "linkedCasesStateEmitter"]], template: function WriteLinkedCasesComponent_Template(rf, ctx) {
|
|
23173
|
-
if (rf & 1) {
|
|
23174
|
-
i0__namespace.ɵɵtemplate(0, WriteLinkedCasesComponent_div_0_Template, 4, 1, "div", 0);
|
|
23175
|
-
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
23176
|
-
i0__namespace.ɵɵelementStart(2, "div", 2);
|
|
23177
|
-
i0__namespace.ɵɵtemplate(3, WriteLinkedCasesComponent_ng_container_3_Template, 2, 0, "ng-container", 3);
|
|
23178
|
-
i0__namespace.ɵɵtemplate(4, WriteLinkedCasesComponent_ng_container_4_Template, 2, 0, "ng-container", 3);
|
|
23179
|
-
i0__namespace.ɵɵtemplate(5, WriteLinkedCasesComponent_ng_container_5_Template, 2, 0, "ng-container", 3);
|
|
23180
|
-
i0__namespace.ɵɵtemplate(6, WriteLinkedCasesComponent_ng_container_6_Template, 2, 0, "ng-container", 3);
|
|
23181
|
-
i0__namespace.ɵɵtemplate(7, WriteLinkedCasesComponent_ng_container_7_Template, 2, 0, "ng-container", 3);
|
|
23182
|
-
i0__namespace.ɵɵelementEnd();
|
|
23183
|
-
i0__namespace.ɵɵelementEnd();
|
|
23184
|
-
}
|
|
23185
|
-
if (rf & 2) {
|
|
23186
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.errorMessages.length > 0);
|
|
23187
|
-
i0__namespace.ɵɵadvance(1);
|
|
23188
|
-
i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
|
|
23189
|
-
i0__namespace.ɵɵadvance(1);
|
|
23190
|
-
i0__namespace.ɵɵproperty("ngSwitch", ctx.linkedCasesPage);
|
|
23191
|
-
i0__namespace.ɵɵadvance(1);
|
|
23192
|
-
i0__namespace.ɵɵproperty("ngSwitchCase", ctx.linkedCasesPages.BEFORE_YOU_START);
|
|
23193
|
-
i0__namespace.ɵɵadvance(1);
|
|
23194
|
-
i0__namespace.ɵɵproperty("ngSwitchCase", ctx.linkedCasesPages.NO_LINKED_CASES);
|
|
23195
|
-
i0__namespace.ɵɵadvance(1);
|
|
23196
|
-
i0__namespace.ɵɵproperty("ngSwitchCase", ctx.linkedCasesPages.LINK_CASE);
|
|
23197
|
-
i0__namespace.ɵɵadvance(1);
|
|
23198
|
-
i0__namespace.ɵɵproperty("ngSwitchCase", ctx.linkedCasesPages.UNLINK_CASE);
|
|
23199
|
-
i0__namespace.ɵɵadvance(1);
|
|
23200
|
-
i0__namespace.ɵɵproperty("ngSwitchCase", ctx.linkedCasesPages.CHECK_YOUR_ANSWERS);
|
|
23201
|
-
}
|
|
23202
|
-
}, encapsulation: 2 });
|
|
23203
|
-
(function () {
|
|
23204
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteLinkedCasesComponent, [{
|
|
23205
|
-
type: i0.Component,
|
|
23206
|
-
args: [{
|
|
23207
|
-
selector: 'ccd-write-linked-cases',
|
|
23208
|
-
templateUrl: './write-linked-cases.component.html'
|
|
23209
|
-
}]
|
|
23210
|
-
}], function () { return [{ type: CaseEditComponent }, { type: AbstractAppConfig }, { type: CommonDataService }, { type: CasesService }, { type: LinkedCasesService }, { type: CaseEditDataService }]; }, { caseFields: [{
|
|
23211
|
-
type: i0.Input
|
|
23212
|
-
}], caseField: [{
|
|
23213
|
-
type: i0.Input
|
|
23214
|
-
}], onLinkedCasesSelected: [{
|
|
23215
|
-
type: i0.Output
|
|
23216
|
-
}], isLinkedCasesJourney: [{
|
|
23217
|
-
type: i0.Input
|
|
23218
|
-
}], formGroup: [{
|
|
23219
|
-
type: i0.Input
|
|
23220
|
-
}] });
|
|
23221
|
-
})();
|
|
23222
|
-
|
|
23223
|
-
function ReadLinkedCasesComponent_ng_container_7_Template(rf, ctx) {
|
|
23224
|
-
if (rf & 1) {
|
|
23225
|
-
i0__namespace.ɵɵelementContainer(0);
|
|
23226
|
-
}
|
|
23227
|
-
}
|
|
23228
|
-
function ReadLinkedCasesComponent_ng_container_8_Template(rf, ctx) {
|
|
23229
|
-
if (rf & 1) {
|
|
23230
|
-
i0__namespace.ɵɵelementContainer(0);
|
|
23231
|
-
}
|
|
23232
|
-
}
|
|
23233
|
-
function ReadLinkedCasesComponent_ng_container_14_Template(rf, ctx) {
|
|
23234
|
-
if (rf & 1) {
|
|
23235
|
-
i0__namespace.ɵɵelementContainer(0);
|
|
23236
|
-
}
|
|
23237
|
-
}
|
|
23238
|
-
function ReadLinkedCasesComponent_ng_container_15_Template(rf, ctx) {
|
|
23239
|
-
if (rf & 1) {
|
|
23240
|
-
i0__namespace.ɵɵelementContainer(0);
|
|
23241
|
-
}
|
|
23242
|
-
}
|
|
23243
|
-
function ReadLinkedCasesComponent_ng_template_16_Template(rf, ctx) {
|
|
23244
|
-
if (rf & 1) {
|
|
23245
|
-
var _r9_1 = i0__namespace.ɵɵgetCurrentView();
|
|
23246
|
-
i0__namespace.ɵɵelementStart(0, "div", 8);
|
|
23247
|
-
i0__namespace.ɵɵelementStart(1, "p", 9);
|
|
23248
|
-
i0__namespace.ɵɵtext(2);
|
|
23249
|
-
i0__namespace.ɵɵelementEnd();
|
|
23250
|
-
i0__namespace.ɵɵelementStart(3, "span", 10);
|
|
23251
|
-
i0__namespace.ɵɵelementStart(4, "a", 11);
|
|
23252
|
-
i0__namespace.ɵɵlistener("click", function ReadLinkedCasesComponent_ng_template_16_Template_a_click_4_listener() { i0__namespace.ɵɵrestoreView(_r9_1); var ctx_r8 = i0__namespace.ɵɵnextContext(); return ctx_r8.reloadCurrentRoute(); });
|
|
23253
|
-
i0__namespace.ɵɵtext(5, "Reload the Linked cases tab");
|
|
23254
|
-
i0__namespace.ɵɵelementEnd();
|
|
23255
|
-
i0__namespace.ɵɵelementEnd();
|
|
23256
|
-
i0__namespace.ɵɵelementEnd();
|
|
23257
|
-
}
|
|
23258
|
-
if (rf & 2) {
|
|
23259
|
-
var ctx_r5 = i0__namespace.ɵɵnextContext();
|
|
23260
|
-
i0__namespace.ɵɵadvance(2);
|
|
23261
|
-
i0__namespace.ɵɵtextInterpolate(ctx_r5.serverLinkedApiError.message);
|
|
23262
|
-
}
|
|
23263
|
-
}
|
|
23264
|
-
function ReadLinkedCasesComponent_ng_template_18_Template(rf, ctx) {
|
|
23265
|
-
if (rf & 1) {
|
|
23266
|
-
var _r11_1 = i0__namespace.ɵɵgetCurrentView();
|
|
23267
|
-
i0__namespace.ɵɵelementStart(0, "div", 8);
|
|
23268
|
-
i0__namespace.ɵɵelementStart(1, "p", 9);
|
|
23269
|
-
i0__namespace.ɵɵtext(2);
|
|
23270
|
-
i0__namespace.ɵɵelementEnd();
|
|
23271
|
-
i0__namespace.ɵɵelementStart(3, "span", 10);
|
|
23272
|
-
i0__namespace.ɵɵelementStart(4, "a", 11);
|
|
23273
|
-
i0__namespace.ɵɵlistener("click", function ReadLinkedCasesComponent_ng_template_18_Template_a_click_4_listener() { i0__namespace.ɵɵrestoreView(_r11_1); var ctx_r10 = i0__namespace.ɵɵnextContext(); return ctx_r10.reloadCurrentRoute(); });
|
|
23274
|
-
i0__namespace.ɵɵtext(5, "Reload the Linked cases tab");
|
|
23275
|
-
i0__namespace.ɵɵelementEnd();
|
|
23276
|
-
i0__namespace.ɵɵelementEnd();
|
|
23277
|
-
i0__namespace.ɵɵelementEnd();
|
|
23278
|
-
}
|
|
23279
|
-
if (rf & 2) {
|
|
23280
|
-
var ctx_r7 = i0__namespace.ɵɵnextContext();
|
|
23281
|
-
i0__namespace.ɵɵadvance(2);
|
|
23282
|
-
i0__namespace.ɵɵtextInterpolate(ctx_r7.serverError.message);
|
|
23283
|
-
}
|
|
23284
|
-
}
|
|
23285
|
-
var ReadLinkedCasesComponent = /** @class */ (function () {
|
|
23286
|
-
function ReadLinkedCasesComponent(router, linkedCasesService, appConfig, commonDataService) {
|
|
23287
|
-
this.router = router;
|
|
23288
|
-
this.linkedCasesService = linkedCasesService;
|
|
23289
|
-
this.appConfig = appConfig;
|
|
23290
|
-
this.commonDataService = commonDataService;
|
|
23291
|
-
this.reasonListLoaded = false;
|
|
23292
|
-
this.reload = false;
|
|
23293
|
-
this.serverError = null;
|
|
23294
|
-
this.serverLinkedApiError = null;
|
|
23295
|
-
this.isServerReasonCodeError = false;
|
|
23296
|
-
this.isServerJurisdictionError = false;
|
|
23297
|
-
this.isServerLinkedFromError = false;
|
|
23298
|
-
this.isServerLinkedToError = false;
|
|
23299
|
-
}
|
|
23300
|
-
ReadLinkedCasesComponent.prototype.ngOnInit = function () {
|
|
23301
|
-
var _this = this;
|
|
23302
|
-
this.isServerJurisdictionError = this.linkedCasesService.serverJurisdictionError || false;
|
|
23303
|
-
var reasonCodeAPIurl = this.appConfig.getRDCommonDataApiUrl() + '/lov/categories/CaseLinkingReasonCode';
|
|
23304
|
-
this.commonDataService.getRefData(reasonCodeAPIurl).subscribe({
|
|
23305
|
-
next: function (reasons) {
|
|
23306
|
-
_this.reasonListLoaded = true;
|
|
23307
|
-
_this.linkedCasesService.linkCaseReasons = reasons.list_of_values.sort(function (a, b) { return (a.value_en > b.value_en) ? 1 : -1; });
|
|
23308
|
-
},
|
|
23309
|
-
error: function (error) {
|
|
23310
|
-
_this.isServerReasonCodeError = true;
|
|
23311
|
-
_this.linkedCasesService.isServerReasonCodeError = true;
|
|
23312
|
-
}
|
|
23313
|
-
});
|
|
23314
|
-
this.serverLinkedApiError = {
|
|
23315
|
-
id: 'backendError', message: 'Some case information is not available at the moment'
|
|
23316
|
-
};
|
|
23317
|
-
this.serverError = {
|
|
23318
|
-
id: 'backendError', message: 'There has been a system error and your request could not be processed.'
|
|
23319
|
-
};
|
|
23320
|
-
};
|
|
23321
|
-
ReadLinkedCasesComponent.prototype.ngAfterViewInit = function () {
|
|
23322
|
-
this.linkedCasesService.caseFieldValue = this.caseField.value || [];
|
|
23323
|
-
var labelField = document.getElementsByClassName('govuk-heading-l');
|
|
23324
|
-
if (labelField && labelField.length) {
|
|
23325
|
-
labelField[0].replaceWith('');
|
|
23326
|
-
}
|
|
23327
|
-
labelField = document.getElementsByClassName('heading-h2');
|
|
23328
|
-
if (labelField && labelField.length) {
|
|
23329
|
-
labelField[0].replaceWith('');
|
|
23330
|
-
}
|
|
23331
|
-
labelField = document.getElementsByClassName('case-viewer-label');
|
|
23332
|
-
if (labelField && labelField.length) {
|
|
23333
|
-
labelField[0].replaceWith('');
|
|
23334
|
-
}
|
|
23335
|
-
};
|
|
23336
|
-
ReadLinkedCasesComponent.prototype.reloadCurrentRoute = function () {
|
|
23337
|
-
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseDetails.case_id]).then(function () {
|
|
23338
|
-
window.location.hash = 'Linked cases';
|
|
23339
|
-
});
|
|
23340
|
-
};
|
|
23341
|
-
ReadLinkedCasesComponent.prototype.getFailureLinkedToNotification = function (evt) {
|
|
23342
|
-
this.isServerLinkedToError = true;
|
|
23343
|
-
};
|
|
23344
|
-
ReadLinkedCasesComponent.prototype.getFailureLinkedFromNotification = function (evt) {
|
|
23345
|
-
this.isServerLinkedFromError = true;
|
|
23346
|
-
};
|
|
23347
|
-
return ReadLinkedCasesComponent;
|
|
23348
|
-
}());
|
|
23349
|
-
ReadLinkedCasesComponent.ɵfac = function ReadLinkedCasesComponent_Factory(t) { return new (t || ReadLinkedCasesComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(LinkedCasesService), i0__namespace.ɵɵdirectiveInject(AbstractAppConfig), i0__namespace.ɵɵdirectiveInject(CommonDataService)); };
|
|
23350
|
-
ReadLinkedCasesComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadLinkedCasesComponent, selectors: [["ccd-read-linked-cases"]], inputs: { caseField: "caseField" }, decls: 20, vars: 10, consts: [[1, "govuk-!-margin-bottom-2"], [1, "heading-h1"], [1, "table-sub-heading"], ["reloadPage", "reload", 3, "caseField", "notifyAPIFailure"], [4, "ngIf", "ngIfThen"], [1, "govuk-!-margin-top-8"], ["singleApiError", ""], ["multiApisError", ""], [1, "govuk-main-wrapper"], [1, "govuk-body"], [1, "govuk-body", "align-left"], ["href", "javascript:void(0)", "id", "reload-linked-cases-tab", 1, "govuk-link", 3, "click"]], template: function ReadLinkedCasesComponent_Template(rf, ctx) {
|
|
23351
|
-
if (rf & 1) {
|
|
23352
|
-
i0__namespace.ɵɵelementStart(0, "div");
|
|
23353
|
-
i0__namespace.ɵɵelementStart(1, "div", 0);
|
|
23354
|
-
i0__namespace.ɵɵelementStart(2, "h1", 1);
|
|
23355
|
-
i0__namespace.ɵɵtext(3, "Linked cases");
|
|
23356
|
-
i0__namespace.ɵɵelementEnd();
|
|
23357
|
-
i0__namespace.ɵɵelementStart(4, "label", 2);
|
|
23358
|
-
i0__namespace.ɵɵtext(5, "This case is linked to");
|
|
23359
|
-
i0__namespace.ɵɵelementEnd();
|
|
23360
|
-
i0__namespace.ɵɵelementStart(6, "ccd-linked-cases-to-table", 3);
|
|
23361
|
-
i0__namespace.ɵɵlistener("notifyAPIFailure", function ReadLinkedCasesComponent_Template_ccd_linked_cases_to_table_notifyAPIFailure_6_listener($event) { return ctx.getFailureLinkedToNotification($event); });
|
|
23362
|
-
i0__namespace.ɵɵelementEnd();
|
|
23363
|
-
i0__namespace.ɵɵtemplate(7, ReadLinkedCasesComponent_ng_container_7_Template, 1, 0, "ng-container", 4);
|
|
23364
|
-
i0__namespace.ɵɵtemplate(8, ReadLinkedCasesComponent_ng_container_8_Template, 1, 0, "ng-container", 4);
|
|
23365
|
-
i0__namespace.ɵɵelementEnd();
|
|
23366
|
-
i0__namespace.ɵɵelementStart(9, "div", 5);
|
|
23367
|
-
i0__namespace.ɵɵelementStart(10, "label", 2);
|
|
23368
|
-
i0__namespace.ɵɵtext(11, "This case is linked from");
|
|
23369
|
-
i0__namespace.ɵɵelementEnd();
|
|
23370
|
-
i0__namespace.ɵɵelement(12, "br");
|
|
23371
|
-
i0__namespace.ɵɵelementStart(13, "ccd-linked-cases-from-table", 3);
|
|
23372
|
-
i0__namespace.ɵɵlistener("notifyAPIFailure", function ReadLinkedCasesComponent_Template_ccd_linked_cases_from_table_notifyAPIFailure_13_listener($event) { return ctx.getFailureLinkedFromNotification($event); });
|
|
23373
|
-
i0__namespace.ɵɵelementEnd();
|
|
23374
|
-
i0__namespace.ɵɵtemplate(14, ReadLinkedCasesComponent_ng_container_14_Template, 1, 0, "ng-container", 4);
|
|
23375
|
-
i0__namespace.ɵɵtemplate(15, ReadLinkedCasesComponent_ng_container_15_Template, 1, 0, "ng-container", 4);
|
|
23376
|
-
i0__namespace.ɵɵelementEnd();
|
|
23377
|
-
i0__namespace.ɵɵelementEnd();
|
|
23378
|
-
i0__namespace.ɵɵtemplate(16, ReadLinkedCasesComponent_ng_template_16_Template, 6, 1, "ng-template", null, 6, i0__namespace.ɵɵtemplateRefExtractor);
|
|
23379
|
-
i0__namespace.ɵɵtemplate(18, ReadLinkedCasesComponent_ng_template_18_Template, 6, 1, "ng-template", null, 7, i0__namespace.ɵɵtemplateRefExtractor);
|
|
23380
|
-
}
|
|
23381
|
-
if (rf & 2) {
|
|
23382
|
-
var _r4 = i0__namespace.ɵɵreference(17);
|
|
23383
|
-
var _r6 = i0__namespace.ɵɵreference(19);
|
|
23384
|
-
i0__namespace.ɵɵadvance(6);
|
|
23385
|
-
i0__namespace.ɵɵproperty("caseField", ctx.caseField);
|
|
23386
|
-
i0__namespace.ɵɵadvance(1);
|
|
23387
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.isServerLinkedToError && ctx.isServerJurisdictionError && ctx.isServerReasonCodeError)("ngIfThen", _r6);
|
|
23388
|
-
i0__namespace.ɵɵadvance(1);
|
|
23389
|
-
i0__namespace.ɵɵproperty("ngIf", !(ctx.isServerLinkedToError && ctx.isServerJurisdictionError && ctx.isServerReasonCodeError) && (ctx.isServerLinkedToError || ctx.isServerJurisdictionError || ctx.isServerReasonCodeError))("ngIfThen", _r4);
|
|
23390
|
-
i0__namespace.ɵɵadvance(5);
|
|
23391
|
-
i0__namespace.ɵɵproperty("caseField", ctx.caseField);
|
|
23392
|
-
i0__namespace.ɵɵadvance(1);
|
|
23393
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.isServerLinkedFromError && ctx.isServerJurisdictionError && ctx.isServerReasonCodeError)("ngIfThen", _r6);
|
|
23394
|
-
i0__namespace.ɵɵadvance(1);
|
|
23395
|
-
i0__namespace.ɵɵproperty("ngIf", !(ctx.isServerLinkedFromError && ctx.isServerJurisdictionError && ctx.isServerReasonCodeError) && (ctx.isServerLinkedFromError || ctx.isServerJurisdictionError || ctx.isServerReasonCodeError))("ngIfThen", _r4);
|
|
23396
|
-
}
|
|
23397
|
-
}, styles: [".table-sub-heading[_ngcontent-%COMP%]{font-size:24px;font-weight:700}"] });
|
|
23398
|
-
(function () {
|
|
23399
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ReadLinkedCasesComponent, [{
|
|
23400
|
-
type: i0.Component,
|
|
23401
|
-
args: [{
|
|
23402
|
-
selector: 'ccd-read-linked-cases',
|
|
23403
|
-
templateUrl: './read-linked-cases.component.html',
|
|
23404
|
-
styleUrls: ['./read-linked-cases.component.scss']
|
|
23405
|
-
}]
|
|
23406
|
-
}], function () { return [{ type: i1__namespace$1.Router }, { type: LinkedCasesService }, { type: AbstractAppConfig }, { type: CommonDataService }]; }, { caseField: [{
|
|
23407
|
-
type: i0.Input
|
|
23408
|
-
}] });
|
|
23409
|
-
})();
|
|
23410
|
-
|
|
23411
|
-
var LinkCaseReason = /** @class */ (function () {
|
|
23412
|
-
function LinkCaseReason() {
|
|
23413
|
-
}
|
|
23414
|
-
return LinkCaseReason;
|
|
23415
|
-
}());
|
|
23416
|
-
var CCDCaseLinkType = /** @class */ (function () {
|
|
23417
|
-
function CCDCaseLinkType() {
|
|
23418
|
-
}
|
|
23419
|
-
return CCDCaseLinkType;
|
|
23420
|
-
}());
|
|
23421
|
-
var CaseLink = /** @class */ (function () {
|
|
23422
|
-
function CaseLink() {
|
|
23423
|
-
}
|
|
23424
|
-
return CaseLink;
|
|
23425
|
-
}());
|
|
23426
|
-
var LinkReason = /** @class */ (function () {
|
|
23427
|
-
function LinkReason() {
|
|
23428
|
-
}
|
|
23429
|
-
return LinkReason;
|
|
23430
|
-
}());
|
|
23431
|
-
var LinkedCasesResponse = /** @class */ (function () {
|
|
23432
|
-
function LinkedCasesResponse() {
|
|
23433
|
-
}
|
|
23434
|
-
return LinkedCasesResponse;
|
|
23435
|
-
}());
|
|
23436
|
-
var CaseLinkResponse = /** @class */ (function () {
|
|
23437
|
-
function CaseLinkResponse() {
|
|
23438
|
-
}
|
|
23439
|
-
return CaseLinkResponse;
|
|
23440
|
-
}());
|
|
23441
|
-
var LinkDetails = /** @class */ (function () {
|
|
23442
|
-
function LinkDetails() {
|
|
23443
|
-
}
|
|
23444
|
-
return LinkDetails;
|
|
23445
|
-
}());
|
|
23446
|
-
var Terms = /** @class */ (function () {
|
|
23447
|
-
function Terms() {
|
|
23448
|
-
}
|
|
23449
|
-
return Terms;
|
|
23450
|
-
}());
|
|
23451
|
-
var ESQueryType = /** @class */ (function () {
|
|
23452
|
-
function ESQueryType() {
|
|
23453
|
-
}
|
|
23454
|
-
return ESQueryType;
|
|
23455
|
-
}());
|
|
23456
|
-
|
|
23457
20927
|
var CollectionCreateCheckerService = /** @class */ (function () {
|
|
23458
20928
|
function CollectionCreateCheckerService() {
|
|
23459
20929
|
}
|
|
@@ -25579,7 +23049,6 @@
|
|
|
25579
23049
|
ReadComplexFieldTableComponent,
|
|
25580
23050
|
ReadComplexFieldCollectionTableComponent,
|
|
25581
23051
|
ReadCaseFlagFieldComponent,
|
|
25582
|
-
ReadLinkedCasesComponent,
|
|
25583
23052
|
// Write
|
|
25584
23053
|
WriteJudicialUserFieldComponent,
|
|
25585
23054
|
WriteAddressFieldComponent,
|
|
@@ -25615,15 +23084,7 @@
|
|
|
25615
23084
|
CaseFileViewFolderSortComponent,
|
|
25616
23085
|
CaseFileViewOverlayMenuComponent,
|
|
25617
23086
|
CaseFileViewFolderDocumentActionsComponent,
|
|
25618
|
-
CaseFileViewFolderSelectorComponent
|
|
25619
|
-
LinkedCasesToTableComponent,
|
|
25620
|
-
LinkedCasesFromTableComponent,
|
|
25621
|
-
BeforeYouStartComponent,
|
|
25622
|
-
LinkCasesComponent,
|
|
25623
|
-
CheckYourAnswersComponent,
|
|
25624
|
-
WriteLinkedCasesComponent,
|
|
25625
|
-
UnLinkCasesComponent,
|
|
25626
|
-
NoLinkedCasesComponent
|
|
23087
|
+
CaseFileViewFolderSelectorComponent
|
|
25627
23088
|
];
|
|
25628
23089
|
var PaletteModule = /** @class */ (function () {
|
|
25629
23090
|
function PaletteModule() {
|
|
@@ -25642,7 +23103,6 @@
|
|
|
25642
23103
|
FileUploadStateService,
|
|
25643
23104
|
FileUploadProgressGuard,
|
|
25644
23105
|
WindowService,
|
|
25645
|
-
LinkedCasesService,
|
|
25646
23106
|
CommonDataService,
|
|
25647
23107
|
JurisdictionService,
|
|
25648
23108
|
{ provide: i6.MAT_DATE_LOCALE, useValue: 'en-GB' }
|
|
@@ -25676,7 +23136,7 @@
|
|
|
25676
23136
|
i1$4.OverlayModule,
|
|
25677
23137
|
i1$3.MatDialogModule,
|
|
25678
23138
|
LoadingModule,
|
|
25679
|
-
|
|
23139
|
+
i12.MediaViewerModule
|
|
25680
23140
|
], i4.NgxMatDatetimePickerModule,
|
|
25681
23141
|
i4.NgxMatNativeDateModule,
|
|
25682
23142
|
i4.NgxMatTimepickerModule,
|
|
@@ -25739,7 +23199,6 @@
|
|
|
25739
23199
|
ReadComplexFieldTableComponent,
|
|
25740
23200
|
ReadComplexFieldCollectionTableComponent,
|
|
25741
23201
|
ReadCaseFlagFieldComponent,
|
|
25742
|
-
ReadLinkedCasesComponent,
|
|
25743
23202
|
// Write
|
|
25744
23203
|
WriteJudicialUserFieldComponent,
|
|
25745
23204
|
WriteAddressFieldComponent,
|
|
@@ -25775,15 +23234,7 @@
|
|
|
25775
23234
|
CaseFileViewFolderSortComponent,
|
|
25776
23235
|
CaseFileViewOverlayMenuComponent,
|
|
25777
23236
|
CaseFileViewFolderDocumentActionsComponent,
|
|
25778
|
-
CaseFileViewFolderSelectorComponent,
|
|
25779
|
-
LinkedCasesToTableComponent,
|
|
25780
|
-
LinkedCasesFromTableComponent,
|
|
25781
|
-
BeforeYouStartComponent,
|
|
25782
|
-
LinkCasesComponent,
|
|
25783
|
-
CheckYourAnswersComponent,
|
|
25784
|
-
WriteLinkedCasesComponent,
|
|
25785
|
-
UnLinkCasesComponent,
|
|
25786
|
-
NoLinkedCasesComponent], imports: [i2.CommonModule,
|
|
23237
|
+
CaseFileViewFolderSelectorComponent], imports: [i2.CommonModule,
|
|
25787
23238
|
i1$1.RouterModule,
|
|
25788
23239
|
i2$1.FormsModule,
|
|
25789
23240
|
i2$1.ReactiveFormsModule,
|
|
@@ -25809,7 +23260,7 @@
|
|
|
25809
23260
|
i1$4.OverlayModule,
|
|
25810
23261
|
i1$3.MatDialogModule,
|
|
25811
23262
|
LoadingModule,
|
|
25812
|
-
|
|
23263
|
+
i12.MediaViewerModule], exports: [i4.NgxMatDatetimePickerModule,
|
|
25813
23264
|
i4.NgxMatNativeDateModule,
|
|
25814
23265
|
i4.NgxMatTimepickerModule,
|
|
25815
23266
|
TabsModule,
|
|
@@ -25857,7 +23308,6 @@
|
|
|
25857
23308
|
ReadComplexFieldTableComponent,
|
|
25858
23309
|
ReadComplexFieldCollectionTableComponent,
|
|
25859
23310
|
ReadCaseFlagFieldComponent,
|
|
25860
|
-
ReadLinkedCasesComponent,
|
|
25861
23311
|
// Write
|
|
25862
23312
|
WriteJudicialUserFieldComponent,
|
|
25863
23313
|
WriteAddressFieldComponent,
|
|
@@ -25893,15 +23343,7 @@
|
|
|
25893
23343
|
CaseFileViewFolderSortComponent,
|
|
25894
23344
|
CaseFileViewOverlayMenuComponent,
|
|
25895
23345
|
CaseFileViewFolderDocumentActionsComponent,
|
|
25896
|
-
CaseFileViewFolderSelectorComponent
|
|
25897
|
-
LinkedCasesToTableComponent,
|
|
25898
|
-
LinkedCasesFromTableComponent,
|
|
25899
|
-
BeforeYouStartComponent,
|
|
25900
|
-
LinkCasesComponent,
|
|
25901
|
-
CheckYourAnswersComponent,
|
|
25902
|
-
WriteLinkedCasesComponent,
|
|
25903
|
-
UnLinkCasesComponent,
|
|
25904
|
-
NoLinkedCasesComponent] });
|
|
23346
|
+
CaseFileViewFolderSelectorComponent] });
|
|
25905
23347
|
})();
|
|
25906
23348
|
(function () {
|
|
25907
23349
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PaletteModule, [{
|
|
@@ -25937,7 +23379,7 @@
|
|
|
25937
23379
|
i1$4.OverlayModule,
|
|
25938
23380
|
i1$3.MatDialogModule,
|
|
25939
23381
|
LoadingModule,
|
|
25940
|
-
|
|
23382
|
+
i12.MediaViewerModule
|
|
25941
23383
|
],
|
|
25942
23384
|
declarations: __spread([
|
|
25943
23385
|
FixedListPipe,
|
|
@@ -25972,7 +23414,6 @@
|
|
|
25972
23414
|
FileUploadStateService,
|
|
25973
23415
|
FileUploadProgressGuard,
|
|
25974
23416
|
WindowService,
|
|
25975
|
-
LinkedCasesService,
|
|
25976
23417
|
CommonDataService,
|
|
25977
23418
|
JurisdictionService,
|
|
25978
23419
|
{ provide: i6.MAT_DATE_LOCALE, useValue: 'en-GB' }
|
|
@@ -25991,7 +23432,6 @@
|
|
|
25991
23432
|
i0__namespace.ɵɵsetComponentScope(ReadOrderSummaryFieldComponent, [i2__namespace.NgForOf, ReadOrderSummaryRowComponent,
|
|
25992
23433
|
ReadMoneyGbpFieldComponent], [i1__namespace.RpxTranslatePipe]);
|
|
25993
23434
|
i0__namespace.ɵɵsetComponentScope(ReadOrderSummaryRowComponent, [ReadMoneyGbpFieldComponent], [i1__namespace.RpxTranslatePipe]);
|
|
25994
|
-
i0__namespace.ɵɵsetComponentScope(ReadCaseLinkFieldComponent, [i2__namespace.NgIf, ReadLinkedCasesComponent], [CaseReferencePipe]);
|
|
25995
23435
|
i0__namespace.ɵɵsetComponentScope(ReadComplexFieldComponent, [i2__namespace.NgSwitch, i2__namespace.NgSwitchCase, ReadComplexFieldRawComponent,
|
|
25996
23436
|
ReadComplexFieldCollectionTableComponent, i2__namespace.NgSwitchDefault, ReadComplexFieldTableComponent], []);
|
|
25997
23437
|
i0__namespace.ɵɵsetComponentScope(ReadComplexFieldRawComponent, [i2__namespace.NgForOf, FieldReadComponent], [ReadFieldsFilterPipe, i1__namespace.RpxTranslatePipe]);
|
|
@@ -25999,7 +23439,6 @@
|
|
|
25999
23439
|
i0__namespace.ɵɵsetComponentScope(ReadComplexFieldCollectionTableComponent, [i2__namespace.NgForOf, i2__namespace.NgIf, FieldReadComponent,
|
|
26000
23440
|
ReadCaseLinkFieldComponent], [i1__namespace.RpxTranslatePipe, ReadFieldsFilterPipe, CcdCollectionTableCaseFieldsFilterPipe, i2__namespace.KeyValuePipe, IsCompoundPipe]);
|
|
26001
23441
|
i0__namespace.ɵɵsetComponentScope(ReadCaseFlagFieldComponent, [i2__namespace.NgSwitch, i2__namespace.NgSwitchCase, CaseFlagSummaryListComponent, i2__namespace.NgSwitchDefault, i2__namespace.NgForOf, i2__namespace.NgIf, CaseFlagTableComponent], [i1__namespace.RpxTranslatePipe]);
|
|
26002
|
-
i0__namespace.ɵɵsetComponentScope(ReadLinkedCasesComponent, [LinkedCasesToTableComponent, i2__namespace.NgIf, LinkedCasesFromTableComponent], []);
|
|
26003
23442
|
i0__namespace.ɵɵsetComponentScope(WriteAddressFieldComponent, [i2__namespace.NgIf, i2__namespace.NgClass, i2__namespace$1.DefaultValueAccessor, i2__namespace$1.NgControlStatus, i2__namespace$1.FormControlDirective, i2__namespace$1.SelectControlValueAccessor, i2__namespace.NgForOf, i2__namespace$1.NgSelectOption, i2__namespace$1.ɵangular_packages_forms_forms_z, WriteComplexFieldComponent, i2__namespace$1.NgControlStatusGroup, i2__namespace$1.FormGroupDirective], [i1__namespace.RpxTranslatePipe, FieldLabelPipe]);
|
|
26004
23443
|
i0__namespace.ɵɵsetComponentScope(WriteComplexFieldComponent, [i2__namespace.NgIf, i2__namespace.NgForOf, i2__namespace.NgSwitch, i2__namespace.NgSwitchCase, FieldReadComponent, LabelSubstitutorDirective, i2__namespace$1.NgControlStatusGroup, i2__namespace$1.FormGroupDirective, FieldWriteComponent], [i1__namespace.RpxTranslatePipe, FieldLabelPipe, IsReadOnlyPipe]);
|
|
26005
23444
|
i0__namespace.ɵɵsetComponentScope(WriteDocumentFieldComponent, [i2__namespace.NgClass, i2__namespace.NgIf, ReadDocumentFieldComponent], [FieldLabelPipe, i1__namespace.RpxTranslatePipe]);
|
|
@@ -26014,21 +23453,11 @@
|
|
|
26014
23453
|
WriteOrganisationComplexFieldComponent], [i2__namespace.AsyncPipe, i1__namespace.RpxTranslatePipe]);
|
|
26015
23454
|
i0__namespace.ɵɵsetComponentScope(WriteOrderSummaryFieldComponent, [ReadOrderSummaryFieldComponent], []);
|
|
26016
23455
|
i0__namespace.ɵɵsetComponentScope(WriteDateContainerFieldComponent, [i2__namespace.NgIf, DatetimePickerComponent, i2__namespace$1.NgControlStatusGroup, i2__namespace$1.FormGroupDirective, WriteDateFieldComponent], []);
|
|
26017
|
-
i0__namespace.ɵɵsetComponentScope(WriteCaseLinkFieldComponent, [i2__namespace.NgIf, i2__namespace$1.DefaultValueAccessor, i2__namespace$1.NgControlStatus, i2__namespace$1.FormControlDirective, WriteLinkedCasesComponent, i2__namespace$1.NgControlStatusGroup, i2__namespace$1.FormGroupDirective], [i1__namespace.RpxTranslatePipe, FieldLabelPipe]);
|
|
26018
23456
|
i0__namespace.ɵɵsetComponentScope(WriteCollectionFieldComponent, [i2__namespace.NgIf, i2__namespace.NgForOf, FieldWriteComponent, i2__namespace$1.NgControlStatusGroup, i2__namespace$1.FormGroupDirective], [i1__namespace.RpxTranslatePipe, FieldLabelPipe, FirstErrorPipe]);
|
|
26019
23457
|
i0__namespace.ɵɵsetComponentScope(
|
|
26020
23458
|
// ComponentLauncher web components
|
|
26021
|
-
CaseFileViewFieldComponent, [i2__namespace.NgIf, CaseFileViewFolderComponent,
|
|
26022
|
-
i0__namespace.ɵɵsetComponentScope(CaseFileViewFieldReadComponent, [i2__namespace.NgIf, CaseFileViewFolderComponent,
|
|
26023
|
-
i0__namespace.ɵɵsetComponentScope(LinkedCasesToTableComponent, [i2__namespace.NgIf, i2__namespace.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
|
|
26024
|
-
i0__namespace.ɵɵsetComponentScope(LinkedCasesFromTableComponent, [i2__namespace.NgIf, i2__namespace.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
|
|
26025
|
-
i0__namespace.ɵɵsetComponentScope(LinkCasesComponent, [i2__namespace.NgIf, i2__namespace$1.NgControlStatusGroup, i2__namespace$1.FormGroupDirective, i2__namespace.NgClass, i2__namespace$1.DefaultValueAccessor, i2__namespace$1.NgControlStatus, i2__namespace$1.FormControlName, i2__namespace$1.FormArrayName, i2__namespace.NgForOf, i2__namespace$1.FormGroupName, i2__namespace$1.CheckboxControlValueAccessor], [CaseReferencePipe, LinkCasesReasonValuePipe]);
|
|
26026
|
-
i0__namespace.ɵɵsetComponentScope(CheckYourAnswersComponent, [i2__namespace.NgIf, i2__namespace.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
|
|
26027
|
-
i0__namespace.ɵɵsetComponentScope(WriteLinkedCasesComponent, [i2__namespace.NgIf, i2__namespace.NgForOf, i2__namespace$1.NgControlStatusGroup, i2__namespace$1.FormGroupDirective, i2__namespace.NgSwitch, i2__namespace.NgSwitchCase, BeforeYouStartComponent,
|
|
26028
|
-
NoLinkedCasesComponent,
|
|
26029
|
-
LinkCasesComponent,
|
|
26030
|
-
UnLinkCasesComponent,
|
|
26031
|
-
CheckYourAnswersComponent], []);
|
|
23459
|
+
CaseFileViewFieldComponent, [i2__namespace.NgIf, CaseFileViewFolderComponent, i12__namespace.ɵcs], []);
|
|
23460
|
+
i0__namespace.ɵɵsetComponentScope(CaseFileViewFieldReadComponent, [i2__namespace.NgIf, CaseFileViewFolderComponent, i12__namespace.ɵcs], []);
|
|
26032
23461
|
|
|
26033
23462
|
var Confirmation = /** @class */ (function () {
|
|
26034
23463
|
function Confirmation(caseId, status, header, body) {
|
|
@@ -30866,7 +28295,7 @@
|
|
|
30866
28295
|
if (rf & 1) {
|
|
30867
28296
|
i0__namespace.ɵɵelementStart(0, "tr");
|
|
30868
28297
|
i0__namespace.ɵɵtemplate(1, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_2_ng_container_3_tr_4_th_1_Template, 4, 3, "th", 32);
|
|
30869
|
-
i0__namespace.ɵɵelementStart(2, "
|
|
28298
|
+
i0__namespace.ɵɵelementStart(2, "td", 33);
|
|
30870
28299
|
i0__namespace.ɵɵelementStart(3, "span", 34);
|
|
30871
28300
|
i0__namespace.ɵɵelement(4, "ccd-field-read", 35);
|
|
30872
28301
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -36371,10 +33800,8 @@
|
|
|
36371
33800
|
exports.AuthService = AuthService;
|
|
36372
33801
|
exports.Banner = Banner;
|
|
36373
33802
|
exports.BannersService = BannersService;
|
|
36374
|
-
exports.BeforeYouStartComponent = BeforeYouStartComponent;
|
|
36375
33803
|
exports.BodyComponent = BodyComponent;
|
|
36376
33804
|
exports.BrowserService = BrowserService;
|
|
36377
|
-
exports.CCDCaseLinkType = CCDCaseLinkType;
|
|
36378
33805
|
exports.CallbackErrorsComponent = CallbackErrorsComponent;
|
|
36379
33806
|
exports.CallbackErrorsContext = CallbackErrorsContext;
|
|
36380
33807
|
exports.CaseAccessUtils = CaseAccessUtils;
|
|
@@ -36414,8 +33841,6 @@
|
|
|
36414
33841
|
exports.CaseHeaderComponent = CaseHeaderComponent;
|
|
36415
33842
|
exports.CaseHeaderModule = CaseHeaderModule;
|
|
36416
33843
|
exports.CaseHistoryViewerFieldComponent = CaseHistoryViewerFieldComponent;
|
|
36417
|
-
exports.CaseLink = CaseLink;
|
|
36418
|
-
exports.CaseLinkResponse = CaseLinkResponse;
|
|
36419
33844
|
exports.CaseListComponent = CaseListComponent;
|
|
36420
33845
|
exports.CaseListFiltersComponent = CaseListFiltersComponent;
|
|
36421
33846
|
exports.CaseListFiltersModule = CaseListFiltersModule;
|
|
@@ -36448,7 +33873,6 @@
|
|
|
36448
33873
|
exports.CcdCollectionTableCaseFieldsFilterPipe = CcdCollectionTableCaseFieldsFilterPipe;
|
|
36449
33874
|
exports.CcdPageFieldsPipe = CcdPageFieldsPipe;
|
|
36450
33875
|
exports.CcdTabFieldsPipe = CcdTabFieldsPipe;
|
|
36451
|
-
exports.CheckYourAnswersComponent = CheckYourAnswersComponent;
|
|
36452
33876
|
exports.ConditionalShowFormDirective = ConditionalShowFormDirective;
|
|
36453
33877
|
exports.ConditionalShowModule = ConditionalShowModule;
|
|
36454
33878
|
exports.ConditionalShowRegistrarService = ConditionalShowRegistrarService;
|
|
@@ -36478,7 +33902,6 @@
|
|
|
36478
33902
|
exports.DraftService = DraftService;
|
|
36479
33903
|
exports.DynamicListPipe = DynamicListPipe;
|
|
36480
33904
|
exports.DynamicRadioListPipe = DynamicRadioListPipe;
|
|
36481
|
-
exports.ESQueryType = ESQueryType;
|
|
36482
33905
|
exports.Embedded = Embedded;
|
|
36483
33906
|
exports.ErrorMessageComponent = ErrorMessageComponent;
|
|
36484
33907
|
exports.ErrorNotifierService = ErrorNotifierService;
|
|
@@ -36536,14 +33959,6 @@
|
|
|
36536
33959
|
exports.LabelFieldComponent = LabelFieldComponent;
|
|
36537
33960
|
exports.LabelSubstitutorDirective = LabelSubstitutorDirective;
|
|
36538
33961
|
exports.LabelSubstitutorModule = LabelSubstitutorModule;
|
|
36539
|
-
exports.LinkCaseReason = LinkCaseReason;
|
|
36540
|
-
exports.LinkCasesComponent = LinkCasesComponent;
|
|
36541
|
-
exports.LinkCasesReasonValuePipe = LinkCasesReasonValuePipe;
|
|
36542
|
-
exports.LinkDetails = LinkDetails;
|
|
36543
|
-
exports.LinkReason = LinkReason;
|
|
36544
|
-
exports.LinkedCasesFromTableComponent = LinkedCasesFromTableComponent;
|
|
36545
|
-
exports.LinkedCasesResponse = LinkedCasesResponse;
|
|
36546
|
-
exports.LinkedCasesToTableComponent = LinkedCasesToTableComponent;
|
|
36547
33962
|
exports.LoadingModule = LoadingModule;
|
|
36548
33963
|
exports.LoadingService = LoadingService;
|
|
36549
33964
|
exports.LoadingSpinnerComponent = LoadingSpinnerComponent;
|
|
@@ -36557,7 +33972,6 @@
|
|
|
36557
33972
|
exports.NavigationComponent = NavigationComponent;
|
|
36558
33973
|
exports.NavigationItemComponent = NavigationItemComponent;
|
|
36559
33974
|
exports.NavigationNotifierService = NavigationNotifierService;
|
|
36560
|
-
exports.NoLinkedCasesComponent = NoLinkedCasesComponent;
|
|
36561
33975
|
exports.NoTasksAvailableComponent = NoTasksAvailableComponent;
|
|
36562
33976
|
exports.NotificationBannerComponent = NotificationBannerComponent;
|
|
36563
33977
|
exports.OrderService = OrderService;
|
|
@@ -36594,7 +34008,6 @@
|
|
|
36594
34008
|
exports.ReadFixedListFieldComponent = ReadFixedListFieldComponent;
|
|
36595
34009
|
exports.ReadFixedRadioListFieldComponent = ReadFixedRadioListFieldComponent;
|
|
36596
34010
|
exports.ReadJudicialUserFieldComponent = ReadJudicialUserFieldComponent;
|
|
36597
|
-
exports.ReadLinkedCasesComponent = ReadLinkedCasesComponent;
|
|
36598
34011
|
exports.ReadMoneyGbpFieldComponent = ReadMoneyGbpFieldComponent;
|
|
36599
34012
|
exports.ReadMultiSelectListFieldComponent = ReadMultiSelectListFieldComponent;
|
|
36600
34013
|
exports.ReadNumberFieldComponent = ReadNumberFieldComponent;
|
|
@@ -36638,9 +34051,7 @@
|
|
|
36638
34051
|
exports.TaskCancelledComponent = TaskCancelledComponent;
|
|
36639
34052
|
exports.TaskConflictComponent = TaskConflictComponent;
|
|
36640
34053
|
exports.TaskUnassignedComponent = TaskUnassignedComponent;
|
|
36641
|
-
exports.Terms = Terms;
|
|
36642
34054
|
exports.TestRouteSnapshotBuilder = TestRouteSnapshotBuilder;
|
|
36643
|
-
exports.UnLinkCasesComponent = UnLinkCasesComponent;
|
|
36644
34055
|
exports.UnsupportedFieldComponent = UnsupportedFieldComponent;
|
|
36645
34056
|
exports.UpdateFlagComponent = UpdateFlagComponent;
|
|
36646
34057
|
exports.WaysToPayFieldComponent = WaysToPayFieldComponent;
|
|
@@ -36669,7 +34080,6 @@
|
|
|
36669
34080
|
exports.WriteFixedListFieldComponent = WriteFixedListFieldComponent;
|
|
36670
34081
|
exports.WriteFixedRadioListFieldComponent = WriteFixedRadioListFieldComponent;
|
|
36671
34082
|
exports.WriteJudicialUserFieldComponent = WriteJudicialUserFieldComponent;
|
|
36672
|
-
exports.WriteLinkedCasesComponent = WriteLinkedCasesComponent;
|
|
36673
34083
|
exports.WriteMoneyGbpFieldComponent = WriteMoneyGbpFieldComponent;
|
|
36674
34084
|
exports.WriteMultiSelectListFieldComponent = WriteMultiSelectListFieldComponent;
|
|
36675
34085
|
exports.WriteNumberFieldComponent = WriteNumberFieldComponent;
|