@hmcts/ccd-case-ui-toolkit 6.10.7-case-flags-create-change-links → 6.10.7-cfv-move-document-handle-error
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 +810 -986
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
- package/esm2015/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.js +1 -1
- package/esm2015/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.js +31 -41
- package/esm2015/lib/shared/components/case-editor/case-editor.module.js +3 -6
- package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.js +60 -26
- package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field.component.js +76 -29
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.js +2 -1
- package/esm2015/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu.component.js +1 -1
- package/esm2015/lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.js +3 -5
- package/esm2015/lib/shared/components/palette/case-flag/components/case-flag-summary-list/case-flag-summary-list.component.js +20 -70
- package/esm2015/lib/shared/components/palette/case-flag/components/case-flag-table/case-flag-table.component.js +8 -16
- package/esm2015/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter.component.js +18 -18
- package/esm2015/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.js +5 -9
- package/esm2015/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.js +92 -119
- package/esm2015/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.js +64 -106
- package/esm2015/lib/shared/components/palette/case-flag/domain/case-flag-state.model.js +1 -1
- package/esm2015/lib/shared/components/palette/case-flag/enums/case-flag-status.enum.js +1 -2
- package/esm2015/lib/shared/components/palette/case-flag/enums/update-flag-step.enum.js +3 -4
- package/esm2015/lib/shared/components/palette/case-flag/read-case-flag-field.component.js +14 -30
- package/esm2015/lib/shared/components/palette/case-flag/write-case-flag-field.component.js +68 -55
- package/esm2015/lib/shared/components/palette/palette.module.js +3 -3
- package/esm2015/lib/shared/domain/case-flag/flag-type.model.js +1 -16
- package/esm2015/lib/shared/pipes/index.js +1 -2
- package/esm2015/lib/shared/pipes/pipes.module.js +5 -9
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +574 -708
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-editor.module.d.ts.map +1 -1
- package/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts +2 -0
- package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts +4 -1
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.d.ts +0 -1
- package/lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/case-flag-summary-list/case-flag-summary-list.component.d.ts +3 -6
- package/lib/shared/components/palette/case-flag/components/case-flag-summary-list/case-flag-summary-list.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter.component.d.ts +3 -3
- package/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.d.ts +3 -4
- package/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.d.ts +5 -7
- package/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/domain/case-flag-state.model.d.ts +10 -1
- package/lib/shared/components/palette/case-flag/domain/case-flag-state.model.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/enums/case-flag-status.enum.d.ts +1 -2
- package/lib/shared/components/palette/case-flag/enums/case-flag-status.enum.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/enums/update-flag-step.enum.d.ts +2 -3
- package/lib/shared/components/palette/case-flag/enums/update-flag-step.enum.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/read-case-flag-field.component.d.ts +2 -5
- package/lib/shared/components/palette/case-flag/read-case-flag-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/write-case-flag-field.component.d.ts +22 -14
- package/lib/shared/components/palette/case-flag/write-case-flag-field.component.d.ts.map +1 -1
- package/lib/shared/domain/case-flag/flag-type.model.d.ts +0 -1
- package/lib/shared/domain/case-flag/flag-type.model.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/package.json +1 -1
- package/esm2015/lib/shared/components/case-editor/services/case-flag-state.service.js +0 -17
- package/esm2015/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter-control-names.enum.js +0 -6
- package/esm2015/lib/shared/pipes/generic/enum-display-description/enum-display-description.pipe.js +0 -16
- package/esm2015/lib/shared/pipes/generic/index.js +0 -2
- package/lib/shared/components/case-editor/services/case-flag-state.service.d.ts +0 -9
- package/lib/shared/components/case-editor/services/case-flag-state.service.d.ts.map +0 -1
- package/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter-control-names.enum.d.ts +0 -5
- package/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter-control-names.enum.d.ts.map +0 -1
- package/lib/shared/pipes/generic/enum-display-description/enum-display-description.pipe.d.ts +0 -8
- package/lib/shared/pipes/generic/enum-display-description/enum-display-description.pipe.d.ts.map +0 -1
- package/lib/shared/pipes/generic/index.d.ts +0 -2
- package/lib/shared/pipes/generic/index.d.ts.map +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('@angular/forms'), require('rx-polling'), require('rxjs'), require('@angular/common/http'), require('rxjs/operators'), require('class-transformer'), require('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', '@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
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.hmcts = global.hmcts || {}, global.hmcts["ccd-case-ui-toolkit"] = {}), global.ng.core, global.ng.common, global.ng.router, global.ng.forms, global["rx-polling"], global.rxjs, global.ng.common.http, global.rxjs.operators, global["class-transformer"], global.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.i11, 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, i1, i1$1,
|
|
5
|
+
})(this, (function (exports, i0, i1, i1$1, i2, polling, rxjs, i1$2, operators, classTransformer, _, moment, util, fsm, i1$3, i4, i1$4, i7, i5, i6, i5$1, i6$1, i3$1, i3, i11, i2$1, i1$5, momentAdapter, i6$2, i1$6, i9) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
28
28
|
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
29
29
|
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
30
|
-
var
|
|
30
|
+
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
31
31
|
var polling__default = /*#__PURE__*/_interopDefaultLegacy(polling);
|
|
32
|
-
var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$
|
|
32
|
+
var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
|
|
33
33
|
var ___namespace = /*#__PURE__*/_interopNamespace(_);
|
|
34
34
|
var moment__namespace = /*#__PURE__*/_interopNamespace(moment);
|
|
35
|
-
var i1__namespace$
|
|
35
|
+
var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$3);
|
|
36
36
|
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
37
|
-
var i1__namespace$
|
|
37
|
+
var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$4);
|
|
38
38
|
var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
|
|
39
39
|
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
40
40
|
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
|
|
44
44
|
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
45
45
|
var i11__namespace = /*#__PURE__*/_interopNamespace(i11);
|
|
46
|
-
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
47
|
-
var i1__namespace$
|
|
46
|
+
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
47
|
+
var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$5);
|
|
48
48
|
var i6__namespace$2 = /*#__PURE__*/_interopNamespace(i6$2);
|
|
49
|
-
var i1__namespace$
|
|
49
|
+
var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1$6);
|
|
50
50
|
var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
|
|
51
51
|
|
|
52
52
|
function FooterComponent_div_2_Template(rf, ctx) {
|
|
@@ -119,14 +119,14 @@
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
var _c0$Y = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
|
|
122
|
-
var _c1$
|
|
122
|
+
var _c1$r = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
|
|
123
123
|
var FooterComponent = /** @class */ (function () {
|
|
124
124
|
function FooterComponent() {
|
|
125
125
|
}
|
|
126
126
|
return FooterComponent;
|
|
127
127
|
}());
|
|
128
128
|
FooterComponent.ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
|
|
129
|
-
FooterComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$
|
|
129
|
+
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) {
|
|
130
130
|
if (rf & 1) {
|
|
131
131
|
i0__namespace.ɵɵprojectionDef(_c0$Y);
|
|
132
132
|
i0__namespace.ɵɵelementStart(0, "footer", 0);
|
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
var _c0$X = [[["", "headerNavigation", ""]]];
|
|
211
|
-
var _c1$
|
|
211
|
+
var _c1$q = ["[headerNavigation]"];
|
|
212
212
|
var HeaderBarComponent = /** @class */ (function () {
|
|
213
213
|
function HeaderBarComponent() {
|
|
214
214
|
this.signOutRequest = new i0.EventEmitter();
|
|
@@ -219,7 +219,7 @@
|
|
|
219
219
|
return HeaderBarComponent;
|
|
220
220
|
}());
|
|
221
221
|
HeaderBarComponent.ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
|
|
222
|
-
HeaderBarComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$
|
|
222
|
+
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: 15, vars: 8, 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) {
|
|
223
223
|
if (rf & 1) {
|
|
224
224
|
i0__namespace.ɵɵprojectionDef(_c0$X);
|
|
225
225
|
i0__namespace.ɵɵelementStart(0, "header", 0);
|
|
@@ -283,14 +283,14 @@
|
|
|
283
283
|
})();
|
|
284
284
|
|
|
285
285
|
var _c0$W = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
|
|
286
|
-
var _c1$
|
|
286
|
+
var _c1$p = ["[leftNavLinks]", "[rightNavLinks]"];
|
|
287
287
|
var NavigationComponent = /** @class */ (function () {
|
|
288
288
|
function NavigationComponent() {
|
|
289
289
|
}
|
|
290
290
|
return NavigationComponent;
|
|
291
291
|
}());
|
|
292
292
|
NavigationComponent.ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(); };
|
|
293
|
-
NavigationComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$
|
|
293
|
+
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) {
|
|
294
294
|
if (rf & 1) {
|
|
295
295
|
i0__namespace.ɵɵprojectionDef(_c0$W);
|
|
296
296
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
@@ -438,14 +438,14 @@
|
|
|
438
438
|
})();
|
|
439
439
|
|
|
440
440
|
var _c0$V = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
|
|
441
|
-
var _c1$
|
|
441
|
+
var _c1$o = ["[topBody]", "[leftBody]", "[rightBody]"];
|
|
442
442
|
var BodyComponent = /** @class */ (function () {
|
|
443
443
|
function BodyComponent() {
|
|
444
444
|
}
|
|
445
445
|
return BodyComponent;
|
|
446
446
|
}());
|
|
447
447
|
BodyComponent.ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
|
|
448
|
-
BodyComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$
|
|
448
|
+
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) {
|
|
449
449
|
if (rf & 1) {
|
|
450
450
|
i0__namespace.ɵɵprojectionDef(_c0$V);
|
|
451
451
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
@@ -1040,12 +1040,12 @@
|
|
|
1040
1040
|
DateInputComponent.ɵfac = function DateInputComponent_Factory(t) { return new (t || DateInputComponent)(); };
|
|
1041
1041
|
DateInputComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: DateInputComponent, selectors: [["cut-date-input"]], inputs: { id: "id", mandatory: "mandatory", isDateTime: "isDateTime", formControl: "formControl", isInvalid: "isInvalid" }, features: [i0__namespace.ɵɵProvidersFeature([
|
|
1042
1042
|
{
|
|
1043
|
-
provide:
|
|
1043
|
+
provide: i2.NG_VALUE_ACCESSOR,
|
|
1044
1044
|
useExisting: i0.forwardRef(function () { return DateInputComponent; }),
|
|
1045
1045
|
multi: true
|
|
1046
1046
|
},
|
|
1047
1047
|
{
|
|
1048
|
-
provide:
|
|
1048
|
+
provide: i2.NG_VALIDATORS,
|
|
1049
1049
|
useExisting: i0.forwardRef(function () { return DateInputComponent; }),
|
|
1050
1050
|
multi: true
|
|
1051
1051
|
}
|
|
@@ -1111,12 +1111,12 @@
|
|
|
1111
1111
|
templateUrl: './date-input.html',
|
|
1112
1112
|
providers: [
|
|
1113
1113
|
{
|
|
1114
|
-
provide:
|
|
1114
|
+
provide: i2.NG_VALUE_ACCESSOR,
|
|
1115
1115
|
useExisting: i0.forwardRef(function () { return DateInputComponent; }),
|
|
1116
1116
|
multi: true
|
|
1117
1117
|
},
|
|
1118
1118
|
{
|
|
1119
|
-
provide:
|
|
1119
|
+
provide: i2.NG_VALIDATORS,
|
|
1120
1120
|
useExisting: i0.forwardRef(function () { return DateInputComponent; }),
|
|
1121
1121
|
multi: true
|
|
1122
1122
|
}
|
|
@@ -1472,14 +1472,14 @@
|
|
|
1472
1472
|
})();
|
|
1473
1473
|
|
|
1474
1474
|
var _c0$S = function (a0) { return { "js-hidden": a0 }; };
|
|
1475
|
-
var _c1$
|
|
1475
|
+
var _c1$n = ["*"];
|
|
1476
1476
|
var TabComponent = /** @class */ (function () {
|
|
1477
1477
|
function TabComponent() {
|
|
1478
1478
|
}
|
|
1479
1479
|
return TabComponent;
|
|
1480
1480
|
}());
|
|
1481
1481
|
TabComponent.ɵfac = function TabComponent_Factory(t) { return new (t || TabComponent)(); };
|
|
1482
|
-
TabComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, ngContentSelectors: _c1$
|
|
1482
|
+
TabComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, ngContentSelectors: _c1$n, decls: 2, vars: 5, consts: [["role", "tabpanel", 1, "tabs-panel", 3, "id", "ngClass"]], template: function TabComponent_Template(rf, ctx) {
|
|
1483
1483
|
if (rf & 1) {
|
|
1484
1484
|
i0__namespace.ɵɵprojectionDef();
|
|
1485
1485
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
@@ -1511,7 +1511,7 @@
|
|
|
1511
1511
|
})();
|
|
1512
1512
|
|
|
1513
1513
|
var _c0$R = ["tab"];
|
|
1514
|
-
var _c1$
|
|
1514
|
+
var _c1$m = function () { return ["."]; };
|
|
1515
1515
|
var _c2$3 = function (a0) { return { "tabs-toggle-selected": a0 }; };
|
|
1516
1516
|
function TabsComponent_li_2_Template(rf, ctx) {
|
|
1517
1517
|
if (rf & 1) {
|
|
@@ -1526,7 +1526,7 @@
|
|
|
1526
1526
|
if (rf & 2) {
|
|
1527
1527
|
var panel_r1 = ctx.$implicit;
|
|
1528
1528
|
i0__namespace.ɵɵadvance(1);
|
|
1529
|
-
i0__namespace.ɵɵproperty("routerLink", i0__namespace.ɵɵpureFunction0(6, _c1$
|
|
1529
|
+
i0__namespace.ɵɵproperty("routerLink", i0__namespace.ɵɵpureFunction0(6, _c1$m))("fragment", panel_r1.id)("ngClass", i0__namespace.ɵɵpureFunction1(7, _c2$3, panel_r1.selected));
|
|
1530
1530
|
i0__namespace.ɵɵattribute("aria-controls", panel_r1.id)("aria-selected", panel_r1.selected);
|
|
1531
1531
|
i0__namespace.ɵɵadvance(2);
|
|
1532
1532
|
i0__namespace.ɵɵtextInterpolate(panel_r1.title);
|
|
@@ -1861,7 +1861,7 @@
|
|
|
1861
1861
|
return error;
|
|
1862
1862
|
}
|
|
1863
1863
|
var httpError = new HttpError();
|
|
1864
|
-
if (error instanceof i1$
|
|
1864
|
+
if (error instanceof i1$2.HttpErrorResponse) {
|
|
1865
1865
|
if (error.headers
|
|
1866
1866
|
&& error.headers.get(HttpErrorService.CONTENT_TYPE)
|
|
1867
1867
|
&& error.headers.get(HttpErrorService.CONTENT_TYPE).indexOf(HttpErrorService.JSON) !== -1) {
|
|
@@ -1991,7 +1991,7 @@
|
|
|
1991
1991
|
options = options || { observe: 'body' };
|
|
1992
1992
|
options.withCredentials = true;
|
|
1993
1993
|
if (!options.headers) {
|
|
1994
|
-
options.headers = new i1$
|
|
1994
|
+
options.headers = new i1$2.HttpHeaders()
|
|
1995
1995
|
.set(HttpService.HEADER_ACCEPT, 'application/json')
|
|
1996
1996
|
.set(HttpService.HEADER_CONTENT_TYPE, 'application/json');
|
|
1997
1997
|
}
|
|
@@ -2080,7 +2080,7 @@
|
|
|
2080
2080
|
};
|
|
2081
2081
|
ActivityService.prototype.getOptions = function () {
|
|
2082
2082
|
var userDetails = JSON.parse(this.sessionStorageService.getItem('userDetails'));
|
|
2083
|
-
var headers = new i1$
|
|
2083
|
+
var headers = new i1$2.HttpHeaders().set('Content-Type', 'application/json').set('Authorization', userDetails.token);
|
|
2084
2084
|
var options = {
|
|
2085
2085
|
headers: headers,
|
|
2086
2086
|
withCredentials: true,
|
|
@@ -2552,7 +2552,6 @@
|
|
|
2552
2552
|
CaseFlagStatus["ACTIVE"] = "Active";
|
|
2553
2553
|
CaseFlagStatus["INACTIVE"] = "Inactive";
|
|
2554
2554
|
CaseFlagStatus["REQUESTED"] = "Requested";
|
|
2555
|
-
CaseFlagStatus["NOT_APPROVED"] = "Not approved";
|
|
2556
2555
|
})(exports.CaseFlagStatus || (exports.CaseFlagStatus = {}));
|
|
2557
2556
|
|
|
2558
2557
|
var DashPipe = /** @class */ (function () {
|
|
@@ -4299,13 +4298,13 @@
|
|
|
4299
4298
|
return this.mergeFields(caseFields, formFields, FieldsUtils.LABEL_MERGE_FUNCTION);
|
|
4300
4299
|
};
|
|
4301
4300
|
FieldsUtils.prototype.controlIterator = function (aControl, formArrayFn, formGroupFn, controlFn) {
|
|
4302
|
-
if (aControl instanceof
|
|
4301
|
+
if (aControl instanceof i2.FormArray) { // We're in a collection
|
|
4303
4302
|
formArrayFn(aControl);
|
|
4304
4303
|
}
|
|
4305
|
-
else if (aControl instanceof
|
|
4304
|
+
else if (aControl instanceof i2.FormGroup) { // We're in a complex type.
|
|
4306
4305
|
formGroupFn(aControl);
|
|
4307
4306
|
}
|
|
4308
|
-
else if (aControl instanceof
|
|
4307
|
+
else if (aControl instanceof i2.FormControl) { // FormControl
|
|
4309
4308
|
controlFn(aControl);
|
|
4310
4309
|
}
|
|
4311
4310
|
};
|
|
@@ -4751,19 +4750,19 @@
|
|
|
4751
4750
|
FormValidatorsService.addValidators = function (caseField, control) {
|
|
4752
4751
|
if (caseField.display_context === Constants.MANDATORY &&
|
|
4753
4752
|
FormValidatorsService.CUSTOM_VALIDATED_TYPES.indexOf(caseField.field_type.type) === -1) {
|
|
4754
|
-
var validators = [
|
|
4753
|
+
var validators = [i2.Validators.required];
|
|
4755
4754
|
if (caseField.field_type.type === 'Text') {
|
|
4756
4755
|
if (caseField.field_type.regular_expression) {
|
|
4757
|
-
validators.push(
|
|
4756
|
+
validators.push(i2.Validators.pattern(caseField.field_type.regular_expression));
|
|
4758
4757
|
}
|
|
4759
4758
|
else {
|
|
4760
4759
|
validators.push(this.emptyValidator());
|
|
4761
4760
|
}
|
|
4762
4761
|
if (caseField.field_type.min && (typeof caseField.field_type.min === 'number')) {
|
|
4763
|
-
validators.push(
|
|
4762
|
+
validators.push(i2.Validators.minLength(caseField.field_type.min));
|
|
4764
4763
|
}
|
|
4765
4764
|
if (caseField.field_type.max && (typeof caseField.field_type.max === 'number')) {
|
|
4766
|
-
validators.push(
|
|
4765
|
+
validators.push(i2.Validators.maxLength(caseField.field_type.max));
|
|
4767
4766
|
}
|
|
4768
4767
|
}
|
|
4769
4768
|
if (control.validator) {
|
|
@@ -4833,7 +4832,7 @@
|
|
|
4833
4832
|
// No validators by default, override this method to add validators to the form control
|
|
4834
4833
|
};
|
|
4835
4834
|
AbstractFormFieldComponent.prototype.addControlToParent = function (control, parent, replace) {
|
|
4836
|
-
if (parent instanceof
|
|
4835
|
+
if (parent instanceof i2.FormArray) {
|
|
4837
4836
|
return this.addControlToFormArray(control, parent, replace);
|
|
4838
4837
|
}
|
|
4839
4838
|
return this.addControlToFormGroup(control, parent, replace);
|
|
@@ -4949,7 +4948,7 @@
|
|
|
4949
4948
|
this.handleFormGroup = function (formGroup) {
|
|
4950
4949
|
_this.evaluateControl(formGroup);
|
|
4951
4950
|
var groupControl = formGroup;
|
|
4952
|
-
if (formGroup.get('value') && formGroup.get('value') instanceof
|
|
4951
|
+
if (formGroup.get('value') && formGroup.get('value') instanceof i2.FormGroup) { // Complex Field
|
|
4953
4952
|
groupControl = formGroup.get('value');
|
|
4954
4953
|
}
|
|
4955
4954
|
else if (formGroup.controls) {
|
|
@@ -4971,7 +4970,7 @@
|
|
|
4971
4970
|
}
|
|
4972
4971
|
ConditionalShowFormDirective.prototype.ngOnInit = function () {
|
|
4973
4972
|
if (!this.formGroup) {
|
|
4974
|
-
this.formGroup = new
|
|
4973
|
+
this.formGroup = new i2.FormGroup({});
|
|
4975
4974
|
}
|
|
4976
4975
|
};
|
|
4977
4976
|
/**
|
|
@@ -6401,7 +6400,7 @@
|
|
|
6401
6400
|
LabelSubstitutorDirective.prototype.ngOnInit = function () {
|
|
6402
6401
|
this.initialLabel = this.caseField.label;
|
|
6403
6402
|
this.initialHintText = this.caseField.hint_text;
|
|
6404
|
-
this.formGroup = this.formGroup || new
|
|
6403
|
+
this.formGroup = this.formGroup || new i2.FormGroup({});
|
|
6405
6404
|
var fields = this.getReadOnlyAndFormFields();
|
|
6406
6405
|
if (this.shouldSubstitute('label')) {
|
|
6407
6406
|
this.caseField.label = this.resolvePlaceholders(fields, this.caseField.label);
|
|
@@ -6950,7 +6949,7 @@
|
|
|
6950
6949
|
// Do not set any headers, such as "Accept" or "Content-Type", with null values; this is not permitted with the
|
|
6951
6950
|
// Angular HttpClient in @angular/common/http. Just create and pass a new HttpHeaders object. Angular will add the
|
|
6952
6951
|
// correct headers and values automatically
|
|
6953
|
-
var headers = new i1$
|
|
6952
|
+
var headers = new i1$2.HttpHeaders();
|
|
6954
6953
|
return this.http
|
|
6955
6954
|
.post(url, formData, { headers: headers, observe: 'body' })
|
|
6956
6955
|
.pipe(operators.delay(DocumentManagementService.RESPONSE_DELAY));
|
|
@@ -7056,7 +7055,7 @@
|
|
|
7056
7055
|
DraftService.prototype.createDraft = function (ctid, eventData) {
|
|
7057
7056
|
var _this = this;
|
|
7058
7057
|
var saveDraftEndpoint = this.appConfig.getCreateOrUpdateDraftsUrl(ctid);
|
|
7059
|
-
var headers = new i1$
|
|
7058
|
+
var headers = new i1$2.HttpHeaders()
|
|
7060
7059
|
.set('experimental', 'true')
|
|
7061
7060
|
.set('Accept', DraftService.V2_MEDIATYPE_DRAFT_CREATE)
|
|
7062
7061
|
.set('Content-Type', 'application/json');
|
|
@@ -7070,7 +7069,7 @@
|
|
|
7070
7069
|
DraftService.prototype.updateDraft = function (ctid, draftId, eventData) {
|
|
7071
7070
|
var _this = this;
|
|
7072
7071
|
var saveDraftEndpoint = this.appConfig.getCreateOrUpdateDraftsUrl(ctid) + draftId;
|
|
7073
|
-
var headers = new i1$
|
|
7072
|
+
var headers = new i1$2.HttpHeaders()
|
|
7074
7073
|
.set('experimental', 'true')
|
|
7075
7074
|
.set('Accept', DraftService.V2_MEDIATYPE_DRAFT_UPDATE)
|
|
7076
7075
|
.set('Content-Type', 'application/json');
|
|
@@ -7084,7 +7083,7 @@
|
|
|
7084
7083
|
DraftService.prototype.getDraft = function (draftId) {
|
|
7085
7084
|
var _this = this;
|
|
7086
7085
|
var url = this.appConfig.getViewOrDeleteDraftsUrl(draftId.slice(DRAFT_PREFIX.length));
|
|
7087
|
-
var headers = new i1$
|
|
7086
|
+
var headers = new i1$2.HttpHeaders()
|
|
7088
7087
|
.set('experimental', 'true')
|
|
7089
7088
|
.set('Accept', DraftService.V2_MEDIATYPE_DRAFT_READ)
|
|
7090
7089
|
.set('Content-Type', 'application/json');
|
|
@@ -7098,7 +7097,7 @@
|
|
|
7098
7097
|
DraftService.prototype.deleteDraft = function (draftId) {
|
|
7099
7098
|
var _this = this;
|
|
7100
7099
|
var url = this.appConfig.getViewOrDeleteDraftsUrl(draftId.slice(DRAFT_PREFIX.length));
|
|
7101
|
-
var headers = new i1$
|
|
7100
|
+
var headers = new i1$2.HttpHeaders()
|
|
7102
7101
|
.set('experimental', 'true')
|
|
7103
7102
|
.set('Accept', DraftService.V2_MEDIATYPE_DRAFT_DELETE)
|
|
7104
7103
|
.set('Content-Type', 'application/json');
|
|
@@ -7201,7 +7200,7 @@
|
|
|
7201
7200
|
if (inArray && group.controls['value']) {
|
|
7202
7201
|
group = group.controls['value'];
|
|
7203
7202
|
}
|
|
7204
|
-
if (group && group.constructor &&
|
|
7203
|
+
if (group && group.constructor && i2.FormArray.name === group.constructor.name) {
|
|
7205
7204
|
inArray = true;
|
|
7206
7205
|
}
|
|
7207
7206
|
else {
|
|
@@ -7257,11 +7256,11 @@
|
|
|
7257
7256
|
}
|
|
7258
7257
|
BannersService.prototype.getBanners = function (jurisdictionReferences) {
|
|
7259
7258
|
var url = this.appConfig.getBannersUrl();
|
|
7260
|
-
var headers = new i1$
|
|
7259
|
+
var headers = new i1$2.HttpHeaders()
|
|
7261
7260
|
.set('experimental', 'true')
|
|
7262
7261
|
.set('Accept', BannersService.V2_MEDIATYPE_BANNERS)
|
|
7263
7262
|
.set('Content-Type', 'application/json');
|
|
7264
|
-
var params = new i1$
|
|
7263
|
+
var params = new i1$2.HttpParams();
|
|
7265
7264
|
jurisdictionReferences.forEach(function (reference) { return params = params.append('ids', reference); });
|
|
7266
7265
|
return this.httpService
|
|
7267
7266
|
.get(url, { params: params, headers: headers, observe: 'body' })
|
|
@@ -7353,7 +7352,7 @@
|
|
|
7353
7352
|
}
|
|
7354
7353
|
ProfileService.prototype.get = function () {
|
|
7355
7354
|
var url = this.appConfig.getCaseDataUrl() + ProfileService.URL;
|
|
7356
|
-
var headers = new i1$
|
|
7355
|
+
var headers = new i1$2.HttpHeaders()
|
|
7357
7356
|
.set('experimental', 'true')
|
|
7358
7357
|
.set('Accept', ProfileService.V2_MEDIATYPE_USER_PROFILE)
|
|
7359
7358
|
.set('Content-Type', 'application/json');
|
|
@@ -7413,7 +7412,7 @@
|
|
|
7413
7412
|
var e_1, _a, e_2, _b;
|
|
7414
7413
|
// TODO: This should probably be the now built-in URLSearchParams but it
|
|
7415
7414
|
// requires a bigger refactor and there are bigger fish to fry right now.
|
|
7416
|
-
var params = new i1$
|
|
7415
|
+
var params = new i1$2.HttpParams();
|
|
7417
7416
|
if (view) {
|
|
7418
7417
|
params = params.set('view', view);
|
|
7419
7418
|
}
|
|
@@ -7563,7 +7562,7 @@
|
|
|
7563
7562
|
SearchService.prototype.getSearchInputs = function (jurisdictionId, caseTypeId) {
|
|
7564
7563
|
var _this = this;
|
|
7565
7564
|
var url = this.getSearchInputUrl(caseTypeId);
|
|
7566
|
-
var headers = new i1$
|
|
7565
|
+
var headers = new i1$2.HttpHeaders()
|
|
7567
7566
|
.set('experimental', 'true')
|
|
7568
7567
|
.set('Accept', SearchService.V2_MEDIATYPE_SEARCH_INPUTS)
|
|
7569
7568
|
.set('Content-Type', 'application/json');
|
|
@@ -7679,7 +7678,7 @@
|
|
|
7679
7678
|
WorkbasketInputFilterService.prototype.getWorkbasketInputs = function (jurisdictionId, caseTypeId) {
|
|
7680
7679
|
var _this = this;
|
|
7681
7680
|
var url = this.getWorkbasketInputUrl(caseTypeId);
|
|
7682
|
-
var headers = new i1$
|
|
7681
|
+
var headers = new i1$2.HttpHeaders()
|
|
7683
7682
|
.set('experimental', 'true')
|
|
7684
7683
|
.set('Accept', WorkbasketInputFilterService.V2_MEDIATYPE_WORKBASKET_INPUT_DETAILS)
|
|
7685
7684
|
.set('Content-Type', 'application/json');
|
|
@@ -8431,7 +8430,7 @@
|
|
|
8431
8430
|
CasesService.prototype.getCaseViewV2 = function (caseId) {
|
|
8432
8431
|
var _this = this;
|
|
8433
8432
|
var url = this.appConfig.getCaseDataUrl() + "/internal/cases/" + caseId;
|
|
8434
|
-
var headers = new i1$
|
|
8433
|
+
var headers = new i1$2.HttpHeaders()
|
|
8435
8434
|
.set('experimental', 'true')
|
|
8436
8435
|
.set('Accept', CasesService.V2_MEDIATYPE_CASE_VIEW)
|
|
8437
8436
|
.set('Content-Type', 'application/json');
|
|
@@ -8447,7 +8446,7 @@
|
|
|
8447
8446
|
var _this = this;
|
|
8448
8447
|
ignoreWarning = undefined !== ignoreWarning ? ignoreWarning : 'false';
|
|
8449
8448
|
var url = this.buildEventTriggerUrl(caseTypeId, eventTriggerId, caseId, ignoreWarning);
|
|
8450
|
-
var headers = new i1$
|
|
8449
|
+
var headers = new i1$2.HttpHeaders();
|
|
8451
8450
|
headers = headers.set('experimental', 'true');
|
|
8452
8451
|
headers = headers.set('Content-Type', 'application/json');
|
|
8453
8452
|
if (Draft.isDraft(caseId)) {
|
|
@@ -8472,7 +8471,7 @@
|
|
|
8472
8471
|
var _this = this;
|
|
8473
8472
|
var caseId = caseDetails.case_id;
|
|
8474
8473
|
var url = this.appConfig.getCaseDataUrl() + ("/cases/" + caseId + "/events");
|
|
8475
|
-
var headers = new i1$
|
|
8474
|
+
var headers = new i1$2.HttpHeaders()
|
|
8476
8475
|
.set('experimental', 'true')
|
|
8477
8476
|
.set('Accept', CasesService.V2_MEDIATYPE_CREATE_EVENT)
|
|
8478
8477
|
.set('Content-Type', 'application/json');
|
|
@@ -8488,7 +8487,7 @@
|
|
|
8488
8487
|
var pageIdString = pageId ? '?pageId=' + pageId : '';
|
|
8489
8488
|
var url = this.appConfig.getCaseDataUrl()
|
|
8490
8489
|
+ ("/case-types/" + ctid + "/validate" + pageIdString);
|
|
8491
|
-
var headers = new i1$
|
|
8490
|
+
var headers = new i1$2.HttpHeaders()
|
|
8492
8491
|
.set('experimental', 'true')
|
|
8493
8492
|
.set('Accept', CasesService.V2_MEDIATYPE_CASE_DATA_VALIDATE)
|
|
8494
8493
|
.set('Content-Type', 'application/json');
|
|
@@ -8507,7 +8506,7 @@
|
|
|
8507
8506
|
}
|
|
8508
8507
|
var url = this.appConfig.getCaseDataUrl()
|
|
8509
8508
|
+ ("/case-types/" + ctid + "/cases?ignore-warning=" + ignoreWarning);
|
|
8510
|
-
var headers = new i1$
|
|
8509
|
+
var headers = new i1$2.HttpHeaders()
|
|
8511
8510
|
.set('experimental', 'true')
|
|
8512
8511
|
.set('Accept', CasesService.V2_MEDIATYPE_CREATE_CASE)
|
|
8513
8512
|
.set('Content-Type', 'application/json');
|
|
@@ -8523,7 +8522,7 @@
|
|
|
8523
8522
|
var url = this.appConfig.getCaseDataUrl()
|
|
8524
8523
|
+ ("/cases/" + caseId)
|
|
8525
8524
|
+ "/documents";
|
|
8526
|
-
var headers = new i1$
|
|
8525
|
+
var headers = new i1$2.HttpHeaders()
|
|
8527
8526
|
.set('experimental', 'true')
|
|
8528
8527
|
.set('Accept', CasesService.V2_MEDIATYPE_CASE_DOCUMENTS)
|
|
8529
8528
|
.set('Content-Type', 'application/json');
|
|
@@ -9308,9 +9307,9 @@
|
|
|
9308
9307
|
this.sessionStorageService.setItem('eventUrl', this.router.url);
|
|
9309
9308
|
}
|
|
9310
9309
|
this.form = this.fb.group({
|
|
9311
|
-
data: new
|
|
9310
|
+
data: new i2.FormGroup({}),
|
|
9312
9311
|
event: this.fb.group({
|
|
9313
|
-
id: [this.eventTrigger.id,
|
|
9312
|
+
id: [this.eventTrigger.id, i2.Validators.required],
|
|
9314
9313
|
summary: [''],
|
|
9315
9314
|
description: ['']
|
|
9316
9315
|
})
|
|
@@ -9376,7 +9375,7 @@
|
|
|
9376
9375
|
}());
|
|
9377
9376
|
CaseEditComponent.ORIGIN_QUERY_PARAM = 'origin';
|
|
9378
9377
|
CaseEditComponent.ALERT_MESSAGE = 'Page is being refreshed so you will be redirected to the first page of this event.';
|
|
9379
|
-
CaseEditComponent.ɵfac = function CaseEditComponent_Factory(t) { return new (t || CaseEditComponent)(i0__namespace.ɵɵdirectiveInject(
|
|
9378
|
+
CaseEditComponent.ɵfac = function CaseEditComponent_Factory(t) { return new (t || CaseEditComponent)(i0__namespace.ɵɵdirectiveInject(i2__namespace.FormBuilder), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(FieldsUtils), i0__namespace.ɵɵdirectiveInject(FieldsPurger), i0__namespace.ɵɵdirectiveInject(ConditionalShowRegistrarService), i0__namespace.ɵɵdirectiveInject(WizardFactoryService), i0__namespace.ɵɵdirectiveInject(SessionStorageService), i0__namespace.ɵɵdirectiveInject(WindowService)); };
|
|
9380
9379
|
CaseEditComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseEditComponent, selectors: [["ccd-case-edit"]], inputs: { eventTrigger: "eventTrigger", submit: "submit", validate: "validate", saveDraft: "saveDraft", caseDetails: "caseDetails" }, outputs: { cancelled: "cancelled", submitted: "submitted" }, features: [i0__namespace.ɵɵProvidersFeature([GreyBarService])], decls: 1, vars: 0, template: function CaseEditComponent_Template(rf, ctx) {
|
|
9381
9380
|
if (rf & 1) {
|
|
9382
9381
|
i0__namespace.ɵɵelement(0, "router-outlet");
|
|
@@ -9391,7 +9390,7 @@
|
|
|
9391
9390
|
styleUrls: ['../case-edit.scss'],
|
|
9392
9391
|
providers: [GreyBarService]
|
|
9393
9392
|
}]
|
|
9394
|
-
}], function () { return [{ type:
|
|
9393
|
+
}], function () { return [{ type: i2__namespace.FormBuilder }, { type: i1__namespace$1.Router }, { type: i1__namespace$1.ActivatedRoute }, { type: FieldsUtils }, { type: FieldsPurger }, { type: ConditionalShowRegistrarService }, { type: WizardFactoryService }, { type: SessionStorageService }, { type: WindowService }]; }, { eventTrigger: [{
|
|
9395
9394
|
type: i0.Input
|
|
9396
9395
|
}], submit: [{
|
|
9397
9396
|
type: i0.Input
|
|
@@ -9474,7 +9473,7 @@
|
|
|
9474
9473
|
this.caseEdit = caseEdit;
|
|
9475
9474
|
this.router = router;
|
|
9476
9475
|
this.triggerText = 'Close and Return to case details';
|
|
9477
|
-
this.formGroup = new
|
|
9476
|
+
this.formGroup = new i2.FormControl();
|
|
9478
9477
|
this.eventTrigger = this.caseEdit.eventTrigger;
|
|
9479
9478
|
this.editForm = this.caseEdit.form;
|
|
9480
9479
|
this.caseFields = this.getCaseFields();
|
|
@@ -9721,7 +9720,7 @@
|
|
|
9721
9720
|
};
|
|
9722
9721
|
return SaveOrDiscardDialogComponent;
|
|
9723
9722
|
}());
|
|
9724
|
-
SaveOrDiscardDialogComponent.ɵfac = function SaveOrDiscardDialogComponent_Factory(t) { return new (t || SaveOrDiscardDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$
|
|
9723
|
+
SaveOrDiscardDialogComponent.ɵfac = function SaveOrDiscardDialogComponent_Factory(t) { return new (t || SaveOrDiscardDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialogRef)); };
|
|
9725
9724
|
SaveOrDiscardDialogComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: SaveOrDiscardDialogComponent, selectors: [["ccd-save-or-discard-dialog"]], decls: 15, vars: 0, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Save", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Discard", 1, "button", "button-secondary", 3, "click"]], template: function SaveOrDiscardDialogComponent_Template(rf, ctx) {
|
|
9726
9725
|
if (rf & 1) {
|
|
9727
9726
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
@@ -9762,11 +9761,11 @@
|
|
|
9762
9761
|
templateUrl: './save-or-discard-dialog.component.html',
|
|
9763
9762
|
styleUrls: ['../action-dialog.component.scss']
|
|
9764
9763
|
}]
|
|
9765
|
-
}], function () { return [{ type: i1__namespace$
|
|
9764
|
+
}], function () { return [{ type: i1__namespace$3.MatDialogRef }]; }, null);
|
|
9766
9765
|
})();
|
|
9767
9766
|
|
|
9768
9767
|
function initDialog() {
|
|
9769
|
-
var dialogConfig = new i1$
|
|
9768
|
+
var dialogConfig = new i1$3.MatDialogConfig();
|
|
9770
9769
|
dialogConfig.disableClose = true;
|
|
9771
9770
|
dialogConfig.autoFocus = true;
|
|
9772
9771
|
dialogConfig.ariaLabel = 'Label';
|
|
@@ -10516,7 +10515,7 @@
|
|
|
10516
10515
|
CaseEditPageComponent.TRIGGER_TEXT_START = 'Continue';
|
|
10517
10516
|
CaseEditPageComponent.TRIGGER_TEXT_SAVE = 'Save and continue';
|
|
10518
10517
|
CaseEditPageComponent.TRIGGER_TEXT_CONTINUE = 'Ignore Warning and Continue';
|
|
10519
|
-
CaseEditPageComponent.ɵfac = function CaseEditPageComponent_Factory(t) { return new (t || CaseEditPageComponent)(i0__namespace.ɵɵdirectiveInject(CaseEditComponent), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(FormValueService), i0__namespace.ɵɵdirectiveInject(FormErrorService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(PageValidationService), i0__namespace.ɵɵdirectiveInject(i1__namespace$
|
|
10518
|
+
CaseEditPageComponent.ɵfac = function CaseEditPageComponent_Factory(t) { return new (t || CaseEditPageComponent)(i0__namespace.ɵɵdirectiveInject(CaseEditComponent), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(FormValueService), i0__namespace.ɵɵdirectiveInject(FormErrorService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(PageValidationService), i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog), i0__namespace.ɵɵdirectiveInject(CaseFieldService), i0__namespace.ɵɵdirectiveInject(CaseEditDataService)); };
|
|
10520
10519
|
CaseEditPageComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseEditPageComponent, selectors: [["ccd-case-edit-page"]], decls: 13, vars: 12, consts: [[4, "ngIf"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["titleBlock", ""], ["idBlock", ""], ["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], ["class", "error-summary", "role", "status", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject", "callbackErrorsContext"], [1, "width-50"], ["class", "form", 3, "formGroup", "submit", 4, "ngIf"], ["class", "govuk-heading-l", 4, "ngIf"], [1, "govuk-heading-l"], [1, "govuk-caption-l"], [3, "content"], ["class", "heading-h2", 4, "ngIf"], [1, "heading-h2"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], ["class", "govuk-error-summary__body", 4, "ngFor", "ngForOf"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [1, "validation-error", 3, "click"], ["role", "status", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading-3", 1, "heading-h3", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], ["class", "ccd-error-summary-li", 4, "ngFor", "ngForOf"], [1, "ccd-error-summary-li"], [1, "form", 3, "formGroup", "submit"], ["id", "fieldset-case-data"], [2, "display", "none"], ["id", "caseEditForm", 3, "fields", "formGroup", "caseFields", "pageChangeSubject", "valuesChanged", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "form-group", "form-group-related"], ["type", "button", 1, "button", "button-secondary", 3, "disabled", "click"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["href", "javascript:void(0)", 3, "click"], ["id", "caseEditForm", 3, "fields", "formGroup", "caseFields", "pageChangeSubject", "valuesChanged"], [1, "grid-row"], [1, "column-two-thirds", "rightBorderSeparator"], ["id", "caseEditForm1", 3, "fields", "formGroup", "caseFields"], [1, "column-one-third"], ["id", "caseEditForm2", 3, "fields", "formGroup", "caseFields"]], template: function CaseEditPageComponent_Template(rf, ctx) {
|
|
10521
10520
|
if (rf & 1) {
|
|
10522
10521
|
i0__namespace.ɵɵtemplate(0, CaseEditPageComponent_ccd_loading_spinner_0_Template, 1, 0, "ccd-loading-spinner", 0);
|
|
@@ -10562,7 +10561,7 @@
|
|
|
10562
10561
|
templateUrl: 'case-edit-page.html',
|
|
10563
10562
|
styleUrls: ['./case-edit-page.scss']
|
|
10564
10563
|
}]
|
|
10565
|
-
}], function () { return [{ type: CaseEditComponent }, { type: i1__namespace$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0__namespace.ChangeDetectorRef }, { type: PageValidationService }, { type: i1__namespace$
|
|
10564
|
+
}], function () { return [{ type: CaseEditComponent }, { type: i1__namespace$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0__namespace.ChangeDetectorRef }, { type: PageValidationService }, { type: i1__namespace$3.MatDialog }, { type: CaseFieldService }, { type: CaseEditDataService }]; }, null);
|
|
10566
10565
|
})();
|
|
10567
10566
|
|
|
10568
10567
|
var CallbackErrorsContext = /** @class */ (function () {
|
|
@@ -11316,25 +11315,6 @@
|
|
|
11316
11315
|
}], null, null);
|
|
11317
11316
|
})();
|
|
11318
11317
|
|
|
11319
|
-
var EnumDisplayDescriptionPipe = /** @class */ (function () {
|
|
11320
|
-
function EnumDisplayDescriptionPipe() {
|
|
11321
|
-
}
|
|
11322
|
-
EnumDisplayDescriptionPipe.prototype.transform = function (value) {
|
|
11323
|
-
return Object.values(value);
|
|
11324
|
-
};
|
|
11325
|
-
return EnumDisplayDescriptionPipe;
|
|
11326
|
-
}());
|
|
11327
|
-
EnumDisplayDescriptionPipe.ɵfac = function EnumDisplayDescriptionPipe_Factory(t) { return new (t || EnumDisplayDescriptionPipe)(); };
|
|
11328
|
-
EnumDisplayDescriptionPipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "enumDisplayDescription", type: EnumDisplayDescriptionPipe, pure: true });
|
|
11329
|
-
(function () {
|
|
11330
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(EnumDisplayDescriptionPipe, [{
|
|
11331
|
-
type: i0.Pipe,
|
|
11332
|
-
args: [{
|
|
11333
|
-
name: 'enumDisplayDescription'
|
|
11334
|
-
}]
|
|
11335
|
-
}], null, null);
|
|
11336
|
-
})();
|
|
11337
|
-
|
|
11338
11318
|
var SortOrder;
|
|
11339
11319
|
(function (SortOrder) {
|
|
11340
11320
|
SortOrder[SortOrder["ASCENDING"] = 0] = "ASCENDING";
|
|
@@ -11375,8 +11355,7 @@
|
|
|
11375
11355
|
CcdCYAPageLabelFilterPipe,
|
|
11376
11356
|
ReadFieldsFilterPipe,
|
|
11377
11357
|
CcdTabFieldsPipe,
|
|
11378
|
-
CcdPageFieldsPipe
|
|
11379
|
-
EnumDisplayDescriptionPipe
|
|
11358
|
+
CcdPageFieldsPipe
|
|
11380
11359
|
];
|
|
11381
11360
|
var PipesModule = /** @class */ (function () {
|
|
11382
11361
|
function PipesModule() {
|
|
@@ -11396,16 +11375,14 @@
|
|
|
11396
11375
|
CcdCYAPageLabelFilterPipe,
|
|
11397
11376
|
ReadFieldsFilterPipe,
|
|
11398
11377
|
CcdTabFieldsPipe,
|
|
11399
|
-
CcdPageFieldsPipe,
|
|
11400
|
-
EnumDisplayDescriptionPipe], imports: [i1.CommonModule], exports: [CaseReferencePipe,
|
|
11378
|
+
CcdPageFieldsPipe], imports: [i1.CommonModule], exports: [CaseReferencePipe,
|
|
11401
11379
|
SortSearchResultPipe,
|
|
11402
11380
|
CcdCaseTitlePipe,
|
|
11403
11381
|
CcdCollectionTableCaseFieldsFilterPipe,
|
|
11404
11382
|
CcdCYAPageLabelFilterPipe,
|
|
11405
11383
|
ReadFieldsFilterPipe,
|
|
11406
11384
|
CcdTabFieldsPipe,
|
|
11407
|
-
CcdPageFieldsPipe
|
|
11408
|
-
EnumDisplayDescriptionPipe] });
|
|
11385
|
+
CcdPageFieldsPipe] });
|
|
11409
11386
|
})();
|
|
11410
11387
|
(function () {
|
|
11411
11388
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PipesModule, [{
|
|
@@ -11473,7 +11450,7 @@
|
|
|
11473
11450
|
i0__namespace.ɵɵelementEnd();
|
|
11474
11451
|
}
|
|
11475
11452
|
}
|
|
11476
|
-
var _c1$
|
|
11453
|
+
var _c1$l = function (a0) { return { "form-group-error": a0 }; };
|
|
11477
11454
|
var _c2$2 = function (a0) { return { "govuk-input--error": a0 }; };
|
|
11478
11455
|
function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) {
|
|
11479
11456
|
if (rf & 1) {
|
|
@@ -11494,7 +11471,7 @@
|
|
|
11494
11471
|
}
|
|
11495
11472
|
if (rf & 2) {
|
|
11496
11473
|
var ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
11497
|
-
i0__namespace.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$
|
|
11474
|
+
i0__namespace.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$l, ctx_r2.missingPostcode));
|
|
11498
11475
|
i0__namespace.ɵɵadvance(1);
|
|
11499
11476
|
i0__namespace.ɵɵproperty("for", ctx_r2.createElementId("postcodeInput"));
|
|
11500
11477
|
i0__namespace.ɵɵadvance(3);
|
|
@@ -11579,16 +11556,16 @@
|
|
|
11579
11556
|
function WriteAddressFieldComponent(addressesService, isCompoundPipe) {
|
|
11580
11557
|
var _this = _super.call(this) || this;
|
|
11581
11558
|
_this.isCompoundPipe = isCompoundPipe;
|
|
11582
|
-
_this.addressFormGroup = new
|
|
11559
|
+
_this.addressFormGroup = new i2.FormGroup({});
|
|
11583
11560
|
_this.missingPostcode = false;
|
|
11584
11561
|
_this.addressesService = addressesService;
|
|
11585
11562
|
return _this;
|
|
11586
11563
|
}
|
|
11587
11564
|
WriteAddressFieldComponent.prototype.ngOnInit = function () {
|
|
11588
11565
|
if (!this.isComplexWithHiddenFields()) {
|
|
11589
|
-
this.postcode = new
|
|
11566
|
+
this.postcode = new i2.FormControl('');
|
|
11590
11567
|
this.addressFormGroup.addControl('postcode', this.postcode);
|
|
11591
|
-
this.addressList = new
|
|
11568
|
+
this.addressList = new i2.FormControl('');
|
|
11592
11569
|
this.addressFormGroup.addControl('address', this.addressList);
|
|
11593
11570
|
}
|
|
11594
11571
|
};
|
|
@@ -11740,7 +11717,7 @@
|
|
|
11740
11717
|
}
|
|
11741
11718
|
AbstractFieldReadComponent.prototype.ngOnInit = function () {
|
|
11742
11719
|
if (!this.caseField.metadata) {
|
|
11743
|
-
this.registerControl(new
|
|
11720
|
+
this.registerControl(new i2.FormControl(this.caseField.value));
|
|
11744
11721
|
}
|
|
11745
11722
|
};
|
|
11746
11723
|
return AbstractFieldReadComponent;
|
|
@@ -11760,56 +11737,93 @@
|
|
|
11760
11737
|
}] });
|
|
11761
11738
|
})();
|
|
11762
11739
|
|
|
11763
|
-
function
|
|
11740
|
+
function CaseFileViewFieldComponent_ng_container_0_li_7_Template(rf, ctx) {
|
|
11764
11741
|
if (rf & 1) {
|
|
11765
|
-
i0__namespace.ɵɵelementStart(0, "
|
|
11766
|
-
i0__namespace.ɵɵelementStart(1, "
|
|
11742
|
+
i0__namespace.ɵɵelementStart(0, "li");
|
|
11743
|
+
i0__namespace.ɵɵelementStart(1, "a", 8);
|
|
11744
|
+
i0__namespace.ɵɵtext(2);
|
|
11745
|
+
i0__namespace.ɵɵelementEnd();
|
|
11746
|
+
i0__namespace.ɵɵelementEnd();
|
|
11747
|
+
}
|
|
11748
|
+
if (rf & 2) {
|
|
11749
|
+
var errorMessage_r4 = ctx.$implicit;
|
|
11750
|
+
i0__namespace.ɵɵadvance(2);
|
|
11751
|
+
i0__namespace.ɵɵtextInterpolate(errorMessage_r4);
|
|
11752
|
+
}
|
|
11753
|
+
}
|
|
11754
|
+
function CaseFileViewFieldComponent_ng_container_0_Template(rf, ctx) {
|
|
11755
|
+
if (rf & 1) {
|
|
11756
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
11757
|
+
i0__namespace.ɵɵelementStart(1, "div", 2);
|
|
11758
|
+
i0__namespace.ɵɵelementStart(2, "div", 3);
|
|
11759
|
+
i0__namespace.ɵɵelementStart(3, "h2", 4);
|
|
11760
|
+
i0__namespace.ɵɵtext(4, " There is a problem ");
|
|
11761
|
+
i0__namespace.ɵɵelementEnd();
|
|
11762
|
+
i0__namespace.ɵɵelementStart(5, "div", 5);
|
|
11763
|
+
i0__namespace.ɵɵelementStart(6, "ul", 6);
|
|
11764
|
+
i0__namespace.ɵɵtemplate(7, CaseFileViewFieldComponent_ng_container_0_li_7_Template, 3, 1, "li", 7);
|
|
11765
|
+
i0__namespace.ɵɵelementEnd();
|
|
11766
|
+
i0__namespace.ɵɵelementEnd();
|
|
11767
|
+
i0__namespace.ɵɵelementEnd();
|
|
11768
|
+
i0__namespace.ɵɵelementEnd();
|
|
11769
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
11770
|
+
}
|
|
11771
|
+
if (rf & 2) {
|
|
11772
|
+
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
11773
|
+
i0__namespace.ɵɵadvance(7);
|
|
11774
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r0.errorMessages);
|
|
11775
|
+
}
|
|
11776
|
+
}
|
|
11777
|
+
function CaseFileViewFieldComponent_div_1_Template(rf, ctx) {
|
|
11778
|
+
if (rf & 1) {
|
|
11779
|
+
i0__namespace.ɵɵelementStart(0, "div", 9);
|
|
11780
|
+
i0__namespace.ɵɵelementStart(1, "h1", 10);
|
|
11767
11781
|
i0__namespace.ɵɵtext(2, "Sorry, there is a problem with the service");
|
|
11768
11782
|
i0__namespace.ɵɵelementEnd();
|
|
11769
|
-
i0__namespace.ɵɵelementStart(3, "p",
|
|
11783
|
+
i0__namespace.ɵɵelementStart(3, "p", 11);
|
|
11770
11784
|
i0__namespace.ɵɵtext(4, "Try again later.");
|
|
11771
11785
|
i0__namespace.ɵɵelementEnd();
|
|
11772
11786
|
i0__namespace.ɵɵelementEnd();
|
|
11773
11787
|
}
|
|
11774
11788
|
}
|
|
11775
|
-
function
|
|
11789
|
+
function CaseFileViewFieldComponent_div_2_ng_container_8_Template(rf, ctx) {
|
|
11776
11790
|
if (rf & 1) {
|
|
11777
11791
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
11778
|
-
i0__namespace.ɵɵelement(1, "mv-media-viewer",
|
|
11792
|
+
i0__namespace.ɵɵelement(1, "mv-media-viewer", 18);
|
|
11779
11793
|
i0__namespace.ɵɵelementContainerEnd();
|
|
11780
11794
|
}
|
|
11781
11795
|
if (rf & 2) {
|
|
11782
|
-
var
|
|
11796
|
+
var ctx_r5 = i0__namespace.ɵɵnextContext(2);
|
|
11783
11797
|
i0__namespace.ɵɵadvance(1);
|
|
11784
|
-
i0__namespace.ɵɵproperty("url",
|
|
11798
|
+
i0__namespace.ɵɵproperty("url", ctx_r5.currentDocument.document_binary_url)("downloadFileName", ctx_r5.currentDocument.document_filename)("showToolbar", true)("contentType", ctx_r5.currentDocument.content_type)("enableAnnotations", true)("enableRedactions", true)("height", "94.5vh");
|
|
11785
11799
|
}
|
|
11786
11800
|
}
|
|
11787
|
-
function
|
|
11801
|
+
function CaseFileViewFieldComponent_div_2_Template(rf, ctx) {
|
|
11788
11802
|
if (rf & 1) {
|
|
11789
|
-
var
|
|
11803
|
+
var _r7_1 = i0__namespace.ɵɵgetCurrentView();
|
|
11790
11804
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
11791
|
-
i0__namespace.ɵɵelementStart(1, "h2",
|
|
11805
|
+
i0__namespace.ɵɵelementStart(1, "h2", 12);
|
|
11792
11806
|
i0__namespace.ɵɵtext(2, "Case file");
|
|
11793
11807
|
i0__namespace.ɵɵelementEnd();
|
|
11794
|
-
i0__namespace.ɵɵelementStart(3, "div",
|
|
11795
|
-
i0__namespace.ɵɵelementStart(4, "div",
|
|
11796
|
-
i0__namespace.ɵɵelementStart(5, "ccd-case-file-view-folder",
|
|
11797
|
-
i0__namespace.ɵɵlistener("clickedDocument", function
|
|
11808
|
+
i0__namespace.ɵɵelementStart(3, "div", 13);
|
|
11809
|
+
i0__namespace.ɵɵelementStart(4, "div", 14);
|
|
11810
|
+
i0__namespace.ɵɵelementStart(5, "ccd-case-file-view-folder", 15);
|
|
11811
|
+
i0__namespace.ɵɵlistener("clickedDocument", function CaseFileViewFieldComponent_div_2_Template_ccd_case_file_view_folder_clickedDocument_5_listener($event) { i0__namespace.ɵɵrestoreView(_r7_1); var ctx_r6 = i0__namespace.ɵɵnextContext(); ctx_r6.setMediaViewerFile($event); return ctx_r6.resetErrorMessages(); })("moveDocument", function CaseFileViewFieldComponent_div_2_Template_ccd_case_file_view_folder_moveDocument_5_listener($event) { i0__namespace.ɵɵrestoreView(_r7_1); var ctx_r8 = i0__namespace.ɵɵnextContext(); return ctx_r8.moveDocument($event); });
|
|
11798
11812
|
i0__namespace.ɵɵelementEnd();
|
|
11799
11813
|
i0__namespace.ɵɵelementEnd();
|
|
11800
|
-
i0__namespace.ɵɵelement(6, "div",
|
|
11801
|
-
i0__namespace.ɵɵelementStart(7, "div",
|
|
11802
|
-
i0__namespace.ɵɵtemplate(8,
|
|
11814
|
+
i0__namespace.ɵɵelement(6, "div", 16);
|
|
11815
|
+
i0__namespace.ɵɵelementStart(7, "div", 17);
|
|
11816
|
+
i0__namespace.ɵɵtemplate(8, CaseFileViewFieldComponent_div_2_ng_container_8_Template, 2, 7, "ng-container", 0);
|
|
11803
11817
|
i0__namespace.ɵɵelementEnd();
|
|
11804
11818
|
i0__namespace.ɵɵelementEnd();
|
|
11805
11819
|
i0__namespace.ɵɵelementEnd();
|
|
11806
11820
|
}
|
|
11807
11821
|
if (rf & 2) {
|
|
11808
|
-
var
|
|
11822
|
+
var ctx_r2 = i0__namespace.ɵɵnextContext();
|
|
11809
11823
|
i0__namespace.ɵɵadvance(5);
|
|
11810
|
-
i0__namespace.ɵɵproperty("categoriesAndDocuments",
|
|
11824
|
+
i0__namespace.ɵɵproperty("categoriesAndDocuments", ctx_r2.categoriesAndDocuments$)("allowMoving", ctx_r2.allowMoving);
|
|
11811
11825
|
i0__namespace.ɵɵadvance(3);
|
|
11812
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
11826
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r2.currentDocument);
|
|
11813
11827
|
}
|
|
11814
11828
|
}
|
|
11815
11829
|
var CaseFileViewFieldComponent = /** @class */ (function () {
|
|
@@ -11821,6 +11835,7 @@
|
|
|
11821
11835
|
this.loadingService = loadingService;
|
|
11822
11836
|
this.allowMoving = true;
|
|
11823
11837
|
this.getCategoriesAndDocumentsError = false;
|
|
11838
|
+
this.errorMessages = [];
|
|
11824
11839
|
}
|
|
11825
11840
|
CaseFileViewFieldComponent.prototype.ngOnInit = function () {
|
|
11826
11841
|
var _this = this;
|
|
@@ -11866,11 +11881,23 @@
|
|
|
11866
11881
|
var _this = this;
|
|
11867
11882
|
var cid = this.route.snapshot.paramMap.get(CaseFileViewFieldComponent.PARAM_CASE_ID);
|
|
11868
11883
|
var loadingToken = this.loadingService.register();
|
|
11869
|
-
this.caseFileViewService.updateDocumentCategory(cid, this.caseVersion, data.document.attribute_path, data.newCategory)
|
|
11870
|
-
|
|
11884
|
+
this.caseFileViewService.updateDocumentCategory(cid, this.caseVersion, data.document.attribute_path, data.newCategory)
|
|
11885
|
+
.pipe(operators.finalize(function () {
|
|
11871
11886
|
_this.loadingService.unregister(loadingToken);
|
|
11887
|
+
}), operators.catchError(function () {
|
|
11888
|
+
_this.errorMessages = ['You do not have permission to move this document to the selected folder.'];
|
|
11889
|
+
return rxjs.of(null);
|
|
11890
|
+
}))
|
|
11891
|
+
.subscribe(function (res) {
|
|
11892
|
+
if (res) {
|
|
11893
|
+
_this.resetErrorMessages();
|
|
11894
|
+
location.reload();
|
|
11895
|
+
}
|
|
11872
11896
|
});
|
|
11873
11897
|
};
|
|
11898
|
+
CaseFileViewFieldComponent.prototype.resetErrorMessages = function () {
|
|
11899
|
+
this.errorMessages = [];
|
|
11900
|
+
};
|
|
11874
11901
|
CaseFileViewFieldComponent.prototype.ngOnDestroy = function () {
|
|
11875
11902
|
if (this.categoriesAndDocumentsSubscription) {
|
|
11876
11903
|
this.categoriesAndDocumentsSubscription.unsubscribe();
|
|
@@ -11880,12 +11907,15 @@
|
|
|
11880
11907
|
}());
|
|
11881
11908
|
CaseFileViewFieldComponent.PARAM_CASE_ID = 'cid';
|
|
11882
11909
|
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)); };
|
|
11883
|
-
CaseFileViewFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls:
|
|
11910
|
+
CaseFileViewFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls: 3, vars: 3, consts: [[4, "ngIf"], ["class", "govuk-grid-column-two-thirds", 4, "ngIf"], ["data-module", "govuk-error-summary", 1, "govuk-error-summary", "govuk-!-margin-bottom-4"], ["role", "alert"], [1, "govuk-error-summary__title"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [4, "ngFor", "ngForOf"], ["href", "javascript:void(0);"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-heading-xl"], [1, "govuk-body"], [1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [1, "document-tree-container__tree", 3, "categoriesAndDocuments", "allowMoving", "clickedDocument", "moveDocument"], [1, "slider"], [1, "media-viewer-container"], [3, "url", "downloadFileName", "showToolbar", "contentType", "enableAnnotations", "enableRedactions", "height"]], template: function CaseFileViewFieldComponent_Template(rf, ctx) {
|
|
11884
11911
|
if (rf & 1) {
|
|
11885
|
-
i0__namespace.ɵɵtemplate(0,
|
|
11886
|
-
i0__namespace.ɵɵtemplate(1, CaseFileViewFieldComponent_div_1_Template,
|
|
11912
|
+
i0__namespace.ɵɵtemplate(0, CaseFileViewFieldComponent_ng_container_0_Template, 8, 1, "ng-container", 0);
|
|
11913
|
+
i0__namespace.ɵɵtemplate(1, CaseFileViewFieldComponent_div_1_Template, 5, 0, "div", 1);
|
|
11914
|
+
i0__namespace.ɵɵtemplate(2, CaseFileViewFieldComponent_div_2_Template, 9, 3, "div", 0);
|
|
11887
11915
|
}
|
|
11888
11916
|
if (rf & 2) {
|
|
11917
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.errorMessages == null ? null : ctx.errorMessages.length);
|
|
11918
|
+
i0__namespace.ɵɵadvance(1);
|
|
11889
11919
|
i0__namespace.ɵɵproperty("ngIf", ctx.getCategoriesAndDocumentsError);
|
|
11890
11920
|
i0__namespace.ɵɵadvance(1);
|
|
11891
11921
|
i0__namespace.ɵɵproperty("ngIf", !ctx.getCategoriesAndDocumentsError);
|
|
@@ -11902,74 +11932,114 @@
|
|
|
11902
11932
|
}], function () { return [{ type: i0__namespace.ElementRef }, { type: i1__namespace$1.ActivatedRoute }, { type: CaseFileViewService }, { type: DocumentManagementService }, { type: LoadingService }]; }, null);
|
|
11903
11933
|
})();
|
|
11904
11934
|
|
|
11905
|
-
function
|
|
11935
|
+
function CaseFileViewFieldReadComponent_ng_container_0_li_7_Template(rf, ctx) {
|
|
11906
11936
|
if (rf & 1) {
|
|
11907
|
-
i0__namespace.ɵɵelementStart(0, "
|
|
11908
|
-
i0__namespace.ɵɵelementStart(1, "
|
|
11937
|
+
i0__namespace.ɵɵelementStart(0, "li");
|
|
11938
|
+
i0__namespace.ɵɵelementStart(1, "a", 8);
|
|
11939
|
+
i0__namespace.ɵɵtext(2);
|
|
11940
|
+
i0__namespace.ɵɵelementEnd();
|
|
11941
|
+
i0__namespace.ɵɵelementEnd();
|
|
11942
|
+
}
|
|
11943
|
+
if (rf & 2) {
|
|
11944
|
+
var errorMessage_r4 = ctx.$implicit;
|
|
11945
|
+
i0__namespace.ɵɵadvance(2);
|
|
11946
|
+
i0__namespace.ɵɵtextInterpolate(errorMessage_r4);
|
|
11947
|
+
}
|
|
11948
|
+
}
|
|
11949
|
+
function CaseFileViewFieldReadComponent_ng_container_0_Template(rf, ctx) {
|
|
11950
|
+
if (rf & 1) {
|
|
11951
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
11952
|
+
i0__namespace.ɵɵelementStart(1, "div", 2);
|
|
11953
|
+
i0__namespace.ɵɵelementStart(2, "div", 3);
|
|
11954
|
+
i0__namespace.ɵɵelementStart(3, "h2", 4);
|
|
11955
|
+
i0__namespace.ɵɵtext(4, " There is a problem ");
|
|
11956
|
+
i0__namespace.ɵɵelementEnd();
|
|
11957
|
+
i0__namespace.ɵɵelementStart(5, "div", 5);
|
|
11958
|
+
i0__namespace.ɵɵelementStart(6, "ul", 6);
|
|
11959
|
+
i0__namespace.ɵɵtemplate(7, CaseFileViewFieldReadComponent_ng_container_0_li_7_Template, 3, 1, "li", 7);
|
|
11960
|
+
i0__namespace.ɵɵelementEnd();
|
|
11961
|
+
i0__namespace.ɵɵelementEnd();
|
|
11962
|
+
i0__namespace.ɵɵelementEnd();
|
|
11963
|
+
i0__namespace.ɵɵelementEnd();
|
|
11964
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
11965
|
+
}
|
|
11966
|
+
if (rf & 2) {
|
|
11967
|
+
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
11968
|
+
i0__namespace.ɵɵadvance(7);
|
|
11969
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r0.errorMessages);
|
|
11970
|
+
}
|
|
11971
|
+
}
|
|
11972
|
+
function CaseFileViewFieldReadComponent_div_1_Template(rf, ctx) {
|
|
11973
|
+
if (rf & 1) {
|
|
11974
|
+
i0__namespace.ɵɵelementStart(0, "div", 9);
|
|
11975
|
+
i0__namespace.ɵɵelementStart(1, "h1", 10);
|
|
11909
11976
|
i0__namespace.ɵɵtext(2, "Sorry, there is a problem with the service");
|
|
11910
11977
|
i0__namespace.ɵɵelementEnd();
|
|
11911
|
-
i0__namespace.ɵɵelementStart(3, "p",
|
|
11978
|
+
i0__namespace.ɵɵelementStart(3, "p", 11);
|
|
11912
11979
|
i0__namespace.ɵɵtext(4, "Try again later.");
|
|
11913
11980
|
i0__namespace.ɵɵelementEnd();
|
|
11914
11981
|
i0__namespace.ɵɵelementEnd();
|
|
11915
11982
|
}
|
|
11916
11983
|
}
|
|
11917
|
-
function
|
|
11984
|
+
function CaseFileViewFieldReadComponent_div_2_ng_container_8_Template(rf, ctx) {
|
|
11918
11985
|
if (rf & 1) {
|
|
11919
11986
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
11920
|
-
i0__namespace.ɵɵelement(1, "mv-media-viewer",
|
|
11987
|
+
i0__namespace.ɵɵelement(1, "mv-media-viewer", 18);
|
|
11921
11988
|
i0__namespace.ɵɵelementContainerEnd();
|
|
11922
11989
|
}
|
|
11923
11990
|
if (rf & 2) {
|
|
11924
|
-
var
|
|
11991
|
+
var ctx_r5 = i0__namespace.ɵɵnextContext(2);
|
|
11925
11992
|
i0__namespace.ɵɵadvance(1);
|
|
11926
|
-
i0__namespace.ɵɵproperty("url",
|
|
11993
|
+
i0__namespace.ɵɵproperty("url", ctx_r5.currentDocument.document_binary_url)("downloadFileName", ctx_r5.currentDocument.document_filename)("showToolbar", true)("contentType", ctx_r5.currentDocument.content_type)("enableAnnotations", true)("enableRedactions", true)("height", "94.5vh");
|
|
11927
11994
|
}
|
|
11928
11995
|
}
|
|
11929
|
-
function
|
|
11996
|
+
function CaseFileViewFieldReadComponent_div_2_Template(rf, ctx) {
|
|
11930
11997
|
if (rf & 1) {
|
|
11931
|
-
var
|
|
11998
|
+
var _r7_1 = i0__namespace.ɵɵgetCurrentView();
|
|
11932
11999
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
11933
|
-
i0__namespace.ɵɵelementStart(1, "h2",
|
|
12000
|
+
i0__namespace.ɵɵelementStart(1, "h2", 12);
|
|
11934
12001
|
i0__namespace.ɵɵtext(2, "Case file");
|
|
11935
12002
|
i0__namespace.ɵɵelementEnd();
|
|
11936
|
-
i0__namespace.ɵɵelementStart(3, "div",
|
|
11937
|
-
i0__namespace.ɵɵelementStart(4, "div",
|
|
11938
|
-
i0__namespace.ɵɵelementStart(5, "ccd-case-file-view-folder",
|
|
11939
|
-
i0__namespace.ɵɵlistener("clickedDocument", function
|
|
12003
|
+
i0__namespace.ɵɵelementStart(3, "div", 13);
|
|
12004
|
+
i0__namespace.ɵɵelementStart(4, "div", 14);
|
|
12005
|
+
i0__namespace.ɵɵelementStart(5, "ccd-case-file-view-folder", 15);
|
|
12006
|
+
i0__namespace.ɵɵlistener("clickedDocument", function CaseFileViewFieldReadComponent_div_2_Template_ccd_case_file_view_folder_clickedDocument_5_listener($event) { i0__namespace.ɵɵrestoreView(_r7_1); var ctx_r6 = i0__namespace.ɵɵnextContext(); ctx_r6.setMediaViewerFile($event); return ctx_r6.resetErrorMessages(); })("moveDocument", function CaseFileViewFieldReadComponent_div_2_Template_ccd_case_file_view_folder_moveDocument_5_listener($event) { i0__namespace.ɵɵrestoreView(_r7_1); var ctx_r8 = i0__namespace.ɵɵnextContext(); return ctx_r8.moveDocument($event); });
|
|
11940
12007
|
i0__namespace.ɵɵelementEnd();
|
|
11941
12008
|
i0__namespace.ɵɵelementEnd();
|
|
11942
|
-
i0__namespace.ɵɵelement(6, "div",
|
|
11943
|
-
i0__namespace.ɵɵelementStart(7, "div",
|
|
11944
|
-
i0__namespace.ɵɵtemplate(8,
|
|
12009
|
+
i0__namespace.ɵɵelement(6, "div", 16);
|
|
12010
|
+
i0__namespace.ɵɵelementStart(7, "div", 17);
|
|
12011
|
+
i0__namespace.ɵɵtemplate(8, CaseFileViewFieldReadComponent_div_2_ng_container_8_Template, 2, 7, "ng-container", 0);
|
|
11945
12012
|
i0__namespace.ɵɵelementEnd();
|
|
11946
12013
|
i0__namespace.ɵɵelementEnd();
|
|
11947
12014
|
i0__namespace.ɵɵelementEnd();
|
|
11948
12015
|
}
|
|
11949
12016
|
if (rf & 2) {
|
|
11950
|
-
var
|
|
12017
|
+
var ctx_r2 = i0__namespace.ɵɵnextContext();
|
|
11951
12018
|
i0__namespace.ɵɵadvance(5);
|
|
11952
|
-
i0__namespace.ɵɵproperty("categoriesAndDocuments",
|
|
12019
|
+
i0__namespace.ɵɵproperty("categoriesAndDocuments", ctx_r2.categoriesAndDocuments$)("allowMoving", ctx_r2.allowMoving);
|
|
11953
12020
|
i0__namespace.ɵɵadvance(3);
|
|
11954
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
12021
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r2.currentDocument);
|
|
11955
12022
|
}
|
|
11956
12023
|
}
|
|
11957
12024
|
var CaseFileViewFieldReadComponent = /** @class */ (function (_super) {
|
|
11958
12025
|
__extends(CaseFileViewFieldReadComponent, _super);
|
|
11959
12026
|
function CaseFileViewFieldReadComponent() {
|
|
11960
12027
|
var _this = _super.apply(this, __spread(arguments)) || this;
|
|
11961
|
-
_this.allowMoving =
|
|
12028
|
+
_this.allowMoving = false;
|
|
11962
12029
|
return _this;
|
|
11963
12030
|
}
|
|
11964
12031
|
return CaseFileViewFieldReadComponent;
|
|
11965
12032
|
}(CaseFileViewFieldComponent));
|
|
11966
12033
|
CaseFileViewFieldReadComponent.ɵfac = function CaseFileViewFieldReadComponent_Factory(t) { return ɵCaseFileViewFieldReadComponent_BaseFactory(t || CaseFileViewFieldReadComponent); };
|
|
11967
|
-
CaseFileViewFieldReadComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldReadComponent, selectors: [["ccd-case-file-view-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls:
|
|
12034
|
+
CaseFileViewFieldReadComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldReadComponent, selectors: [["ccd-case-file-view-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 3, vars: 3, consts: [[4, "ngIf"], ["class", "govuk-grid-column-two-thirds", 4, "ngIf"], ["data-module", "govuk-error-summary", 1, "govuk-error-summary", "govuk-!-margin-bottom-4"], ["role", "alert"], [1, "govuk-error-summary__title"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [4, "ngFor", "ngForOf"], ["href", "javascript:void(0);"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-heading-xl"], [1, "govuk-body"], [1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [1, "document-tree-container__tree", 3, "categoriesAndDocuments", "allowMoving", "clickedDocument", "moveDocument"], [1, "slider"], [1, "media-viewer-container"], [3, "url", "downloadFileName", "showToolbar", "contentType", "enableAnnotations", "enableRedactions", "height"]], template: function CaseFileViewFieldReadComponent_Template(rf, ctx) {
|
|
11968
12035
|
if (rf & 1) {
|
|
11969
|
-
i0__namespace.ɵɵtemplate(0,
|
|
11970
|
-
i0__namespace.ɵɵtemplate(1, CaseFileViewFieldReadComponent_div_1_Template,
|
|
12036
|
+
i0__namespace.ɵɵtemplate(0, CaseFileViewFieldReadComponent_ng_container_0_Template, 8, 1, "ng-container", 0);
|
|
12037
|
+
i0__namespace.ɵɵtemplate(1, CaseFileViewFieldReadComponent_div_1_Template, 5, 0, "div", 1);
|
|
12038
|
+
i0__namespace.ɵɵtemplate(2, CaseFileViewFieldReadComponent_div_2_Template, 9, 3, "div", 0);
|
|
11971
12039
|
}
|
|
11972
12040
|
if (rf & 2) {
|
|
12041
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.errorMessages == null ? null : ctx.errorMessages.length);
|
|
12042
|
+
i0__namespace.ɵɵadvance(1);
|
|
11973
12043
|
i0__namespace.ɵɵproperty("ngIf", ctx.getCategoriesAndDocumentsError);
|
|
11974
12044
|
i0__namespace.ɵɵadvance(1);
|
|
11975
12045
|
i0__namespace.ɵɵproperty("ngIf", !ctx.getCategoriesAndDocumentsError);
|
|
@@ -12073,18 +12143,14 @@
|
|
|
12073
12143
|
|
|
12074
12144
|
exports.UpdateFlagStep = void 0;
|
|
12075
12145
|
(function (UpdateFlagStep) {
|
|
12076
|
-
UpdateFlagStep["
|
|
12077
|
-
UpdateFlagStep["
|
|
12078
|
-
UpdateFlagStep["STATUS_HINT_TEXT"] = "Describe reason for status change, if choosing 'not approved' provide name for person approving decision";
|
|
12146
|
+
UpdateFlagStep["HINT_TEXT"] = "Explain why you are updating this flag. Do not include any sensitive information such as personal details.";
|
|
12147
|
+
UpdateFlagStep["CHARACTER_LIMIT_INFO"] = "You can enter up to 200 characters";
|
|
12079
12148
|
})(exports.UpdateFlagStep || (exports.UpdateFlagStep = {}));
|
|
12080
12149
|
|
|
12081
12150
|
function ReadCaseFlagFieldComponent_ng_container_1_Template(rf, ctx) {
|
|
12082
12151
|
if (rf & 1) {
|
|
12083
|
-
var _r3_1 = i0__namespace.ɵɵgetCurrentView();
|
|
12084
12152
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
12085
|
-
i0__namespace.ɵɵ
|
|
12086
|
-
i0__namespace.ɵɵlistener("changeButtonEmitter", function ReadCaseFlagFieldComponent_ng_container_1_Template_ccd_case_flag_summary_list_changeButtonEmitter_1_listener($event) { i0__namespace.ɵɵrestoreView(_r3_1); var ctx_r2 = i0__namespace.ɵɵnextContext(); return ctx_r2.navigateBackToForm($event); });
|
|
12087
|
-
i0__namespace.ɵɵelementEnd();
|
|
12153
|
+
i0__namespace.ɵɵelement(1, "ccd-case-flag-summary-list", 3);
|
|
12088
12154
|
i0__namespace.ɵɵelementContainerEnd();
|
|
12089
12155
|
}
|
|
12090
12156
|
if (rf & 2) {
|
|
@@ -12098,8 +12164,8 @@
|
|
|
12098
12164
|
i0__namespace.ɵɵelement(0, "ccd-case-flag-table", 8);
|
|
12099
12165
|
}
|
|
12100
12166
|
if (rf & 2) {
|
|
12101
|
-
var
|
|
12102
|
-
i0__namespace.ɵɵproperty("tableCaption",
|
|
12167
|
+
var flagData_r4 = i0__namespace.ɵɵnextContext().$implicit;
|
|
12168
|
+
i0__namespace.ɵɵproperty("tableCaption", flagData_r4.flags.partyName)("flagData", flagData_r4)("firstColumnHeader", "Party level flags");
|
|
12103
12169
|
}
|
|
12104
12170
|
}
|
|
12105
12171
|
function ReadCaseFlagFieldComponent_ng_container_2_div_3_Template(rf, ctx) {
|
|
@@ -12109,9 +12175,9 @@
|
|
|
12109
12175
|
i0__namespace.ɵɵelementEnd();
|
|
12110
12176
|
}
|
|
12111
12177
|
if (rf & 2) {
|
|
12112
|
-
var
|
|
12178
|
+
var flagData_r4 = ctx.$implicit;
|
|
12113
12179
|
i0__namespace.ɵɵadvance(1);
|
|
12114
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
12180
|
+
i0__namespace.ɵɵproperty("ngIf", flagData_r4.flags.partyName);
|
|
12115
12181
|
}
|
|
12116
12182
|
}
|
|
12117
12183
|
function ReadCaseFlagFieldComponent_ng_container_2_div_4_Template(rf, ctx) {
|
|
@@ -12121,9 +12187,9 @@
|
|
|
12121
12187
|
i0__namespace.ɵɵelementEnd();
|
|
12122
12188
|
}
|
|
12123
12189
|
if (rf & 2) {
|
|
12124
|
-
var
|
|
12190
|
+
var ctx_r3 = i0__namespace.ɵɵnextContext(2);
|
|
12125
12191
|
i0__namespace.ɵɵadvance(1);
|
|
12126
|
-
i0__namespace.ɵɵproperty("tableCaption", "Case level flags")("flagData",
|
|
12192
|
+
i0__namespace.ɵɵproperty("tableCaption", "Case level flags")("flagData", ctx_r3.caseLevelCaseFlagData)("firstColumnHeader", "Case flags");
|
|
12127
12193
|
}
|
|
12128
12194
|
}
|
|
12129
12195
|
function ReadCaseFlagFieldComponent_ng_container_2_Template(rf, ctx) {
|
|
@@ -12146,10 +12212,9 @@
|
|
|
12146
12212
|
}
|
|
12147
12213
|
var ReadCaseFlagFieldComponent = /** @class */ (function (_super) {
|
|
12148
12214
|
__extends(ReadCaseFlagFieldComponent, _super);
|
|
12149
|
-
function ReadCaseFlagFieldComponent(route
|
|
12215
|
+
function ReadCaseFlagFieldComponent(route) {
|
|
12150
12216
|
var _this = _super.call(this) || this;
|
|
12151
12217
|
_this.route = route;
|
|
12152
|
-
_this.router = router;
|
|
12153
12218
|
_this.paletteContext = exports.PaletteContext;
|
|
12154
12219
|
_this.caseLevelCaseFlagsFieldId = 'caseFlags';
|
|
12155
12220
|
_this.caseNameMissing = 'Case name missing';
|
|
@@ -12167,9 +12232,7 @@
|
|
|
12167
12232
|
if (this.route.snapshot.data.case && this.route.snapshot.data.case.tabs) {
|
|
12168
12233
|
this.flagsData = this.route.snapshot.data.case.tabs
|
|
12169
12234
|
.filter(function (tab) { return tab.fields && tab.fields
|
|
12170
|
-
|
|
12171
|
-
// required to ensure the correct instance is obtained
|
|
12172
|
-
.some(function (caseField) { return caseField.field_type.type === 'FlagLauncher' && caseField.id === _this.caseField.id; }); })[0].fields.reduce(function (flags, caseField) {
|
|
12235
|
+
.some(function (caseField) { return caseField.field_type.type === 'FlagLauncher'; }); })[0].fields.reduce(function (flags, caseField) {
|
|
12173
12236
|
return FieldsUtils.extractFlagsDataFromCaseField(flags, caseField, caseField.id, caseField);
|
|
12174
12237
|
}, []);
|
|
12175
12238
|
}
|
|
@@ -12190,8 +12253,6 @@
|
|
|
12190
12253
|
// which the new flag has been added
|
|
12191
12254
|
if (flagLauncherComponent.caseField.display_context_parameter === this.createMode &&
|
|
12192
12255
|
flagLauncherComponent.selectedFlagsLocation) {
|
|
12193
|
-
// this.flagLocation = flagLauncherComponent.selectedFlagsLocation;
|
|
12194
|
-
this.pathToFlagsFormGroup = flagLauncherComponent.selectedFlagsLocation.pathToFlagsFormGroup;
|
|
12195
12256
|
this.flagForSummaryDisplay = this.extractNewFlagToFlagDetailDisplayObject(flagLauncherComponent.selectedFlagsLocation);
|
|
12196
12257
|
// Set the display mode for the "Review flag details" summary page
|
|
12197
12258
|
this.summaryListDisplayMode = exports.CaseFlagSummaryListDisplayMode.CREATE;
|
|
@@ -12226,18 +12287,10 @@
|
|
|
12226
12287
|
}
|
|
12227
12288
|
return null;
|
|
12228
12289
|
};
|
|
12229
|
-
ReadCaseFlagFieldComponent.prototype.navigateBackToForm = function (fieldState) {
|
|
12230
|
-
this.router.navigate(['../createCaseFlagCaseFlagFormPage'], {
|
|
12231
|
-
relativeTo: this.route,
|
|
12232
|
-
state: {
|
|
12233
|
-
fieldState: fieldState,
|
|
12234
|
-
}
|
|
12235
|
-
});
|
|
12236
|
-
};
|
|
12237
12290
|
return ReadCaseFlagFieldComponent;
|
|
12238
12291
|
}(AbstractFieldReadComponent));
|
|
12239
|
-
ReadCaseFlagFieldComponent.ɵfac = function ReadCaseFlagFieldComponent_Factory(t) { return new (t || ReadCaseFlagFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute)
|
|
12240
|
-
ReadCaseFlagFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadCaseFlagFieldComponent, selectors: [["ccd-read-case-flag-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 3, vars: 2, consts: [[3, "ngSwitch"], [4, "ngSwitchCase"], [4, "ngSwitchDefault"], [3, "flagForSummaryDisplay", "summaryListDisplayMode"
|
|
12292
|
+
ReadCaseFlagFieldComponent.ɵfac = function ReadCaseFlagFieldComponent_Factory(t) { return new (t || ReadCaseFlagFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute)); };
|
|
12293
|
+
ReadCaseFlagFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadCaseFlagFieldComponent, selectors: [["ccd-read-case-flag-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 3, vars: 2, consts: [[3, "ngSwitch"], [4, "ngSwitchCase"], [4, "ngSwitchDefault"], [3, "flagForSummaryDisplay", "summaryListDisplayMode"], [1, "govuk-heading-l"], [4, "ngFor", "ngForOf"], [4, "ngIf"], [3, "tableCaption", "flagData", "firstColumnHeader", 4, "ngIf"], [3, "tableCaption", "flagData", "firstColumnHeader"]], template: function ReadCaseFlagFieldComponent_Template(rf, ctx) {
|
|
12241
12294
|
if (rf & 1) {
|
|
12242
12295
|
i0__namespace.ɵɵelementContainerStart(0, 0);
|
|
12243
12296
|
i0__namespace.ɵɵtemplate(1, ReadCaseFlagFieldComponent_ng_container_1_Template, 2, 2, "ng-container", 1);
|
|
@@ -12258,24 +12311,7 @@
|
|
|
12258
12311
|
templateUrl: './read-case-flag-field.component.html',
|
|
12259
12312
|
styleUrls: ['./read-case-flag-field.component.scss']
|
|
12260
12313
|
}]
|
|
12261
|
-
}], function () { return [{ type: i1__namespace$1.ActivatedRoute }
|
|
12262
|
-
})();
|
|
12263
|
-
|
|
12264
|
-
var CaseFlagStateService = /** @class */ (function () {
|
|
12265
|
-
function CaseFlagStateService() {
|
|
12266
|
-
this.formGroup = new i1$2.FormGroup({});
|
|
12267
|
-
}
|
|
12268
|
-
CaseFlagStateService.prototype.resetCache = function () {
|
|
12269
|
-
this.formGroup = new i1$2.FormGroup({});
|
|
12270
|
-
};
|
|
12271
|
-
return CaseFlagStateService;
|
|
12272
|
-
}());
|
|
12273
|
-
CaseFlagStateService.ɵfac = function CaseFlagStateService_Factory(t) { return new (t || CaseFlagStateService)(); };
|
|
12274
|
-
CaseFlagStateService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: CaseFlagStateService, factory: CaseFlagStateService.ɵfac });
|
|
12275
|
-
(function () {
|
|
12276
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFlagStateService, [{
|
|
12277
|
-
type: i0.Injectable
|
|
12278
|
-
}], null, null);
|
|
12314
|
+
}], function () { return [{ type: i1__namespace$1.ActivatedRoute }]; }, null);
|
|
12279
12315
|
})();
|
|
12280
12316
|
|
|
12281
12317
|
function WriteCaseFlagFieldComponent_div_0_div_3_Template(rf, ctx) {
|
|
@@ -12355,7 +12391,7 @@
|
|
|
12355
12391
|
if (rf & 2) {
|
|
12356
12392
|
var ctx_r9 = i0__namespace.ɵɵnextContext(2);
|
|
12357
12393
|
i0__namespace.ɵɵadvance(1);
|
|
12358
|
-
i0__namespace.ɵɵproperty("formGroup", ctx_r9.caseFlagParentFormGroup)("languages", ctx_r9.
|
|
12394
|
+
i0__namespace.ɵɵproperty("formGroup", ctx_r9.caseFlagParentFormGroup)("languages", ctx_r9.listOfValues)("flagCode", ctx_r9.flagCode);
|
|
12359
12395
|
}
|
|
12360
12396
|
}
|
|
12361
12397
|
function WriteCaseFlagFieldComponent_div_1_ng_container_7_Template(rf, ctx) {
|
|
@@ -12459,15 +12495,15 @@
|
|
|
12459
12495
|
}
|
|
12460
12496
|
var WriteCaseFlagFieldComponent = /** @class */ (function (_super) {
|
|
12461
12497
|
__extends(WriteCaseFlagFieldComponent, _super);
|
|
12462
|
-
function WriteCaseFlagFieldComponent(route, caseEditDataService
|
|
12498
|
+
function WriteCaseFlagFieldComponent(route, caseEditDataService) {
|
|
12463
12499
|
var _this = _super.call(this) || this;
|
|
12464
12500
|
_this.route = route;
|
|
12465
12501
|
_this.caseEditDataService = caseEditDataService;
|
|
12466
|
-
_this.location = location;
|
|
12467
|
-
_this.caseFlagStateService = caseFlagStateService;
|
|
12468
12502
|
_this.caseFlagFieldState = exports.CaseFlagFieldState;
|
|
12469
12503
|
_this.errorMessages = [];
|
|
12504
|
+
_this.caseFlagParentFormGroup = new i2.FormGroup({});
|
|
12470
12505
|
_this.flagCommentsOptional = false;
|
|
12506
|
+
_this.listOfValues = null;
|
|
12471
12507
|
_this.allCaseFlagStagesCompleted = false;
|
|
12472
12508
|
_this.updateMode = '#ARGUMENT(UPDATE)';
|
|
12473
12509
|
// Code for "Other" flag type as defined in Reference Data
|
|
@@ -12475,29 +12511,8 @@
|
|
|
12475
12511
|
_this.caseNameMissing = 'Case name missing';
|
|
12476
12512
|
return _this;
|
|
12477
12513
|
}
|
|
12478
|
-
Object.defineProperty(WriteCaseFlagFieldComponent.prototype, "flagType", {
|
|
12479
|
-
get: function () {
|
|
12480
|
-
var _a;
|
|
12481
|
-
return (_a = this.caseFlagParentFormGroup) === null || _a === void 0 ? void 0 : _a.value.flagType;
|
|
12482
|
-
},
|
|
12483
|
-
enumerable: false,
|
|
12484
|
-
configurable: true
|
|
12485
|
-
});
|
|
12486
|
-
Object.defineProperty(WriteCaseFlagFieldComponent.prototype, "selectedFlagsLocation", {
|
|
12487
|
-
get: function () {
|
|
12488
|
-
var _a;
|
|
12489
|
-
return (_a = this.caseFlagParentFormGroup) === null || _a === void 0 ? void 0 : _a.value.selectedLocation;
|
|
12490
|
-
},
|
|
12491
|
-
enumerable: false,
|
|
12492
|
-
configurable: true
|
|
12493
|
-
});
|
|
12494
12514
|
WriteCaseFlagFieldComponent.prototype.ngOnInit = function () {
|
|
12495
12515
|
var _this = this;
|
|
12496
|
-
var _a, _b;
|
|
12497
|
-
if (!(((_a = this.location.getState()) === null || _a === void 0 ? void 0 : _a['fieldState']) >= 0)) {
|
|
12498
|
-
this.caseFlagStateService.resetCache();
|
|
12499
|
-
}
|
|
12500
|
-
this.caseFlagParentFormGroup = this.caseFlagStateService.formGroup;
|
|
12501
12516
|
this.caseEditDataService.clearFormValidationErrors();
|
|
12502
12517
|
// Check for existing FlagLauncher control in parent and remove it - this is the only way to ensure its invalidity
|
|
12503
12518
|
// is set correctly at the start, when the component is reloaded and the control is re-registered. Otherwise, the
|
|
@@ -12506,7 +12521,7 @@
|
|
|
12506
12521
|
this.formGroup.removeControl(this.caseField.id);
|
|
12507
12522
|
}
|
|
12508
12523
|
// From this point, this.formGroup refers to the FormGroup for the FlagLauncher field, not the parent FormGroup
|
|
12509
|
-
this.formGroup = this.registerControl(new
|
|
12524
|
+
this.formGroup = this.registerControl(new i2.FormGroup({}, {
|
|
12510
12525
|
validators: function (_) {
|
|
12511
12526
|
if (!_this.allCaseFlagStagesCompleted) {
|
|
12512
12527
|
// Return an error to mark the FormGroup as invalid if not all Case Flag stages have been completed
|
|
@@ -12531,17 +12546,12 @@
|
|
|
12531
12546
|
// Set boolean indicating the display_context_parameter is "update"
|
|
12532
12547
|
this.isDisplayContextParameterUpdate =
|
|
12533
12548
|
this.setDisplayContextParameterUpdate((this.route.snapshot.data.eventTrigger.case_fields));
|
|
12534
|
-
// Set starting field state
|
|
12535
|
-
|
|
12536
|
-
this.fieldState = this.isDisplayContextParameterUpdate ? exports.CaseFlagFieldState.FLAG_MANAGE_CASE_FLAGS : exports.CaseFlagFieldState.FLAG_LOCATION;
|
|
12537
|
-
}
|
|
12538
|
-
else {
|
|
12539
|
-
this.fieldState = this.location.getState()['fieldState'];
|
|
12540
|
-
}
|
|
12549
|
+
// Set starting field state
|
|
12550
|
+
this.fieldState = this.isDisplayContextParameterUpdate ? exports.CaseFlagFieldState.FLAG_MANAGE_CASE_FLAGS : exports.CaseFlagFieldState.FLAG_LOCATION;
|
|
12541
12551
|
// Get case title, to be used by child components
|
|
12542
|
-
this.
|
|
12552
|
+
this.caseEditDataService.caseTitle$.subscribe({
|
|
12543
12553
|
next: function (title) {
|
|
12544
|
-
_this.caseTitle =
|
|
12554
|
+
_this.caseTitle = title.length > 0 ? title : _this.caseNameMissing;
|
|
12545
12555
|
}
|
|
12546
12556
|
});
|
|
12547
12557
|
}
|
|
@@ -12552,6 +12562,31 @@
|
|
|
12552
12562
|
};
|
|
12553
12563
|
WriteCaseFlagFieldComponent.prototype.onCaseFlagStateEmitted = function (caseFlagState) {
|
|
12554
12564
|
this.caseEditDataService.clearFormValidationErrors();
|
|
12565
|
+
// If the current state is CaseFlagFieldState.FLAG_LOCATION and a flag location (a Flags instance) has been selected,
|
|
12566
|
+
// set the parent Case Flag FormGroup for this component's children by using the provided pathToFlagsFormGroup, and
|
|
12567
|
+
// set the selected flag location on this component
|
|
12568
|
+
if (caseFlagState.currentCaseFlagFieldState === exports.CaseFlagFieldState.FLAG_LOCATION
|
|
12569
|
+
&& caseFlagState.selectedFlagsLocation
|
|
12570
|
+
&& caseFlagState.selectedFlagsLocation.pathToFlagsFormGroup) {
|
|
12571
|
+
this.setCaseFlagParentFormGroup(caseFlagState.selectedFlagsLocation.pathToFlagsFormGroup);
|
|
12572
|
+
this.selectedFlagsLocation = caseFlagState.selectedFlagsLocation;
|
|
12573
|
+
}
|
|
12574
|
+
// If the current state is CaseFlagFieldState.FLAG_TYPE, cache the flag name, path, hearing relevant indicator, code,
|
|
12575
|
+
// and "list of values" (currently applicable to language flag types)
|
|
12576
|
+
if (caseFlagState.currentCaseFlagFieldState === exports.CaseFlagFieldState.FLAG_TYPE) {
|
|
12577
|
+
this.flagName = caseFlagState.flagName;
|
|
12578
|
+
this.flagPath = caseFlagState.flagPath;
|
|
12579
|
+
this.hearingRelevantFlag = caseFlagState.hearingRelevantFlag;
|
|
12580
|
+
this.flagCode = caseFlagState.flagCode;
|
|
12581
|
+
this.listOfValues = caseFlagState.listOfValues;
|
|
12582
|
+
}
|
|
12583
|
+
// If the current state is CaseFlagFieldState.FLAG_MANAGE_CASE_FLAGS and a flag has been selected, set the parent
|
|
12584
|
+
// Case Flag FormGroup for this component's children by using the provided pathToFlagsFormGroup
|
|
12585
|
+
if (caseFlagState.currentCaseFlagFieldState === exports.CaseFlagFieldState.FLAG_MANAGE_CASE_FLAGS
|
|
12586
|
+
&& caseFlagState.selectedFlag
|
|
12587
|
+
&& caseFlagState.selectedFlag.pathToFlagsFormGroup) {
|
|
12588
|
+
this.setCaseFlagParentFormGroup(caseFlagState.selectedFlag.pathToFlagsFormGroup);
|
|
12589
|
+
}
|
|
12555
12590
|
this.errorMessages = caseFlagState.errorMessages;
|
|
12556
12591
|
this.selectedFlag = caseFlagState.selectedFlag;
|
|
12557
12592
|
// Validation succeeded; proceed to next state or final review stage ("Check your answers")
|
|
@@ -12571,12 +12606,11 @@
|
|
|
12571
12606
|
}
|
|
12572
12607
|
};
|
|
12573
12608
|
WriteCaseFlagFieldComponent.prototype.proceedToNextState = function () {
|
|
12574
|
-
var _a;
|
|
12575
12609
|
if (!this.isAtFinalState()) {
|
|
12576
12610
|
// Skip the "language interpreter" state if current state is CaseFlagFieldState.FLAG_TYPE and the flag type doesn't
|
|
12577
12611
|
// have a "list of values" - currently, this is present only for those flag types that require language interpreter
|
|
12578
12612
|
// selection
|
|
12579
|
-
if (this.fieldState === exports.CaseFlagFieldState.FLAG_TYPE && !
|
|
12613
|
+
if (this.fieldState === exports.CaseFlagFieldState.FLAG_TYPE && !this.listOfValues) {
|
|
12580
12614
|
this.fieldState = exports.CaseFlagFieldState.FLAG_COMMENTS;
|
|
12581
12615
|
}
|
|
12582
12616
|
else {
|
|
@@ -12616,11 +12650,10 @@
|
|
|
12616
12650
|
}
|
|
12617
12651
|
}
|
|
12618
12652
|
});
|
|
12619
|
-
var
|
|
12620
|
-
var flagDataRef = this.flagsData.find(function (item) { return item.pathToFlagsFormGroup === path; });
|
|
12621
|
-
var flagsCaseFieldValue = flagDataRef.caseField.value;
|
|
12653
|
+
var flagsCaseFieldValue = this.selectedFlagsLocation.caseField.value;
|
|
12622
12654
|
// Use the pathToFlagsFormGroup property from the selected flag location to drill down to the correct part of the
|
|
12623
12655
|
// CaseField value to apply changes to
|
|
12656
|
+
var path = this.selectedFlagsLocation.pathToFlagsFormGroup;
|
|
12624
12657
|
// Root-level Flags CaseFields don't have a dot-delimited path - just the CaseField ID itself - so don't drill down
|
|
12625
12658
|
if (path.indexOf('.') > -1) {
|
|
12626
12659
|
path.slice(path.indexOf('.') + 1).split('.').forEach(function (part) { return flagsCaseFieldValue = flagsCaseFieldValue[part]; });
|
|
@@ -12628,8 +12661,8 @@
|
|
|
12628
12661
|
// If the CaseField for the selected flags location has no value, set it to an empty object so it can be populated
|
|
12629
12662
|
// with flag details
|
|
12630
12663
|
if (!flagsCaseFieldValue) {
|
|
12631
|
-
|
|
12632
|
-
flagsCaseFieldValue =
|
|
12664
|
+
this.selectedFlagsLocation.caseField.value = {};
|
|
12665
|
+
flagsCaseFieldValue = this.selectedFlagsLocation.caseField.value;
|
|
12633
12666
|
}
|
|
12634
12667
|
// Create a details array if one does not exist
|
|
12635
12668
|
if (!flagsCaseFieldValue.hasOwnProperty('details')) {
|
|
@@ -12711,22 +12744,38 @@
|
|
|
12711
12744
|
WriteCaseFlagFieldComponent.prototype.onFlagCommentsOptionalEmitted = function (_) {
|
|
12712
12745
|
this.flagCommentsOptional = true;
|
|
12713
12746
|
};
|
|
12747
|
+
/**
|
|
12748
|
+
* Set the parent {@link FormGroup} for this component's children, depending on the `Flags` {@link CaseField} instance
|
|
12749
|
+
* to which data should be attached. **Note:** The parent is not _this_ component's `FormGroup` (as might otherwise be
|
|
12750
|
+
* expected) because this component is not expected to have a value, given it is used for the empty `FlagLauncher` base
|
|
12751
|
+
* field type.
|
|
12752
|
+
*
|
|
12753
|
+
* @param pathToFlagsFormGroup The dot-delimited string that is the path to the `FormGroup` for a `Flags` instance
|
|
12754
|
+
*/
|
|
12755
|
+
WriteCaseFlagFieldComponent.prototype.setCaseFlagParentFormGroup = function (pathToFlagsFormGroup) {
|
|
12756
|
+
this.caseFlagParentFormGroup = this.formGroup.parent.get(pathToFlagsFormGroup);
|
|
12757
|
+
};
|
|
12714
12758
|
WriteCaseFlagFieldComponent.prototype.populateNewFlagDetailInstance = function () {
|
|
12715
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
12716
|
-
var formValues = (_a = this.caseFlagParentFormGroup) === null || _a === void 0 ? void 0 : _a.value;
|
|
12717
12759
|
return {
|
|
12718
|
-
name:
|
|
12760
|
+
name: this.flagName,
|
|
12719
12761
|
// Currently, subTypeValue and subTypeKey are applicable only to language flag types
|
|
12720
|
-
subTypeValue:
|
|
12762
|
+
subTypeValue: this.caseFlagParentFormGroup.value.languageSearchTerm
|
|
12763
|
+
? this.caseFlagParentFormGroup.value.languageSearchTerm.value
|
|
12764
|
+
: this.caseFlagParentFormGroup.value.manualLanguageEntry
|
|
12765
|
+
? this.caseFlagParentFormGroup.value.manualLanguageEntry
|
|
12766
|
+
: null,
|
|
12721
12767
|
// For user-entered (i.e. non-Reference Data) languages, there is no key
|
|
12722
|
-
subTypeKey:
|
|
12723
|
-
|
|
12724
|
-
|
|
12725
|
-
|
|
12768
|
+
subTypeKey: this.caseFlagParentFormGroup.value.languageSearchTerm
|
|
12769
|
+
? this.caseFlagParentFormGroup.value.languageSearchTerm.key
|
|
12770
|
+
: null,
|
|
12771
|
+
otherDescription: this.flagCode === this.otherFlagTypeCode && this.caseFlagParentFormGroup.value.otherFlagTypeDescription
|
|
12772
|
+
? this.caseFlagParentFormGroup.value.otherFlagTypeDescription
|
|
12773
|
+
: null,
|
|
12774
|
+
flagComment: this.caseFlagParentFormGroup.value.flagComments ? this.caseFlagParentFormGroup.value.flagComments : null,
|
|
12726
12775
|
dateTimeCreated: new Date().toISOString(),
|
|
12727
|
-
path:
|
|
12728
|
-
hearingRelevant:
|
|
12729
|
-
flagCode:
|
|
12776
|
+
path: this.flagPath,
|
|
12777
|
+
hearingRelevant: this.hearingRelevantFlag ? 'Yes' : 'No',
|
|
12778
|
+
flagCode: this.flagCode,
|
|
12730
12779
|
status: exports.CaseFlagStatus.ACTIVE
|
|
12731
12780
|
};
|
|
12732
12781
|
};
|
|
@@ -12737,13 +12786,9 @@
|
|
|
12737
12786
|
this.formGroup.updateValueAndValidity();
|
|
12738
12787
|
this.caseEditDataService.setTriggerSubmitEvent(true);
|
|
12739
12788
|
};
|
|
12740
|
-
WriteCaseFlagFieldComponent.prototype.ngOnDestroy = function () {
|
|
12741
|
-
var _a;
|
|
12742
|
-
(_a = this.caseTitleSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
12743
|
-
};
|
|
12744
12789
|
return WriteCaseFlagFieldComponent;
|
|
12745
12790
|
}(AbstractFieldWriteComponent));
|
|
12746
|
-
WriteCaseFlagFieldComponent.ɵfac = function WriteCaseFlagFieldComponent_Factory(t) { return new (t || WriteCaseFlagFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(CaseEditDataService)
|
|
12791
|
+
WriteCaseFlagFieldComponent.ɵfac = function WriteCaseFlagFieldComponent_Factory(t) { return new (t || WriteCaseFlagFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(CaseEditDataService)); };
|
|
12747
12792
|
WriteCaseFlagFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCaseFlagFieldComponent, selectors: [["ccd-write-case-flag-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 3, vars: 3, consts: [["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], ["class", "form-group", 3, "formGroup", 4, "ngIf"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], ["class", "govuk-error-summary__body", 4, "ngFor", "ngForOf"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [1, "validation-error", 3, "click"], [1, "form-group", 3, "formGroup"], [1, "govuk-form-group", 3, "ngSwitch"], ["id", "create-flag-caption", 1, "govuk-caption-l", 3, "ngClass"], [4, "ngSwitchCase"], [3, "formGroup", "flagsData", "caseFlagStateEmitter"], [3, "formGroup", "jurisdiction", "caseFlagStateEmitter", "flagCommentsOptionalEmitter"], [3, "formGroup", "languages", "flagCode", "caseFlagStateEmitter"], [3, "formGroup", "optional", "caseFlagStateEmitter"], [3, "formGroup", "flagsData", "caseTitle", "caseFlagStateEmitter"], [3, "formGroup", "selectedFlag", "caseFlagStateEmitter"]], template: function WriteCaseFlagFieldComponent_Template(rf, ctx) {
|
|
12748
12793
|
if (rf & 1) {
|
|
12749
12794
|
i0__namespace.ɵɵtemplate(0, WriteCaseFlagFieldComponent_div_0_Template, 4, 1, "div", 0);
|
|
@@ -12766,7 +12811,7 @@
|
|
|
12766
12811
|
templateUrl: './write-case-flag-field.component.html',
|
|
12767
12812
|
styleUrls: ['./write-case-flag-field.component.scss']
|
|
12768
12813
|
}]
|
|
12769
|
-
}], function () { return [{ type: i1__namespace$1.ActivatedRoute }, { type: CaseEditDataService }
|
|
12814
|
+
}], function () { return [{ type: i1__namespace$1.ActivatedRoute }, { type: CaseEditDataService }]; }, null);
|
|
12770
12815
|
})();
|
|
12771
12816
|
|
|
12772
12817
|
function ReadCaseLinkFieldComponent_a_0_Template(rf, ctx) {
|
|
@@ -12854,7 +12899,7 @@
|
|
|
12854
12899
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.caseReferenceControl.errors, ctx_r2.caseField.label));
|
|
12855
12900
|
}
|
|
12856
12901
|
}
|
|
12857
|
-
var _c1$
|
|
12902
|
+
var _c1$k = function (a0) { return { "form-group-error": a0 }; };
|
|
12858
12903
|
var WriteCaseLinkFieldComponent = /** @class */ (function (_super) {
|
|
12859
12904
|
__extends(WriteCaseLinkFieldComponent, _super);
|
|
12860
12905
|
function WriteCaseLinkFieldComponent() {
|
|
@@ -12863,13 +12908,13 @@
|
|
|
12863
12908
|
WriteCaseLinkFieldComponent.prototype.ngOnInit = function () {
|
|
12864
12909
|
var e_1, _a;
|
|
12865
12910
|
if (this.caseField.value) {
|
|
12866
|
-
this.caseLinkGroup = this.registerControl(new
|
|
12867
|
-
CaseReference: new
|
|
12911
|
+
this.caseLinkGroup = this.registerControl(new i2.FormGroup({
|
|
12912
|
+
CaseReference: new i2.FormControl(this.caseField.value.CaseReference, i2.Validators.required),
|
|
12868
12913
|
}), true);
|
|
12869
12914
|
}
|
|
12870
12915
|
else {
|
|
12871
|
-
this.caseLinkGroup = this.registerControl(new
|
|
12872
|
-
CaseReference: new
|
|
12916
|
+
this.caseLinkGroup = this.registerControl(new i2.FormGroup({
|
|
12917
|
+
CaseReference: new i2.FormControl(null, i2.Validators.required),
|
|
12873
12918
|
}), true);
|
|
12874
12919
|
}
|
|
12875
12920
|
this.caseReferenceControl = this.caseLinkGroup.controls['CaseReference'];
|
|
@@ -12938,7 +12983,7 @@
|
|
|
12938
12983
|
i0__namespace.ɵɵelementEnd();
|
|
12939
12984
|
}
|
|
12940
12985
|
if (rf & 2) {
|
|
12941
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$
|
|
12986
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$k, !ctx.caseReferenceControl.valid && (ctx.caseReferenceControl.dirty || ctx.caseReferenceControl.touched)));
|
|
12942
12987
|
i0__namespace.ɵɵadvance(1);
|
|
12943
12988
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
12944
12989
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -12950,7 +12995,7 @@
|
|
|
12950
12995
|
i0__namespace.ɵɵadvance(1);
|
|
12951
12996
|
i0__namespace.ɵɵproperty("id", ctx.id())("formControl", ctx.caseReferenceControl);
|
|
12952
12997
|
}
|
|
12953
|
-
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf,
|
|
12998
|
+
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
12954
12999
|
var ɵWriteCaseLinkFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteCaseLinkFieldComponent);
|
|
12955
13000
|
(function () {
|
|
12956
13001
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteCaseLinkFieldComponent, [{
|
|
@@ -12983,7 +13028,7 @@
|
|
|
12983
13028
|
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);
|
|
12984
13029
|
}
|
|
12985
13030
|
}
|
|
12986
|
-
var _c1$
|
|
13031
|
+
var _c1$j = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
|
|
12987
13032
|
function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) {
|
|
12988
13033
|
if (rf & 1) {
|
|
12989
13034
|
i0__namespace.ɵɵelementStart(0, "tr");
|
|
@@ -12997,7 +13042,7 @@
|
|
|
12997
13042
|
var i_r5 = ctx.index;
|
|
12998
13043
|
var ctx_r3 = i0__namespace.ɵɵnextContext(3);
|
|
12999
13044
|
i0__namespace.ɵɵadvance(2);
|
|
13000
|
-
i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction5(4, _c1$
|
|
13045
|
+
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));
|
|
13001
13046
|
}
|
|
13002
13047
|
}
|
|
13003
13048
|
function ReadCollectionFieldComponent_table_0_tbody_3_Template(rf, ctx) {
|
|
@@ -13087,7 +13132,7 @@
|
|
|
13087
13132
|
};
|
|
13088
13133
|
return RemoveDialogComponent;
|
|
13089
13134
|
}());
|
|
13090
|
-
RemoveDialogComponent.ɵfac = function RemoveDialogComponent_Factory(t) { return new (t || RemoveDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$
|
|
13135
|
+
RemoveDialogComponent.ɵfac = function RemoveDialogComponent_Factory(t) { return new (t || RemoveDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialogRef)); };
|
|
13091
13136
|
RemoveDialogComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: RemoveDialogComponent, selectors: [["ccd-remove-dialog"]], decls: 15, vars: 0, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Remove", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Cancel", 1, "button", "button-secondary", 3, "click"]], template: function RemoveDialogComponent_Template(rf, ctx) {
|
|
13092
13137
|
if (rf & 1) {
|
|
13093
13138
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
@@ -13128,7 +13173,7 @@
|
|
|
13128
13173
|
templateUrl: './remove-dialog.component.html',
|
|
13129
13174
|
styleUrls: ['../action-dialog.component.scss']
|
|
13130
13175
|
}]
|
|
13131
|
-
}], function () { return [{ type: i1__namespace$
|
|
13176
|
+
}], function () { return [{ type: i1__namespace$3.MatDialogRef }]; }, null);
|
|
13132
13177
|
})();
|
|
13133
13178
|
|
|
13134
13179
|
var _c0$L = ["collectionItem"];
|
|
@@ -13252,7 +13297,7 @@
|
|
|
13252
13297
|
this.profileSubscription = this.profileNotifier.profile.subscribe(function (_) { return _this.profile = _; });
|
|
13253
13298
|
}
|
|
13254
13299
|
this.caseField.value = this.caseField.value || [];
|
|
13255
|
-
this.formArray = this.registerControl(new
|
|
13300
|
+
this.formArray = this.registerControl(new i2.FormArray([]), true);
|
|
13256
13301
|
this.formArray['caseField'] = this.caseField;
|
|
13257
13302
|
this.caseField.value.forEach(function (item, index) {
|
|
13258
13303
|
var prefix = _this.buildIdPrefix(index);
|
|
@@ -13290,13 +13335,13 @@
|
|
|
13290
13335
|
group = this.formArray.at(index);
|
|
13291
13336
|
}
|
|
13292
13337
|
else {
|
|
13293
|
-
group = new
|
|
13338
|
+
group = new i2.FormGroup({});
|
|
13294
13339
|
}
|
|
13295
13340
|
var value;
|
|
13296
13341
|
if (this.isCollectionOfSimpleType(this.caseField)) {
|
|
13297
13342
|
value = group.get('value');
|
|
13298
13343
|
if (!value) {
|
|
13299
|
-
value = new
|
|
13344
|
+
value = new i2.FormControl(item.value);
|
|
13300
13345
|
// Now add the value FormControl to the outer group.
|
|
13301
13346
|
group.addControl('value', value);
|
|
13302
13347
|
}
|
|
@@ -13304,7 +13349,7 @@
|
|
|
13304
13349
|
else {
|
|
13305
13350
|
value = group.get('value');
|
|
13306
13351
|
if (!value) {
|
|
13307
|
-
value = new
|
|
13352
|
+
value = new i2.FormGroup({});
|
|
13308
13353
|
try {
|
|
13309
13354
|
for (var _b = __values(Object.keys(group.controls)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
13310
13355
|
var key = _c.value;
|
|
@@ -13330,7 +13375,7 @@
|
|
|
13330
13375
|
// and set up the id and value controls.
|
|
13331
13376
|
// Also set up an id control if it doesn't yet exist.
|
|
13332
13377
|
if (!id) {
|
|
13333
|
-
id = new
|
|
13378
|
+
id = new i2.FormControl(item.id);
|
|
13334
13379
|
group.addControl('id', id);
|
|
13335
13380
|
}
|
|
13336
13381
|
/**
|
|
@@ -13346,7 +13391,7 @@
|
|
|
13346
13391
|
}
|
|
13347
13392
|
// Now set up the CaseField and validation.
|
|
13348
13393
|
var cfid;
|
|
13349
|
-
if (value instanceof
|
|
13394
|
+
if (value instanceof i2.FormControl) {
|
|
13350
13395
|
cfid = 'value';
|
|
13351
13396
|
}
|
|
13352
13397
|
else {
|
|
@@ -13417,7 +13462,7 @@
|
|
|
13417
13462
|
};
|
|
13418
13463
|
WriteCollectionFieldComponent.prototype.getContainer = function (index) {
|
|
13419
13464
|
var value = this.formArray.at(index).get('value');
|
|
13420
|
-
if (value instanceof
|
|
13465
|
+
if (value instanceof i2.FormGroup) {
|
|
13421
13466
|
return value;
|
|
13422
13467
|
}
|
|
13423
13468
|
else {
|
|
@@ -13507,7 +13552,7 @@
|
|
|
13507
13552
|
};
|
|
13508
13553
|
WriteCollectionFieldComponent.prototype.openModal = function (i) {
|
|
13509
13554
|
var _this = this;
|
|
13510
|
-
var dialogConfig = new i1$
|
|
13555
|
+
var dialogConfig = new i1$3.MatDialogConfig();
|
|
13511
13556
|
dialogConfig.disableClose = true;
|
|
13512
13557
|
dialogConfig.autoFocus = true;
|
|
13513
13558
|
dialogConfig.ariaLabel = 'Label';
|
|
@@ -13541,7 +13586,7 @@
|
|
|
13541
13586
|
};
|
|
13542
13587
|
return WriteCollectionFieldComponent;
|
|
13543
13588
|
}(AbstractFieldWriteComponent));
|
|
13544
|
-
WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$
|
|
13589
|
+
WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.ScrollToService), i0__namespace.ɵɵdirectiveInject(ProfileNotifier)); };
|
|
13545
13590
|
WriteCollectionFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) {
|
|
13546
13591
|
if (rf & 1) {
|
|
13547
13592
|
i0__namespace.ɵɵviewQuery(_c0$L, 1);
|
|
@@ -13590,7 +13635,7 @@
|
|
|
13590
13635
|
templateUrl: './write-collection-field.html',
|
|
13591
13636
|
styleUrls: ['./collection-field.scss']
|
|
13592
13637
|
}]
|
|
13593
|
-
}], function () { return [{ type: i1__namespace$
|
|
13638
|
+
}], function () { return [{ type: i1__namespace$3.MatDialog }, { type: i2__namespace$1.ScrollToService }, { type: ProfileNotifier }]; }, { caseFields: [{
|
|
13594
13639
|
type: i0.Input
|
|
13595
13640
|
}], formGroup: [{
|
|
13596
13641
|
type: i0.Input
|
|
@@ -13753,7 +13798,7 @@
|
|
|
13753
13798
|
_this.caseFields = [];
|
|
13754
13799
|
_this.renderLabel = true;
|
|
13755
13800
|
_this.ignoreMandatory = false;
|
|
13756
|
-
_this.complexGroup = new
|
|
13801
|
+
_this.complexGroup = new i2.FormGroup({});
|
|
13757
13802
|
return _this;
|
|
13758
13803
|
}
|
|
13759
13804
|
WriteComplexFieldComponent.prototype.ngOnInit = function () {
|
|
@@ -13774,7 +13819,7 @@
|
|
|
13774
13819
|
var e_1, _a;
|
|
13775
13820
|
var control = this.complexGroup.get(caseField.id);
|
|
13776
13821
|
if (!control) {
|
|
13777
|
-
control = new
|
|
13822
|
+
control = new i2.FormControl(caseField.value);
|
|
13778
13823
|
this.complexGroup.addControl(caseField.id, control);
|
|
13779
13824
|
}
|
|
13780
13825
|
// Add validators for addresses, if appropriate.
|
|
@@ -14069,7 +14114,7 @@
|
|
|
14069
14114
|
};
|
|
14070
14115
|
return DocumentDialogComponent;
|
|
14071
14116
|
}());
|
|
14072
|
-
DocumentDialogComponent.ɵfac = function DocumentDialogComponent_Factory(t) { return new (t || DocumentDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$
|
|
14117
|
+
DocumentDialogComponent.ɵfac = function DocumentDialogComponent_Factory(t) { return new (t || DocumentDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialogRef)); };
|
|
14073
14118
|
DocumentDialogComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: DocumentDialogComponent, selectors: [["ccd-document-dialog"]], decls: 15, vars: 0, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Replace", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Cancel", 1, "button", "button-secondary", 3, "click"]], template: function DocumentDialogComponent_Template(rf, ctx) {
|
|
14074
14119
|
if (rf & 1) {
|
|
14075
14120
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
@@ -14110,7 +14155,7 @@
|
|
|
14110
14155
|
templateUrl: './document-dialog.component.html',
|
|
14111
14156
|
styleUrls: ['../action-dialog.component.scss']
|
|
14112
14157
|
}]
|
|
14113
|
-
}], function () { return [{ type: i1__namespace$
|
|
14158
|
+
}], function () { return [{ type: i1__namespace$3.MatDialogRef }]; }, null);
|
|
14114
14159
|
})();
|
|
14115
14160
|
|
|
14116
14161
|
var FileUploadStateService = /** @class */ (function () {
|
|
@@ -14166,7 +14211,7 @@
|
|
|
14166
14211
|
i0__namespace.ɵɵproperty("caseField", ctx_r2.caseField);
|
|
14167
14212
|
}
|
|
14168
14213
|
}
|
|
14169
|
-
var _c1$
|
|
14214
|
+
var _c1$i = function (a0) { return { "form-group-error bottom-30": a0 }; };
|
|
14170
14215
|
var WriteDocumentFieldComponent = /** @class */ (function (_super) {
|
|
14171
14216
|
__extends(WriteDocumentFieldComponent, _super);
|
|
14172
14217
|
function WriteDocumentFieldComponent(appConfig, caseNotifier, documentManagement, dialog, fileUploadStateService) {
|
|
@@ -14341,21 +14386,21 @@
|
|
|
14341
14386
|
};
|
|
14342
14387
|
WriteDocumentFieldComponent.prototype.createDocumentFormWithValidator = function (document) {
|
|
14343
14388
|
var documentFormGroup = {
|
|
14344
|
-
document_url: new
|
|
14345
|
-
document_binary_url: new
|
|
14346
|
-
document_filename: new
|
|
14389
|
+
document_url: new i2.FormControl(document.document_url, i2.Validators.required),
|
|
14390
|
+
document_binary_url: new i2.FormControl(document.document_binary_url, i2.Validators.required),
|
|
14391
|
+
document_filename: new i2.FormControl(document.document_filename, i2.Validators.required)
|
|
14347
14392
|
};
|
|
14348
|
-
documentFormGroup = this.secureModeOn ? Object.assign(Object.assign({}, documentFormGroup), { document_hash: new
|
|
14349
|
-
this.uploadedDocument = this.registerControl(new
|
|
14393
|
+
documentFormGroup = this.secureModeOn ? Object.assign(Object.assign({}, documentFormGroup), { document_hash: new i2.FormControl(document.document_hash) }) : documentFormGroup;
|
|
14394
|
+
this.uploadedDocument = this.registerControl(new i2.FormGroup(documentFormGroup), true);
|
|
14350
14395
|
};
|
|
14351
14396
|
WriteDocumentFieldComponent.prototype.createDocumentForm = function (document) {
|
|
14352
14397
|
var documentFormGroup = {
|
|
14353
|
-
document_url: new
|
|
14354
|
-
document_binary_url: new
|
|
14355
|
-
document_filename: new
|
|
14398
|
+
document_url: new i2.FormControl(document.document_url),
|
|
14399
|
+
document_binary_url: new i2.FormControl(document.document_binary_url),
|
|
14400
|
+
document_filename: new i2.FormControl(document.document_filename)
|
|
14356
14401
|
};
|
|
14357
|
-
documentFormGroup = this.secureModeOn ? Object.assign(Object.assign({}, documentFormGroup), { document_hash: new
|
|
14358
|
-
this.uploadedDocument = this.registerControl(new
|
|
14402
|
+
documentFormGroup = this.secureModeOn ? Object.assign(Object.assign({}, documentFormGroup), { document_hash: new i2.FormControl(document.document_hash) }) : documentFormGroup;
|
|
14403
|
+
this.uploadedDocument = this.registerControl(new i2.FormGroup(documentFormGroup), true);
|
|
14359
14404
|
};
|
|
14360
14405
|
WriteDocumentFieldComponent.prototype.getErrorMessage = function (error) {
|
|
14361
14406
|
// Document Management unavailable
|
|
@@ -14423,7 +14468,7 @@
|
|
|
14423
14468
|
WriteDocumentFieldComponent.UPLOAD_ERROR_FILE_REQUIRED = 'File required';
|
|
14424
14469
|
WriteDocumentFieldComponent.UPLOAD_ERROR_NOT_AVAILABLE = 'Document upload facility is not available at the moment';
|
|
14425
14470
|
WriteDocumentFieldComponent.UPLOAD_WAITING_FILE_STATUS = 'Uploading...';
|
|
14426
|
-
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$
|
|
14471
|
+
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)); };
|
|
14427
14472
|
WriteDocumentFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) {
|
|
14428
14473
|
if (rf & 1) {
|
|
14429
14474
|
i0__namespace.ɵɵviewQuery(_c0$K, 1);
|
|
@@ -14468,7 +14513,7 @@
|
|
|
14468
14513
|
i0__namespace.ɵɵelementEnd();
|
|
14469
14514
|
}
|
|
14470
14515
|
if (rf & 2) {
|
|
14471
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(15, _c1$
|
|
14516
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(15, _c1$i, !ctx.valid));
|
|
14472
14517
|
i0__namespace.ɵɵadvance(1);
|
|
14473
14518
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
14474
14519
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -14497,7 +14542,7 @@
|
|
|
14497
14542
|
selector: 'ccd-write-document-field',
|
|
14498
14543
|
templateUrl: './write-document-field.html'
|
|
14499
14544
|
}]
|
|
14500
|
-
}], function () { return [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1__namespace$
|
|
14545
|
+
}], function () { return [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1__namespace$3.MatDialog }, { type: FileUploadStateService }]; }, { fileInput: [{
|
|
14501
14546
|
type: i0.ViewChild,
|
|
14502
14547
|
args: ['fileInput', { static: false }]
|
|
14503
14548
|
}], clickout: [{
|
|
@@ -14651,7 +14696,7 @@
|
|
|
14651
14696
|
if (isNull || typeof this.caseField.value === 'object') {
|
|
14652
14697
|
this.caseField.value = null;
|
|
14653
14698
|
}
|
|
14654
|
-
this.dynamicListFormControl = this.registerControl(new
|
|
14699
|
+
this.dynamicListFormControl = this.registerControl(new i2.FormControl(this.caseField.value));
|
|
14655
14700
|
this.dynamicListFormControl.setValue(this.caseField.value);
|
|
14656
14701
|
};
|
|
14657
14702
|
return WriteDynamicListFieldComponent;
|
|
@@ -14693,7 +14738,7 @@
|
|
|
14693
14738
|
i0__namespace.ɵɵadvance(2);
|
|
14694
14739
|
i0__namespace.ɵɵproperty("ngForOf", ctx.caseField.list_items);
|
|
14695
14740
|
}
|
|
14696
|
-
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf,
|
|
14741
|
+
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.SelectControlValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective, i2__namespace.NgSelectOption, i2__namespace.ɵangular_packages_forms_forms_z, i1__namespace.NgForOf], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
14697
14742
|
var ɵWriteDynamicListFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteDynamicListFieldComponent);
|
|
14698
14743
|
(function () {
|
|
14699
14744
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteDynamicListFieldComponent, [{
|
|
@@ -14848,7 +14893,7 @@
|
|
|
14848
14893
|
i0__namespace.ɵɵtextInterpolate(radioButton_r5.label);
|
|
14849
14894
|
}
|
|
14850
14895
|
}
|
|
14851
|
-
var _c1$
|
|
14896
|
+
var _c1$h = function (a0) { return { "form-group-error": a0 }; };
|
|
14852
14897
|
var WriteDynamicRadioListFieldComponent = /** @class */ (function (_super) {
|
|
14853
14898
|
__extends(WriteDynamicRadioListFieldComponent, _super);
|
|
14854
14899
|
function WriteDynamicRadioListFieldComponent() {
|
|
@@ -14869,7 +14914,7 @@
|
|
|
14869
14914
|
if (isNull || typeof this.caseField.value === 'object') {
|
|
14870
14915
|
this.caseField.value = [];
|
|
14871
14916
|
}
|
|
14872
|
-
this.dynamicRadioListControl = this.registerControl(new
|
|
14917
|
+
this.dynamicRadioListControl = this.registerControl(new i2.FormControl(this.caseField.value));
|
|
14873
14918
|
this.dynamicRadioListControl.setValue(this.caseField.value);
|
|
14874
14919
|
};
|
|
14875
14920
|
WriteDynamicRadioListFieldComponent.prototype.buildElementId = function (name) {
|
|
@@ -14896,7 +14941,7 @@
|
|
|
14896
14941
|
i0__namespace.ɵɵelementEnd();
|
|
14897
14942
|
}
|
|
14898
14943
|
if (rf & 2) {
|
|
14899
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c1$
|
|
14944
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c1$h, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
|
|
14900
14945
|
i0__namespace.ɵɵadvance(3);
|
|
14901
14946
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
14902
14947
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -14910,7 +14955,7 @@
|
|
|
14910
14955
|
i0__namespace.ɵɵadvance(2);
|
|
14911
14956
|
i0__namespace.ɵɵproperty("ngForOf", ctx.caseField.list_items);
|
|
14912
14957
|
}
|
|
14913
|
-
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf,
|
|
14958
|
+
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf, i2__namespace.RadioControlValueAccessor, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
14914
14959
|
var ɵWriteDynamicRadioListFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteDynamicRadioListFieldComponent);
|
|
14915
14960
|
(function () {
|
|
14916
14961
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteDynamicRadioListFieldComponent, [{
|
|
@@ -15004,14 +15049,14 @@
|
|
|
15004
15049
|
}
|
|
15005
15050
|
}
|
|
15006
15051
|
var _c0$H = function (a0) { return { "form-group-error": a0 }; };
|
|
15007
|
-
var _c1$
|
|
15052
|
+
var _c1$g = function (a0) { return { "govuk-input--error": a0 }; };
|
|
15008
15053
|
var WriteEmailFieldComponent = /** @class */ (function (_super) {
|
|
15009
15054
|
__extends(WriteEmailFieldComponent, _super);
|
|
15010
15055
|
function WriteEmailFieldComponent() {
|
|
15011
15056
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
15012
15057
|
}
|
|
15013
15058
|
WriteEmailFieldComponent.prototype.ngOnInit = function () {
|
|
15014
|
-
this.emailControl = this.registerControl(new
|
|
15059
|
+
this.emailControl = this.registerControl(new i2.FormControl(this.caseField.value));
|
|
15015
15060
|
};
|
|
15016
15061
|
return WriteEmailFieldComponent;
|
|
15017
15062
|
}(AbstractFieldWriteComponent));
|
|
@@ -15038,9 +15083,9 @@
|
|
|
15038
15083
|
i0__namespace.ɵɵadvance(1);
|
|
15039
15084
|
i0__namespace.ɵɵproperty("ngIf", ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched));
|
|
15040
15085
|
i0__namespace.ɵɵadvance(1);
|
|
15041
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$
|
|
15086
|
+
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);
|
|
15042
15087
|
}
|
|
15043
|
-
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf,
|
|
15088
|
+
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
15044
15089
|
var ɵWriteEmailFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteEmailFieldComponent);
|
|
15045
15090
|
(function () {
|
|
15046
15091
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteEmailFieldComponent, [{
|
|
@@ -15186,7 +15231,7 @@
|
|
|
15186
15231
|
if (isNull) {
|
|
15187
15232
|
this.caseField.value = null;
|
|
15188
15233
|
}
|
|
15189
|
-
this.fixedListFormControl = this.registerControl(new
|
|
15234
|
+
this.fixedListFormControl = this.registerControl(new i2.FormControl(this.caseField.value));
|
|
15190
15235
|
this.fixedListFormControl.setValue(this.caseField.value);
|
|
15191
15236
|
};
|
|
15192
15237
|
return WriteFixedListFieldComponent;
|
|
@@ -15225,7 +15270,7 @@
|
|
|
15225
15270
|
i0__namespace.ɵɵadvance(2);
|
|
15226
15271
|
i0__namespace.ɵɵproperty("ngForOf", ctx.listItems);
|
|
15227
15272
|
}
|
|
15228
|
-
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf,
|
|
15273
|
+
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.SelectControlValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective, i2__namespace.NgSelectOption, i2__namespace.ɵangular_packages_forms_forms_z, i1__namespace.NgForOf], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
15229
15274
|
var ɵWriteFixedListFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteFixedListFieldComponent);
|
|
15230
15275
|
(function () {
|
|
15231
15276
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteFixedListFieldComponent, [{
|
|
@@ -15349,7 +15394,7 @@
|
|
|
15349
15394
|
i0__namespace.ɵɵtextInterpolate(radioButton_r4.label);
|
|
15350
15395
|
}
|
|
15351
15396
|
}
|
|
15352
|
-
var _c1$
|
|
15397
|
+
var _c1$f = function (a0) { return { "form-group-error": a0 }; };
|
|
15353
15398
|
var WriteFixedRadioListFieldComponent = /** @class */ (function (_super) {
|
|
15354
15399
|
__extends(WriteFixedRadioListFieldComponent, _super);
|
|
15355
15400
|
function WriteFixedRadioListFieldComponent() {
|
|
@@ -15357,7 +15402,7 @@
|
|
|
15357
15402
|
}
|
|
15358
15403
|
WriteFixedRadioListFieldComponent.prototype.ngOnInit = function () {
|
|
15359
15404
|
var notEmpty = this.caseField.value !== null && this.caseField.value !== undefined;
|
|
15360
|
-
this.fixedRadioListControl = this.registerControl(new
|
|
15405
|
+
this.fixedRadioListControl = this.registerControl(new i2.FormControl(notEmpty ? this.caseField.value : null));
|
|
15361
15406
|
};
|
|
15362
15407
|
return WriteFixedRadioListFieldComponent;
|
|
15363
15408
|
}(AbstractFieldWriteComponent));
|
|
@@ -15380,7 +15425,7 @@
|
|
|
15380
15425
|
i0__namespace.ɵɵelementEnd();
|
|
15381
15426
|
}
|
|
15382
15427
|
if (rf & 2) {
|
|
15383
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$
|
|
15428
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$f, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
|
|
15384
15429
|
i0__namespace.ɵɵadvance(3);
|
|
15385
15430
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
15386
15431
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -15392,7 +15437,7 @@
|
|
|
15392
15437
|
i0__namespace.ɵɵadvance(2);
|
|
15393
15438
|
i0__namespace.ɵɵproperty("ngForOf", ctx.caseField.field_type.fixed_list_items);
|
|
15394
15439
|
}
|
|
15395
|
-
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf,
|
|
15440
|
+
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf, i2__namespace.RadioControlValueAccessor, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
15396
15441
|
var ɵWriteFixedRadioListFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteFixedRadioListFieldComponent);
|
|
15397
15442
|
(function () {
|
|
15398
15443
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteFixedRadioListFieldComponent, [{
|
|
@@ -15552,10 +15597,10 @@
|
|
|
15552
15597
|
WriteJudicialUserFieldComponent.prototype.ngOnInit = function () {
|
|
15553
15598
|
var _this = this;
|
|
15554
15599
|
this.jurisdictionId = this.route.snapshot.params[this.JURISDICTION_ID];
|
|
15555
|
-
this.judicialUserFormGroup = this.registerControl(new
|
|
15556
|
-
this.idamIdFormControl = new
|
|
15600
|
+
this.judicialUserFormGroup = this.registerControl(new i2.FormGroup({}), true);
|
|
15601
|
+
this.idamIdFormControl = new i2.FormControl('');
|
|
15557
15602
|
this.judicialUserFormGroup.addControl(this.IDAM_ID, this.idamIdFormControl);
|
|
15558
|
-
this.personalCodeFormControl = new
|
|
15603
|
+
this.personalCodeFormControl = new i2.FormControl('');
|
|
15559
15604
|
this.judicialUserFormGroup.addControl(this.PERSONAL_CODE, this.personalCodeFormControl);
|
|
15560
15605
|
this.sub = this.idamIdFormControl.valueChanges.pipe(operators.tap(function () { return _this.showAutocomplete = false; }), operators.tap(function () { return _this.filteredJudicialUsers = []; }), operators.debounceTime(300), operators.filter(function (searchTerm) { return searchTerm && searchTerm.length > _this.MINIMUM_SEARCH_CHARACTERS; }), operators.switchMap(function (searchTerm) { return _this.filter(searchTerm).pipe(operators.tap(function () { return _this.showAutocomplete = true; }), operators.catchError(function () { return _this.filteredJudicialUsers = []; })); })).subscribe(function (judicialUsers) {
|
|
15561
15606
|
_this.filteredJudicialUsers = judicialUsers;
|
|
@@ -15606,7 +15651,7 @@
|
|
|
15606
15651
|
i0__namespace.ɵɵadvance(1);
|
|
15607
15652
|
i0__namespace.ɵɵproperty("ngIf", !(ctx.filteredJudicialUsers == null ? null : ctx.filteredJudicialUsers.length) && ctx.showAutocomplete);
|
|
15608
15653
|
}
|
|
15609
|
-
}, directives: [
|
|
15654
|
+
}, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i5__namespace.MatAutocompleteTrigger, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective, i5__namespace.MatAutocomplete, i1__namespace.NgForOf, i6__namespace.MatOption, i1__namespace.NgClass], pipes: [FieldLabelPipe], styles: [".mat-option[_ngcontent-%COMP%]:hover{background:#2596be}.mat-option.select-option[_ngcontent-%COMP%]:hover{background:#1d70b8;color:#fff}.hide-autocomplete[_ngcontent-%COMP%]{display:none}"] });
|
|
15610
15655
|
(function () {
|
|
15611
15656
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteJudicialUserFieldComponent, [{
|
|
15612
15657
|
type: i0.Component,
|
|
@@ -15681,7 +15726,7 @@
|
|
|
15681
15726
|
this.value = this.amount;
|
|
15682
15727
|
}
|
|
15683
15728
|
else if (this.caseField) {
|
|
15684
|
-
this.registerControl(new
|
|
15729
|
+
this.registerControl(new i2.FormControl(this.caseField.value));
|
|
15685
15730
|
this.value = this.caseField.value;
|
|
15686
15731
|
}
|
|
15687
15732
|
};
|
|
@@ -15782,12 +15827,12 @@
|
|
|
15782
15827
|
MoneyGbpInputComponent.ɵfac = function MoneyGbpInputComponent_Factory(t) { return new (t || MoneyGbpInputComponent)(); };
|
|
15783
15828
|
MoneyGbpInputComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: MoneyGbpInputComponent, selectors: [["ccd-money-gbp-input"]], inputs: { id: "id", name: "name", mandatory: "mandatory", formControl: "formControl" }, features: [i0__namespace.ɵɵProvidersFeature([
|
|
15784
15829
|
{
|
|
15785
|
-
provide:
|
|
15830
|
+
provide: i2.NG_VALUE_ACCESSOR,
|
|
15786
15831
|
useExisting: i0.forwardRef(function () { return MoneyGbpInputComponent; }),
|
|
15787
15832
|
multi: true,
|
|
15788
15833
|
},
|
|
15789
15834
|
{
|
|
15790
|
-
provide:
|
|
15835
|
+
provide: i2.NG_VALIDATORS,
|
|
15791
15836
|
useExisting: i0.forwardRef(function () { return MoneyGbpInputComponent; }),
|
|
15792
15837
|
multi: true,
|
|
15793
15838
|
}
|
|
@@ -15809,12 +15854,12 @@
|
|
|
15809
15854
|
template: "<input class=\"form-control form-control-1-8\"\n type=\"text\"\n [id]=\"id\"\n [name]=\"name\"\n [value]=\"displayValue\"\n (change)=\"onChange($event)\"\n (keyup)=\"onChange($event)\"\n [disabled]=\"disabled\"/>",
|
|
15810
15855
|
providers: [
|
|
15811
15856
|
{
|
|
15812
|
-
provide:
|
|
15857
|
+
provide: i2.NG_VALUE_ACCESSOR,
|
|
15813
15858
|
useExisting: i0.forwardRef(function () { return MoneyGbpInputComponent; }),
|
|
15814
15859
|
multi: true,
|
|
15815
15860
|
},
|
|
15816
15861
|
{
|
|
15817
|
-
provide:
|
|
15862
|
+
provide: i2.NG_VALIDATORS,
|
|
15818
15863
|
useExisting: i0.forwardRef(function () { return MoneyGbpInputComponent; }),
|
|
15819
15864
|
multi: true,
|
|
15820
15865
|
}
|
|
@@ -15876,7 +15921,7 @@
|
|
|
15876
15921
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
15877
15922
|
}
|
|
15878
15923
|
WriteMoneyGbpFieldComponent.prototype.ngOnInit = function () {
|
|
15879
|
-
this.moneyGbpControl = this.registerControl(new
|
|
15924
|
+
this.moneyGbpControl = this.registerControl(new i2.FormControl(this.caseField.value));
|
|
15880
15925
|
};
|
|
15881
15926
|
return WriteMoneyGbpFieldComponent;
|
|
15882
15927
|
}(AbstractFieldWriteComponent));
|
|
@@ -15911,7 +15956,7 @@
|
|
|
15911
15956
|
i0__namespace.ɵɵadvance(4);
|
|
15912
15957
|
i0__namespace.ɵɵproperty("id", ctx.id())("name", ctx.id())("mandatory", i0__namespace.ɵɵpipeBind1(9, 9, ctx.caseField))("formControl", ctx.moneyGbpControl);
|
|
15913
15958
|
}
|
|
15914
|
-
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, MoneyGbpInputComponent,
|
|
15959
|
+
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, MoneyGbpInputComponent, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [IsMandatoryPipe, FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
15915
15960
|
var ɵWriteMoneyGbpFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteMoneyGbpFieldComponent);
|
|
15916
15961
|
(function () {
|
|
15917
15962
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteMoneyGbpFieldComponent, [{
|
|
@@ -16055,12 +16100,12 @@
|
|
|
16055
16100
|
}
|
|
16056
16101
|
WriteMultiSelectListFieldComponent.prototype.ngOnInit = function () {
|
|
16057
16102
|
var _this = this;
|
|
16058
|
-
this.checkboxes = new
|
|
16103
|
+
this.checkboxes = new i2.FormArray([]);
|
|
16059
16104
|
// Initialise array with existing values
|
|
16060
16105
|
if (this.caseField.value && Array.isArray(this.caseField.value)) {
|
|
16061
16106
|
var values = this.caseField.value;
|
|
16062
16107
|
values.forEach(function (value) {
|
|
16063
|
-
_this.checkboxes.push(new
|
|
16108
|
+
_this.checkboxes.push(new i2.FormControl(value));
|
|
16064
16109
|
});
|
|
16065
16110
|
}
|
|
16066
16111
|
this.registerControl(this.checkboxes, true);
|
|
@@ -16068,7 +16113,7 @@
|
|
|
16068
16113
|
&& this.caseField.field_type.type === 'MultiSelectList' && this.caseField.field_type.fixed_list_items.length > 0
|
|
16069
16114
|
&& this.checkboxes.controls.length === 0) {
|
|
16070
16115
|
if (this.caseField.field_type.fixed_list_items[0].code) {
|
|
16071
|
-
this.checkboxes.push(new
|
|
16116
|
+
this.checkboxes.push(new i2.FormControl(this.caseField.field_type.fixed_list_items[0].code));
|
|
16072
16117
|
this.checkboxes.removeAt(0);
|
|
16073
16118
|
}
|
|
16074
16119
|
}
|
|
@@ -16077,7 +16122,7 @@
|
|
|
16077
16122
|
var _this = this;
|
|
16078
16123
|
if (!this.isSelected(event.target.value)) {
|
|
16079
16124
|
// Add a new control in the FormArray
|
|
16080
|
-
this.checkboxes.push(new
|
|
16125
|
+
this.checkboxes.push(new i2.FormControl(event.target.value));
|
|
16081
16126
|
}
|
|
16082
16127
|
else {
|
|
16083
16128
|
// Remove the control form the FormArray
|
|
@@ -16203,14 +16248,14 @@
|
|
|
16203
16248
|
}
|
|
16204
16249
|
}
|
|
16205
16250
|
var _c0$B = function (a0) { return { "form-group-error": a0 }; };
|
|
16206
|
-
var _c1$
|
|
16251
|
+
var _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
|
|
16207
16252
|
var WriteNumberFieldComponent = /** @class */ (function (_super) {
|
|
16208
16253
|
__extends(WriteNumberFieldComponent, _super);
|
|
16209
16254
|
function WriteNumberFieldComponent() {
|
|
16210
16255
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
16211
16256
|
}
|
|
16212
16257
|
WriteNumberFieldComponent.prototype.ngOnInit = function () {
|
|
16213
|
-
this.numberControl = this.registerControl(new
|
|
16258
|
+
this.numberControl = this.registerControl(new i2.FormControl(this.caseField.value));
|
|
16214
16259
|
};
|
|
16215
16260
|
return WriteNumberFieldComponent;
|
|
16216
16261
|
}(AbstractFieldWriteComponent));
|
|
@@ -16237,9 +16282,9 @@
|
|
|
16237
16282
|
i0__namespace.ɵɵadvance(1);
|
|
16238
16283
|
i0__namespace.ɵɵproperty("ngIf", ctx.numberControl.errors && ctx.numberControl.dirty);
|
|
16239
16284
|
i0__namespace.ɵɵadvance(1);
|
|
16240
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$
|
|
16285
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$e, ctx.numberControl.errors && ctx.numberControl.dirty))("id", ctx.id())("formControl", ctx.numberControl);
|
|
16241
16286
|
}
|
|
16242
|
-
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf,
|
|
16287
|
+
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.NumberValueAccessor, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
16243
16288
|
var ɵWriteNumberFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteNumberFieldComponent);
|
|
16244
16289
|
(function () {
|
|
16245
16290
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteNumberFieldComponent, [{
|
|
@@ -16341,24 +16386,24 @@
|
|
|
16341
16386
|
*/
|
|
16342
16387
|
WriteOrderSummaryFieldComponent.prototype.ngOnInit = function () {
|
|
16343
16388
|
var _this = this;
|
|
16344
|
-
var orderSummaryGroup = this.registerControl(new
|
|
16345
|
-
var paymentReference = new
|
|
16389
|
+
var orderSummaryGroup = this.registerControl(new i2.FormGroup({}), true);
|
|
16390
|
+
var paymentReference = new i2.FormControl(this.caseField.value.PaymentReference);
|
|
16346
16391
|
orderSummaryGroup.addControl('PaymentReference', paymentReference);
|
|
16347
|
-
var paymentTotal = new
|
|
16392
|
+
var paymentTotal = new i2.FormControl(this.caseField.value.PaymentTotal);
|
|
16348
16393
|
orderSummaryGroup.addControl('PaymentTotal', paymentTotal);
|
|
16349
|
-
var feesArray = new
|
|
16394
|
+
var feesArray = new i2.FormArray([]);
|
|
16350
16395
|
this.caseField.value.Fees.forEach(function (fee) {
|
|
16351
16396
|
feesArray.push(_this.getFeeValue(fee.value));
|
|
16352
16397
|
});
|
|
16353
16398
|
orderSummaryGroup.addControl('Fees', feesArray);
|
|
16354
16399
|
};
|
|
16355
16400
|
WriteOrderSummaryFieldComponent.prototype.getFeeValue = function (feeValue) {
|
|
16356
|
-
var feeGroup = new
|
|
16357
|
-
feeGroup.addControl('FeeCode', new
|
|
16358
|
-
feeGroup.addControl('FeeAmount', new
|
|
16359
|
-
feeGroup.addControl('FeeDescription', new
|
|
16360
|
-
feeGroup.addControl('FeeVersion', new
|
|
16361
|
-
var feeValueGroup = new
|
|
16401
|
+
var feeGroup = new i2.FormGroup({});
|
|
16402
|
+
feeGroup.addControl('FeeCode', new i2.FormControl(feeValue.FeeCode));
|
|
16403
|
+
feeGroup.addControl('FeeAmount', new i2.FormControl(feeValue.FeeAmount));
|
|
16404
|
+
feeGroup.addControl('FeeDescription', new i2.FormControl(feeValue.FeeDescription));
|
|
16405
|
+
feeGroup.addControl('FeeVersion', new i2.FormControl(feeValue.FeeVersion));
|
|
16406
|
+
var feeValueGroup = new i2.FormGroup({});
|
|
16362
16407
|
feeValueGroup.addControl('value', feeGroup);
|
|
16363
16408
|
return feeValueGroup;
|
|
16364
16409
|
};
|
|
@@ -16662,10 +16707,10 @@
|
|
|
16662
16707
|
var e_1, _a;
|
|
16663
16708
|
var _this = this;
|
|
16664
16709
|
this.organisations$ = this.organisationService.getActiveOrganisations();
|
|
16665
|
-
this.searchOrgTextFormControl = new
|
|
16710
|
+
this.searchOrgTextFormControl = new i2.FormControl('');
|
|
16666
16711
|
this.searchOrgValue$ = this.searchOrgTextFormControl.valueChanges;
|
|
16667
16712
|
this.searchOrgValue$.subscribe(function (value) { return _this.onSearchOrg(value); });
|
|
16668
|
-
this.organisationFormGroup = this.registerControl(new
|
|
16713
|
+
this.organisationFormGroup = this.registerControl(new i2.FormGroup({}), true);
|
|
16669
16714
|
if (this.parent && this.parent.controls && this.parent.controls.hasOwnProperty(WriteOrganisationFieldComponent.PRE_POPULATE_TO_USERS_ORGANISATION)
|
|
16670
16715
|
&& this.parent.controls[WriteOrganisationFieldComponent.PRE_POPULATE_TO_USERS_ORGANISATION].value
|
|
16671
16716
|
&& this.parent.controls[WriteOrganisationFieldComponent.PRE_POPULATE_TO_USERS_ORGANISATION].value.toUpperCase()
|
|
@@ -16781,10 +16826,10 @@
|
|
|
16781
16826
|
this.selectedOrg$ = rxjs.of(WriteOrganisationFieldComponent.EMPTY_SIMPLE_ORG);
|
|
16782
16827
|
};
|
|
16783
16828
|
WriteOrganisationFieldComponent.prototype.instantiateOrganisationFormGroup = function (orgIDState, orgNameState) {
|
|
16784
|
-
this.organisationIDFormControl = new
|
|
16829
|
+
this.organisationIDFormControl = new i2.FormControl(orgIDState);
|
|
16785
16830
|
this.addOrganisationValidators(this.caseField, this.organisationIDFormControl);
|
|
16786
16831
|
this.organisationFormGroup.addControl(WriteOrganisationFieldComponent.ORGANISATION_ID, this.organisationIDFormControl);
|
|
16787
|
-
this.organisationNameFormControl = new
|
|
16832
|
+
this.organisationNameFormControl = new i2.FormControl(orgNameState);
|
|
16788
16833
|
this.organisationFormGroup.addControl(WriteOrganisationFieldComponent.ORGANISATION_NAME, this.organisationNameFormControl);
|
|
16789
16834
|
};
|
|
16790
16835
|
WriteOrganisationFieldComponent.prototype.addOrganisationValidators = function (caseField, control) {
|
|
@@ -17017,14 +17062,14 @@
|
|
|
17017
17062
|
}
|
|
17018
17063
|
}
|
|
17019
17064
|
var _c0$z = function (a0) { return { "form-group-error": a0 }; };
|
|
17020
|
-
var _c1$
|
|
17065
|
+
var _c1$d = function (a0) { return { "govuk-input--error": a0 }; };
|
|
17021
17066
|
var WritePhoneUKFieldComponent = /** @class */ (function (_super) {
|
|
17022
17067
|
__extends(WritePhoneUKFieldComponent, _super);
|
|
17023
17068
|
function WritePhoneUKFieldComponent() {
|
|
17024
17069
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
17025
17070
|
}
|
|
17026
17071
|
WritePhoneUKFieldComponent.prototype.ngOnInit = function () {
|
|
17027
|
-
this.phoneUkControl = this.registerControl(new
|
|
17072
|
+
this.phoneUkControl = this.registerControl(new i2.FormControl(this.caseField.value));
|
|
17028
17073
|
};
|
|
17029
17074
|
return WritePhoneUKFieldComponent;
|
|
17030
17075
|
}(AbstractFieldWriteComponent));
|
|
@@ -17051,9 +17096,9 @@
|
|
|
17051
17096
|
i0__namespace.ɵɵadvance(1);
|
|
17052
17097
|
i0__namespace.ɵɵproperty("ngIf", ctx.phoneUkControl.errors && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched));
|
|
17053
17098
|
i0__namespace.ɵɵadvance(1);
|
|
17054
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$
|
|
17099
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$d, ctx.phoneUkControl.errors && ctx.phoneUkControl.dirty))("id", ctx.id())("formControl", ctx.phoneUkControl);
|
|
17055
17100
|
}
|
|
17056
|
-
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf,
|
|
17101
|
+
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
17057
17102
|
var ɵWritePhoneUKFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WritePhoneUKFieldComponent);
|
|
17058
17103
|
(function () {
|
|
17059
17104
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WritePhoneUKFieldComponent, [{
|
|
@@ -17134,7 +17179,7 @@
|
|
|
17134
17179
|
}
|
|
17135
17180
|
}
|
|
17136
17181
|
var _c0$y = function (a0) { return { "form-group-error": a0 }; };
|
|
17137
|
-
var _c1$
|
|
17182
|
+
var _c1$c = function (a0) { return { "govuk-textarea--error": a0 }; };
|
|
17138
17183
|
var WriteTextAreaFieldComponent = /** @class */ (function (_super) {
|
|
17139
17184
|
__extends(WriteTextAreaFieldComponent, _super);
|
|
17140
17185
|
function WriteTextAreaFieldComponent(browserService) {
|
|
@@ -17143,7 +17188,7 @@
|
|
|
17143
17188
|
return _this;
|
|
17144
17189
|
}
|
|
17145
17190
|
WriteTextAreaFieldComponent.prototype.ngOnInit = function () {
|
|
17146
|
-
this.textareaControl = this.registerControl(new
|
|
17191
|
+
this.textareaControl = this.registerControl(new i2.FormControl(this.caseField.value));
|
|
17147
17192
|
};
|
|
17148
17193
|
WriteTextAreaFieldComponent.prototype.autoGrow = function (event) {
|
|
17149
17194
|
if (this.browserService.isIEOrEdge()) {
|
|
@@ -17179,9 +17224,9 @@
|
|
|
17179
17224
|
i0__namespace.ɵɵadvance(1);
|
|
17180
17225
|
i0__namespace.ɵɵproperty("ngIf", ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched));
|
|
17181
17226
|
i0__namespace.ɵɵadvance(1);
|
|
17182
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$
|
|
17227
|
+
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);
|
|
17183
17228
|
}
|
|
17184
|
-
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf,
|
|
17229
|
+
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
17185
17230
|
(function () {
|
|
17186
17231
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteTextAreaFieldComponent, [{
|
|
17187
17232
|
type: i0.Component,
|
|
@@ -17262,14 +17307,14 @@
|
|
|
17262
17307
|
}
|
|
17263
17308
|
}
|
|
17264
17309
|
var _c0$x = function (a0) { return { "form-group-error": a0 }; };
|
|
17265
|
-
var _c1$
|
|
17310
|
+
var _c1$b = function (a0) { return { "govuk-input--error": a0 }; };
|
|
17266
17311
|
var WriteTextFieldComponent = /** @class */ (function (_super) {
|
|
17267
17312
|
__extends(WriteTextFieldComponent, _super);
|
|
17268
17313
|
function WriteTextFieldComponent() {
|
|
17269
17314
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
17270
17315
|
}
|
|
17271
17316
|
WriteTextFieldComponent.prototype.ngOnInit = function () {
|
|
17272
|
-
this.textControl = this.registerControl(new
|
|
17317
|
+
this.textControl = this.registerControl(new i2.FormControl(this.caseField.value));
|
|
17273
17318
|
};
|
|
17274
17319
|
WriteTextFieldComponent.prototype.onBlur = function ($event) {
|
|
17275
17320
|
$event.target.value = $event.target.value.trim();
|
|
@@ -17301,9 +17346,9 @@
|
|
|
17301
17346
|
i0__namespace.ɵɵadvance(1);
|
|
17302
17347
|
i0__namespace.ɵɵproperty("ngIf", (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched));
|
|
17303
17348
|
i0__namespace.ɵɵadvance(1);
|
|
17304
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$
|
|
17349
|
+
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);
|
|
17305
17350
|
}
|
|
17306
|
-
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf,
|
|
17351
|
+
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
17307
17352
|
var ɵWriteTextFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteTextFieldComponent);
|
|
17308
17353
|
(function () {
|
|
17309
17354
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteTextFieldComponent, [{
|
|
@@ -17522,7 +17567,7 @@
|
|
|
17522
17567
|
i0__namespace.ɵɵtextInterpolate(value_r4);
|
|
17523
17568
|
}
|
|
17524
17569
|
}
|
|
17525
|
-
var _c1$
|
|
17570
|
+
var _c1$a = function (a0) { return { "form-group-error": a0 }; };
|
|
17526
17571
|
var WriteYesNoFieldComponent = /** @class */ (function (_super) {
|
|
17527
17572
|
__extends(WriteYesNoFieldComponent, _super);
|
|
17528
17573
|
function WriteYesNoFieldComponent(yesNoService) {
|
|
@@ -17532,7 +17577,7 @@
|
|
|
17532
17577
|
return _this;
|
|
17533
17578
|
}
|
|
17534
17579
|
WriteYesNoFieldComponent.prototype.ngOnInit = function () {
|
|
17535
|
-
this.yesNoControl = this.registerControl(new
|
|
17580
|
+
this.yesNoControl = this.registerControl(new i2.FormControl(this.yesNoService.format(this.caseField.value)));
|
|
17536
17581
|
};
|
|
17537
17582
|
return WriteYesNoFieldComponent;
|
|
17538
17583
|
}(AbstractFieldWriteComponent));
|
|
@@ -17553,7 +17598,7 @@
|
|
|
17553
17598
|
i0__namespace.ɵɵelementEnd();
|
|
17554
17599
|
}
|
|
17555
17600
|
if (rf & 2) {
|
|
17556
|
-
i0__namespace.ɵɵproperty("id", ctx.id())("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$
|
|
17601
|
+
i0__namespace.ɵɵproperty("id", ctx.id())("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$a, !ctx.yesNoControl.valid && (ctx.yesNoControl.dirty || ctx.yesNoControl.touched)));
|
|
17557
17602
|
i0__namespace.ɵɵadvance(3);
|
|
17558
17603
|
i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
17559
17604
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -17565,7 +17610,7 @@
|
|
|
17565
17610
|
i0__namespace.ɵɵadvance(1);
|
|
17566
17611
|
i0__namespace.ɵɵproperty("ngForOf", ctx.yesNoValues);
|
|
17567
17612
|
}
|
|
17568
|
-
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf,
|
|
17613
|
+
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf, i2__namespace.RadioControlValueAccessor, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
17569
17614
|
(function () {
|
|
17570
17615
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteYesNoFieldComponent, [{
|
|
17571
17616
|
type: i0.Component,
|
|
@@ -17676,7 +17721,7 @@
|
|
|
17676
17721
|
_this.resolver = resolver;
|
|
17677
17722
|
_this.paletteService = paletteService;
|
|
17678
17723
|
_this.withLabel = false;
|
|
17679
|
-
_this.formGroup = new
|
|
17724
|
+
_this.formGroup = new i2.FormGroup({});
|
|
17680
17725
|
_this.caseFields = [];
|
|
17681
17726
|
return _this;
|
|
17682
17727
|
}
|
|
@@ -17965,7 +18010,7 @@
|
|
|
17965
18010
|
i0__namespace.ɵɵelementContainer(0);
|
|
17966
18011
|
}
|
|
17967
18012
|
}
|
|
17968
|
-
var _c1$
|
|
18013
|
+
var _c1$9 = function (a0, a1) { return { cat: a0, level: a1 }; };
|
|
17969
18014
|
function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template(rf, ctx) {
|
|
17970
18015
|
if (rf & 1) {
|
|
17971
18016
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
@@ -17978,7 +18023,7 @@
|
|
|
17978
18023
|
i0__namespace.ɵɵnextContext();
|
|
17979
18024
|
var _r1 = i0__namespace.ɵɵreference(13);
|
|
17980
18025
|
i0__namespace.ɵɵadvance(1);
|
|
17981
|
-
i0__namespace.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction2(2, _c1$
|
|
18026
|
+
i0__namespace.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction2(2, _c1$9, subcat_r8, level_r6 + 1));
|
|
17982
18027
|
}
|
|
17983
18028
|
}
|
|
17984
18029
|
function CaseFileViewFolderSelectorComponent_ng_template_12_Template(rf, ctx) {
|
|
@@ -18087,7 +18132,7 @@
|
|
|
18087
18132
|
};
|
|
18088
18133
|
return CaseFileViewFolderSelectorComponent;
|
|
18089
18134
|
}());
|
|
18090
|
-
CaseFileViewFolderSelectorComponent.ɵfac = function CaseFileViewFolderSelectorComponent_Factory(t) { return new (t || CaseFileViewFolderSelectorComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$
|
|
18135
|
+
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)); };
|
|
18091
18136
|
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) {
|
|
18092
18137
|
if (rf & 1) {
|
|
18093
18138
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
@@ -18131,9 +18176,9 @@
|
|
|
18131
18176
|
encapsulation: i0.ViewEncapsulation.None
|
|
18132
18177
|
}]
|
|
18133
18178
|
}], function () {
|
|
18134
|
-
return [{ type: i1__namespace$
|
|
18179
|
+
return [{ type: i1__namespace$3.MatDialogRef }, { type: undefined, decorators: [{
|
|
18135
18180
|
type: i0.Inject,
|
|
18136
|
-
args: [i1$
|
|
18181
|
+
args: [i1$3.MAT_DIALOG_DATA]
|
|
18137
18182
|
}] }];
|
|
18138
18183
|
}, null);
|
|
18139
18184
|
})();
|
|
@@ -18200,7 +18245,7 @@
|
|
|
18200
18245
|
}
|
|
18201
18246
|
}
|
|
18202
18247
|
var _c0$r = [[["", "trigger", ""]]];
|
|
18203
|
-
var _c1$
|
|
18248
|
+
var _c1$8 = ["[trigger]"];
|
|
18204
18249
|
var CaseFileViewOverlayMenuComponent = /** @class */ (function () {
|
|
18205
18250
|
function CaseFileViewOverlayMenuComponent() {
|
|
18206
18251
|
this.title = '';
|
|
@@ -18215,7 +18260,7 @@
|
|
|
18215
18260
|
return CaseFileViewOverlayMenuComponent;
|
|
18216
18261
|
}());
|
|
18217
18262
|
CaseFileViewOverlayMenuComponent.ɵfac = function CaseFileViewOverlayMenuComponent_Factory(t) { return new (t || CaseFileViewOverlayMenuComponent)(); };
|
|
18218
|
-
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$
|
|
18263
|
+
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) {
|
|
18219
18264
|
if (rf & 1) {
|
|
18220
18265
|
i0__namespace.ɵɵprojectionDef(_c0$r);
|
|
18221
18266
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
@@ -18232,7 +18277,7 @@
|
|
|
18232
18277
|
i0__namespace.ɵɵadvance(4);
|
|
18233
18278
|
i0__namespace.ɵɵproperty("cdkConnectedOverlayOrigin", _r0)("cdkConnectedOverlayOpen", ctx.isOpen)("cdkConnectedOverlayHasBackdrop", true)("cdkConnectedOverlayBackdropClass", "cdk-overlay-transparent-backdrop");
|
|
18234
18279
|
}
|
|
18235
|
-
}, directives: [i1__namespace$
|
|
18280
|
+
}, directives: [i1__namespace$4.CdkOverlayOrigin, i1__namespace$4.CdkConnectedOverlay, i1__namespace.NgIf, i1__namespace.NgForOf], styles: [".overlay-toggle[_ngcontent-%COMP%]{display:block;background:none;border:0;padding:0 6px;margin-right:-4px;cursor:pointer}.overlay-menu[_ngcontent-%COMP%]{background-color:#fafafa;border:1px solid grey;margin-top:8px;font-size:1rem}.overlay-menu__item[_ngcontent-%COMP%], .overlay-menu__title[_ngcontent-%COMP%]{padding:10px;border-bottom:1px solid grey}.overlay-menu__item[_ngcontent-%COMP%]:last-child, .overlay-menu__title[_ngcontent-%COMP%]:last-child{border:none}.overlay-menu__title[_ngcontent-%COMP%]{padding-left:6px;padding-right:6px}.overlay-menu__item[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer;font-size:.875em}.overlay-menu__item[_ngcontent-%COMP%]:hover{background-color:#fff2cc}.overlay-menu__itemIcon[_ngcontent-%COMP%]{height:1.25em;width:1.25em;margin-right:6px}"] });
|
|
18236
18281
|
(function () {
|
|
18237
18282
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewOverlayMenuComponent, [{
|
|
18238
18283
|
type: i0.Component,
|
|
@@ -18604,8 +18649,8 @@
|
|
|
18604
18649
|
});
|
|
18605
18650
|
CaseFileViewFolderComponent.prototype.ngOnInit = function () {
|
|
18606
18651
|
var _this = this;
|
|
18607
|
-
this.documentFilterFormGroup = new
|
|
18608
|
-
this.documentSearchFormControl = new
|
|
18652
|
+
this.documentFilterFormGroup = new i2.FormGroup({});
|
|
18653
|
+
this.documentSearchFormControl = new i2.FormControl('');
|
|
18609
18654
|
this.documentFilterFormGroup.addControl(CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME, this.documentSearchFormControl);
|
|
18610
18655
|
// Listen to search input and initiate filter documents if at least three characters entered
|
|
18611
18656
|
this.documentFilterSubscription = this.documentSearchFormControl.valueChanges.pipe(operators.tap(function (searchTerm) { return _this.searchTermLength = searchTerm.length; }), operators.switchMap(function (searchTerm) { return _this.filter(searchTerm.toLowerCase()).pipe(); })).subscribe(function (documentTreeData) {
|
|
@@ -18765,6 +18810,7 @@
|
|
|
18765
18810
|
data: { categories: this.categories, document: node }
|
|
18766
18811
|
});
|
|
18767
18812
|
dialogRef.afterClosed().subscribe(function (newCatId) {
|
|
18813
|
+
console.log(newCatId, node);
|
|
18768
18814
|
if (newCatId) {
|
|
18769
18815
|
_this.moveDocument.emit({ newCategory: newCatId, document: node });
|
|
18770
18816
|
}
|
|
@@ -18788,7 +18834,7 @@
|
|
|
18788
18834
|
CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised documents';
|
|
18789
18835
|
CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME = 'documentSearchFormControl';
|
|
18790
18836
|
CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 1;
|
|
18791
|
-
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$
|
|
18837
|
+
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)); };
|
|
18792
18838
|
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) {
|
|
18793
18839
|
if (rf & 1) {
|
|
18794
18840
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
@@ -18816,7 +18862,7 @@
|
|
|
18816
18862
|
i0__namespace.ɵɵadvance(3);
|
|
18817
18863
|
i0__namespace.ɵɵproperty("ngIf", ctx.documentTreeData);
|
|
18818
18864
|
}
|
|
18819
|
-
}, directives: [
|
|
18865
|
+
}, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName, CaseFileViewFolderSortComponent, i1__namespace.NgIf, i7__namespace.CdkTree, i7__namespace.CdkTreeNodeDef, i7__namespace.CdkNestedTreeNode, CaseFileViewFolderDocumentActionsComponent, i7__namespace.CdkTreeNodeToggle, i7__namespace.CdkTreeNodeOutlet], styles: ["[_nghost-%COMP%]{display:flex;height:100%;flex-direction:column}[_nghost-%COMP%] .document-tree-container[_ngcontent-%COMP%]{flex:1 0}.document-filter-container[_ngcontent-%COMP%]{border-bottom:2px solid #c9c9c9}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%]{padding:10px}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%] .document-search[_ngcontent-%COMP%]{background:url(/assets/images/icon-search-black.svg) no-repeat 100% #fff;background-position-x:calc(100% - 4px);padding-right:30px;width:100%}.document-filter-container[_ngcontent-%COMP%] .documents-title[_ngcontent-%COMP%]{height:30%;margin-left:8px;font-weight:700}.document-tree-container[_ngcontent-%COMP%]{padding:4px;overflow-x:hidden;overflow-y:scroll}.document-tree-container__node[_ngcontent-%COMP%]{display:block}.document-tree-container__node[_ngcontent-%COMP%] .document-tree-container__node[_ngcontent-%COMP%]{padding-left:40px}.document-tree-container[_ngcontent-%COMP%] .document-tree-invisible[_ngcontent-%COMP%]{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:7px}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border:4px solid transparent;background-clip:padding-box;border-radius:9999px;background-color:#aaa}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-button{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-track-piece{background:#eee}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#ccc}.document-folders-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #c9c9c9;padding:10px}.document-folders-header__title[_ngcontent-%COMP%]{font-weight:700}.node[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;padding:6px;background:none;border:0;cursor:pointer;white-space:nowrap}.node--selected[_ngcontent-%COMP%]{background:#fff2cc}.node__icon[_ngcontent-%COMP%]{position:relative;display:inline-block}.node__count[_ngcontent-%COMP%]{color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:.875rem;padding-top:4px}.node__iconImg[_ngcontent-%COMP%]{display:block;height:30px;width:30px}.node__name[_ngcontent-%COMP%]{margin-left:6px;font-size:1rem;overflow:hidden;text-overflow:ellipsis}.node__document-options[_ngcontent-%COMP%]{margin-left:auto;margin-right:0}"] });
|
|
18820
18866
|
(function () {
|
|
18821
18867
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderComponent, [{
|
|
18822
18868
|
type: i0.Component,
|
|
@@ -18825,7 +18871,7 @@
|
|
|
18825
18871
|
templateUrl: './case-file-view-folder.component.html',
|
|
18826
18872
|
styleUrls: ['./case-file-view-folder.component.scss'],
|
|
18827
18873
|
}]
|
|
18828
|
-
}], function () { return [{ type: WindowService }, { type: i1__namespace$1.Router }, { type: DocumentManagementService }, { type: i1__namespace$
|
|
18874
|
+
}], function () { return [{ type: WindowService }, { type: i1__namespace$1.Router }, { type: DocumentManagementService }, { type: i1__namespace$3.MatDialog }]; }, { categoriesAndDocuments: [{
|
|
18829
18875
|
type: i0.Input
|
|
18830
18876
|
}], allowMoving: [{
|
|
18831
18877
|
type: i0.Input
|
|
@@ -18847,32 +18893,25 @@
|
|
|
18847
18893
|
}
|
|
18848
18894
|
function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_15_Template(rf, ctx) {
|
|
18849
18895
|
if (rf & 1) {
|
|
18850
|
-
i0__namespace.ɵɵelementStart(0, "strong",
|
|
18896
|
+
i0__namespace.ɵɵelementStart(0, "strong", 19);
|
|
18851
18897
|
i0__namespace.ɵɵtext(1, "Active");
|
|
18852
18898
|
i0__namespace.ɵɵelementEnd();
|
|
18853
18899
|
}
|
|
18854
18900
|
}
|
|
18855
18901
|
function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_16_Template(rf, ctx) {
|
|
18856
18902
|
if (rf & 1) {
|
|
18857
|
-
i0__namespace.ɵɵelementStart(0, "strong",
|
|
18903
|
+
i0__namespace.ɵɵelementStart(0, "strong", 20);
|
|
18858
18904
|
i0__namespace.ɵɵtext(1, "Inactive");
|
|
18859
18905
|
i0__namespace.ɵɵelementEnd();
|
|
18860
18906
|
}
|
|
18861
18907
|
}
|
|
18862
18908
|
function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_17_Template(rf, ctx) {
|
|
18863
18909
|
if (rf & 1) {
|
|
18864
|
-
i0__namespace.ɵɵelementStart(0, "strong",
|
|
18910
|
+
i0__namespace.ɵɵelementStart(0, "strong", 20);
|
|
18865
18911
|
i0__namespace.ɵɵtext(1, "Requested");
|
|
18866
18912
|
i0__namespace.ɵɵelementEnd();
|
|
18867
18913
|
}
|
|
18868
18914
|
}
|
|
18869
|
-
function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_18_Template(rf, ctx) {
|
|
18870
|
-
if (rf & 1) {
|
|
18871
|
-
i0__namespace.ɵɵelementStart(0, "strong", 22);
|
|
18872
|
-
i0__namespace.ɵɵtext(1, "Not approved");
|
|
18873
|
-
i0__namespace.ɵɵelementEnd();
|
|
18874
|
-
}
|
|
18875
|
-
}
|
|
18876
18915
|
function CaseFlagTableComponent_table_0_tbody_17_tr_1_Template(rf, ctx) {
|
|
18877
18916
|
if (rf & 1) {
|
|
18878
18917
|
i0__namespace.ɵɵelementStart(0, "tr", 15);
|
|
@@ -18899,7 +18938,6 @@
|
|
|
18899
18938
|
i0__namespace.ɵɵtemplate(15, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_15_Template, 2, 0, "strong", 17);
|
|
18900
18939
|
i0__namespace.ɵɵtemplate(16, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_16_Template, 2, 0, "strong", 18);
|
|
18901
18940
|
i0__namespace.ɵɵtemplate(17, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_17_Template, 2, 0, "strong", 18);
|
|
18902
|
-
i0__namespace.ɵɵtemplate(18, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_18_Template, 2, 0, "strong", 19);
|
|
18903
18941
|
i0__namespace.ɵɵelementEnd();
|
|
18904
18942
|
i0__namespace.ɵɵelementEnd();
|
|
18905
18943
|
}
|
|
@@ -18913,23 +18951,21 @@
|
|
|
18913
18951
|
i0__namespace.ɵɵadvance(2);
|
|
18914
18952
|
i0__namespace.ɵɵtextInterpolate(flagDetail_r4.flagComment);
|
|
18915
18953
|
i0__namespace.ɵɵadvance(2);
|
|
18916
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(10,
|
|
18954
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(10, 8, flagDetail_r4.dateTimeCreated, "dd LLL yyyy"));
|
|
18917
18955
|
i0__namespace.ɵɵadvance(3);
|
|
18918
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(13,
|
|
18956
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(13, 11, flagDetail_r4.dateTimeModified, "dd LLL yyyy"));
|
|
18919
18957
|
i0__namespace.ɵɵadvance(3);
|
|
18920
18958
|
i0__namespace.ɵɵproperty("ngIf", flagDetail_r4.status === ctx_r3.caseFlagStatus.ACTIVE);
|
|
18921
18959
|
i0__namespace.ɵɵadvance(1);
|
|
18922
18960
|
i0__namespace.ɵɵproperty("ngIf", flagDetail_r4.status === ctx_r3.caseFlagStatus.INACTIVE);
|
|
18923
18961
|
i0__namespace.ɵɵadvance(1);
|
|
18924
18962
|
i0__namespace.ɵɵproperty("ngIf", flagDetail_r4.status === ctx_r3.caseFlagStatus.REQUESTED);
|
|
18925
|
-
i0__namespace.ɵɵadvance(1);
|
|
18926
|
-
i0__namespace.ɵɵproperty("ngIf", flagDetail_r4.status === ctx_r3.caseFlagStatus.NOT_APPROVED);
|
|
18927
18963
|
}
|
|
18928
18964
|
}
|
|
18929
18965
|
function CaseFlagTableComponent_table_0_tbody_17_Template(rf, ctx) {
|
|
18930
18966
|
if (rf & 1) {
|
|
18931
18967
|
i0__namespace.ɵɵelementStart(0, "tbody", 10);
|
|
18932
|
-
i0__namespace.ɵɵtemplate(1, CaseFlagTableComponent_table_0_tbody_17_tr_1_Template,
|
|
18968
|
+
i0__namespace.ɵɵtemplate(1, CaseFlagTableComponent_table_0_tbody_17_tr_1_Template, 18, 14, "tr", 14);
|
|
18933
18969
|
i0__namespace.ɵɵelementEnd();
|
|
18934
18970
|
}
|
|
18935
18971
|
if (rf & 2) {
|
|
@@ -18994,7 +19030,7 @@
|
|
|
18994
19030
|
return CaseFlagTableComponent;
|
|
18995
19031
|
}());
|
|
18996
19032
|
CaseFlagTableComponent.ɵfac = function CaseFlagTableComponent_Factory(t) { return new (t || CaseFlagTableComponent)(); };
|
|
18997
|
-
CaseFlagTableComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFlagTableComponent, selectors: [["ccd-case-flag-table"]], inputs: { tableCaption: "tableCaption", flagData: "flagData", firstColumnHeader: "firstColumnHeader" }, decls: 1, vars: 1, consts: [["class", "govuk-table", 4, "ngIf"], [1, "govuk-table"], [1, "govuk-table__caption", "govuk-table__caption--l"], [1, "govuk-table__head"], [1, "govuk-table__row"], ["scope", "col", 1, "govuk-table__header", "col-party-name"], ["scope", "col", 1, "govuk-table__header", "col-comments"], ["scope", "col", 1, "govuk-table__header", "col-creation-date"], ["scope", "col", 1, "govuk-table__header", "col-last-modified"], ["scope", "col", 1, "govuk-table__header", "col-flag-status"], [1, "govuk-table__body"], [4, "ngIf"], ["class", "govuk-table__body", 4, "ngIf"], ["colspan", "5"], ["scope", "row", "class", "govuk-table__row", 4, "ngFor", "ngForOf"], ["scope", "row", 1, "govuk-table__row"], [1, "govuk-table__cell"], ["class", "govuk-tag", 4, "ngIf"], ["class", "govuk-tag govuk-tag--grey", 4, "ngIf"], [
|
|
19033
|
+
CaseFlagTableComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFlagTableComponent, selectors: [["ccd-case-flag-table"]], inputs: { tableCaption: "tableCaption", flagData: "flagData", firstColumnHeader: "firstColumnHeader" }, decls: 1, vars: 1, consts: [["class", "govuk-table", 4, "ngIf"], [1, "govuk-table"], [1, "govuk-table__caption", "govuk-table__caption--l"], [1, "govuk-table__head"], [1, "govuk-table__row"], ["scope", "col", 1, "govuk-table__header", "col-party-name"], ["scope", "col", 1, "govuk-table__header", "col-comments"], ["scope", "col", 1, "govuk-table__header", "col-creation-date"], ["scope", "col", 1, "govuk-table__header", "col-last-modified"], ["scope", "col", 1, "govuk-table__header", "col-flag-status"], [1, "govuk-table__body"], [4, "ngIf"], ["class", "govuk-table__body", 4, "ngIf"], ["colspan", "5"], ["scope", "row", "class", "govuk-table__row", 4, "ngFor", "ngForOf"], ["scope", "row", 1, "govuk-table__row"], [1, "govuk-table__cell"], ["class", "govuk-tag", 4, "ngIf"], ["class", "govuk-tag govuk-tag--grey", 4, "ngIf"], [1, "govuk-tag"], [1, "govuk-tag", "govuk-tag--grey"]], template: function CaseFlagTableComponent_Template(rf, ctx) {
|
|
18998
19034
|
if (rf & 1) {
|
|
18999
19035
|
i0__namespace.ɵɵtemplate(0, CaseFlagTableComponent_table_0_Template, 18, 4, "table", 0);
|
|
19000
19036
|
}
|
|
@@ -19019,187 +19055,96 @@
|
|
|
19019
19055
|
}] });
|
|
19020
19056
|
})();
|
|
19021
19057
|
|
|
19022
|
-
|
|
19023
|
-
* DTO to provide typing of the response from the Reference Data Common API for Case Flags data.
|
|
19024
|
-
*
|
|
19025
|
-
* @see {@link https://tools.hmcts.net/confluence/pages/viewpage.action?pageId=1525476616#CaseFlagsHLDVersion1.0-Output}
|
|
19026
|
-
* for full details
|
|
19027
|
-
*/
|
|
19028
|
-
var FlagType = /** @class */ (function () {
|
|
19029
|
-
function FlagType() {
|
|
19030
|
-
this.listOfValuesLength = 0;
|
|
19031
|
-
this.listOfValues = [];
|
|
19032
|
-
}
|
|
19033
|
-
FlagType.searchPathByFlagTypeObject = function (singleFlag, flags, path) {
|
|
19034
|
-
var e_1, _b;
|
|
19035
|
-
if (path === void 0) { path = []; }
|
|
19036
|
-
var _a;
|
|
19037
|
-
try {
|
|
19038
|
-
for (var flags_1 = __values(flags), flags_1_1 = flags_1.next(); !flags_1_1.done; flags_1_1 = flags_1.next()) {
|
|
19039
|
-
var flag = flags_1_1.value;
|
|
19040
|
-
if (flag.flagCode === singleFlag.flagCode && flag.Path.join(',') === singleFlag.Path.join(',')) {
|
|
19041
|
-
return [flag, path];
|
|
19042
|
-
}
|
|
19043
|
-
if ((_a = flag.childFlags) === null || _a === void 0 ? void 0 : _a.length) {
|
|
19044
|
-
var _c = __read(FlagType.searchPathByFlagTypeObject(singleFlag, flag.childFlags, __spread(path, [flag])), 2), result = _c[0], childPath = _c[1];
|
|
19045
|
-
if (result) {
|
|
19046
|
-
return [result, childPath];
|
|
19047
|
-
}
|
|
19048
|
-
}
|
|
19049
|
-
}
|
|
19050
|
-
}
|
|
19051
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
19052
|
-
finally {
|
|
19053
|
-
try {
|
|
19054
|
-
if (flags_1_1 && !flags_1_1.done && (_b = flags_1.return)) _b.call(flags_1);
|
|
19055
|
-
}
|
|
19056
|
-
finally { if (e_1) throw e_1.error; }
|
|
19057
|
-
}
|
|
19058
|
-
return [undefined, []];
|
|
19059
|
-
};
|
|
19060
|
-
return FlagType;
|
|
19061
|
-
}());
|
|
19062
|
-
|
|
19063
|
-
/**
|
|
19064
|
-
* DTO to provide typing of the response from the Reference Data Location API for HMCTS service details.
|
|
19065
|
-
*/
|
|
19066
|
-
var HmctsServiceDetail = /** @class */ (function () {
|
|
19067
|
-
function HmctsServiceDetail() {
|
|
19068
|
-
this.service_id = 0;
|
|
19069
|
-
}
|
|
19070
|
-
return HmctsServiceDetail;
|
|
19071
|
-
}());
|
|
19072
|
-
|
|
19073
|
-
var SearchLanguageInterpreterControlNames;
|
|
19074
|
-
(function (SearchLanguageInterpreterControlNames) {
|
|
19075
|
-
SearchLanguageInterpreterControlNames["LANGUAGE_SEARCH_TERM"] = "languageSearchTerm";
|
|
19076
|
-
SearchLanguageInterpreterControlNames["MANUAL_LANGUAGE_ENTRY"] = "manualLanguageEntry";
|
|
19077
|
-
})(SearchLanguageInterpreterControlNames || (SearchLanguageInterpreterControlNames = {}));
|
|
19078
|
-
|
|
19079
|
-
function SelectFlagTypeComponent_div_0_div_6_Template(rf, ctx) {
|
|
19058
|
+
function SelectFlagTypeComponent_div_6_Template(rf, ctx) {
|
|
19080
19059
|
if (rf & 1) {
|
|
19081
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
19082
|
-
i0__namespace.ɵɵelementStart(1, "span",
|
|
19060
|
+
i0__namespace.ɵɵelementStart(0, "div", 10);
|
|
19061
|
+
i0__namespace.ɵɵelementStart(1, "span", 11);
|
|
19083
19062
|
i0__namespace.ɵɵtext(2, "Error:");
|
|
19084
19063
|
i0__namespace.ɵɵelementEnd();
|
|
19085
19064
|
i0__namespace.ɵɵtext(3);
|
|
19086
19065
|
i0__namespace.ɵɵelementEnd();
|
|
19087
19066
|
}
|
|
19088
19067
|
if (rf & 2) {
|
|
19089
|
-
var
|
|
19068
|
+
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
19090
19069
|
i0__namespace.ɵɵadvance(3);
|
|
19091
|
-
i0__namespace.ɵɵtextInterpolate1(" ",
|
|
19070
|
+
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r0.flagTypeNotSelectedErrorMessage, " ");
|
|
19092
19071
|
}
|
|
19093
19072
|
}
|
|
19094
|
-
function
|
|
19073
|
+
function SelectFlagTypeComponent_div_8_Template(rf, ctx) {
|
|
19095
19074
|
if (rf & 1) {
|
|
19096
|
-
i0__namespace.ɵɵ
|
|
19097
|
-
i0__namespace.ɵɵ
|
|
19098
|
-
i0__namespace.ɵɵelementStart(
|
|
19075
|
+
var _r7_1 = i0__namespace.ɵɵgetCurrentView();
|
|
19076
|
+
i0__namespace.ɵɵelementStart(0, "div", 12);
|
|
19077
|
+
i0__namespace.ɵɵelementStart(1, "input", 13);
|
|
19078
|
+
i0__namespace.ɵɵlistener("change", function SelectFlagTypeComponent_div_8_Template_input_change_1_listener() { i0__namespace.ɵɵrestoreView(_r7_1); var flagType_r4 = ctx.$implicit; var ctx_r6 = i0__namespace.ɵɵnextContext(); return ctx_r6.onFlagTypeChanged(flagType_r4); });
|
|
19079
|
+
i0__namespace.ɵɵelementEnd();
|
|
19080
|
+
i0__namespace.ɵɵelementStart(2, "label", 14);
|
|
19099
19081
|
i0__namespace.ɵɵtext(3);
|
|
19100
19082
|
i0__namespace.ɵɵelementEnd();
|
|
19101
19083
|
i0__namespace.ɵɵelementEnd();
|
|
19102
19084
|
}
|
|
19103
19085
|
if (rf & 2) {
|
|
19104
|
-
var
|
|
19105
|
-
var
|
|
19106
|
-
var
|
|
19086
|
+
var flagType_r4 = ctx.$implicit;
|
|
19087
|
+
var i_r5 = ctx.index;
|
|
19088
|
+
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
19107
19089
|
i0__namespace.ɵɵadvance(1);
|
|
19108
|
-
i0__namespace.ɵɵpropertyInterpolate1("id", "flag-type-",
|
|
19109
|
-
i0__namespace.ɵɵproperty("name",
|
|
19090
|
+
i0__namespace.ɵɵpropertyInterpolate1("id", "flag-type-", i_r5, "");
|
|
19091
|
+
i0__namespace.ɵɵproperty("name", ctx_r1.flagTypeControlName)("value", flagType_r4.flagCode === "CATGRY" ? flagType_r4.flagCode + i_r5 : flagType_r4.flagCode)("formControlName", ctx_r1.flagTypeControlName);
|
|
19110
19092
|
i0__namespace.ɵɵadvance(1);
|
|
19111
|
-
i0__namespace.ɵɵpropertyInterpolate1("for", "flag-type-",
|
|
19093
|
+
i0__namespace.ɵɵpropertyInterpolate1("for", "flag-type-", i_r5, "");
|
|
19112
19094
|
i0__namespace.ɵɵadvance(1);
|
|
19113
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
19095
|
+
i0__namespace.ɵɵtextInterpolate(flagType_r4.name);
|
|
19114
19096
|
}
|
|
19115
19097
|
}
|
|
19116
|
-
function
|
|
19098
|
+
function SelectFlagTypeComponent_div_9_div_4_Template(rf, ctx) {
|
|
19117
19099
|
if (rf & 1) {
|
|
19118
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
19119
|
-
i0__namespace.ɵɵelementStart(1, "span",
|
|
19100
|
+
i0__namespace.ɵɵelementStart(0, "div", 19);
|
|
19101
|
+
i0__namespace.ɵɵelementStart(1, "span", 11);
|
|
19120
19102
|
i0__namespace.ɵɵtext(2, "Error:");
|
|
19121
19103
|
i0__namespace.ɵɵelementEnd();
|
|
19122
19104
|
i0__namespace.ɵɵtext(3);
|
|
19123
19105
|
i0__namespace.ɵɵelementEnd();
|
|
19124
19106
|
}
|
|
19125
19107
|
if (rf & 2) {
|
|
19126
|
-
var
|
|
19108
|
+
var ctx_r8 = i0__namespace.ɵɵnextContext(2);
|
|
19127
19109
|
i0__namespace.ɵɵadvance(3);
|
|
19128
|
-
i0__namespace.ɵɵtextInterpolate1(" ",
|
|
19110
|
+
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r8.flagTypeErrorMessage, " ");
|
|
19129
19111
|
}
|
|
19130
19112
|
}
|
|
19131
19113
|
var _c0$q = function (a0) { return { "form-group-error": a0 }; };
|
|
19132
|
-
var _c1$
|
|
19133
|
-
function
|
|
19114
|
+
var _c1$7 = function (a0) { return { "govuk-input--error": a0 }; };
|
|
19115
|
+
function SelectFlagTypeComponent_div_9_Template(rf, ctx) {
|
|
19134
19116
|
if (rf & 1) {
|
|
19135
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
19136
|
-
i0__namespace.ɵɵelementStart(1, "div",
|
|
19137
|
-
i0__namespace.ɵɵelementStart(2, "label",
|
|
19117
|
+
i0__namespace.ɵɵelementStart(0, "div", 15);
|
|
19118
|
+
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
19119
|
+
i0__namespace.ɵɵelementStart(2, "label", 16);
|
|
19138
19120
|
i0__namespace.ɵɵtext(3, "Enter a flag type");
|
|
19139
19121
|
i0__namespace.ɵɵelementEnd();
|
|
19140
|
-
i0__namespace.ɵɵtemplate(4,
|
|
19141
|
-
i0__namespace.ɵɵelement(5, "input",
|
|
19122
|
+
i0__namespace.ɵɵtemplate(4, SelectFlagTypeComponent_div_9_div_4_Template, 4, 1, "div", 17);
|
|
19123
|
+
i0__namespace.ɵɵelement(5, "input", 18);
|
|
19142
19124
|
i0__namespace.ɵɵelementEnd();
|
|
19143
19125
|
i0__namespace.ɵɵelementEnd();
|
|
19144
19126
|
}
|
|
19145
19127
|
if (rf & 2) {
|
|
19146
|
-
var
|
|
19128
|
+
var ctx_r2 = i0__namespace.ɵɵnextContext();
|
|
19147
19129
|
i0__namespace.ɵɵadvance(1);
|
|
19148
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$q,
|
|
19130
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$q, ctx_r2.flagTypeErrorMessage.length > 0));
|
|
19149
19131
|
i0__namespace.ɵɵadvance(3);
|
|
19150
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
19132
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r2.flagTypeErrorMessage.length > 0);
|
|
19151
19133
|
i0__namespace.ɵɵadvance(1);
|
|
19152
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$
|
|
19134
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$7, ctx_r2.flagTypeErrorMessage.length > 0))("name", ctx_r2.descriptionControlName)("formControlName", ctx_r2.descriptionControlName);
|
|
19153
19135
|
}
|
|
19154
19136
|
}
|
|
19155
|
-
function
|
|
19137
|
+
function SelectFlagTypeComponent_div_10_Template(rf, ctx) {
|
|
19156
19138
|
if (rf & 1) {
|
|
19157
|
-
var
|
|
19158
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
19159
|
-
i0__namespace.ɵɵelementStart(1, "button",
|
|
19160
|
-
i0__namespace.ɵɵlistener("click", function
|
|
19139
|
+
var _r10_1 = i0__namespace.ɵɵgetCurrentView();
|
|
19140
|
+
i0__namespace.ɵɵelementStart(0, "div", 20);
|
|
19141
|
+
i0__namespace.ɵɵelementStart(1, "button", 21);
|
|
19142
|
+
i0__namespace.ɵɵlistener("click", function SelectFlagTypeComponent_div_10_Template_button_click_1_listener() { i0__namespace.ɵɵrestoreView(_r10_1); var ctx_r9 = i0__namespace.ɵɵnextContext(); return ctx_r9.onNext(); });
|
|
19161
19143
|
i0__namespace.ɵɵtext(2, "Next");
|
|
19162
19144
|
i0__namespace.ɵɵelementEnd();
|
|
19163
19145
|
i0__namespace.ɵɵelementEnd();
|
|
19164
19146
|
}
|
|
19165
19147
|
}
|
|
19166
|
-
function SelectFlagTypeComponent_div_0_Template(rf, ctx) {
|
|
19167
|
-
if (rf & 1) {
|
|
19168
|
-
i0__namespace.ɵɵelementStart(0, "div", 1);
|
|
19169
|
-
i0__namespace.ɵɵelementStart(1, "div", 2);
|
|
19170
|
-
i0__namespace.ɵɵelementStart(2, "fieldset", 3);
|
|
19171
|
-
i0__namespace.ɵɵelementStart(3, "legend", 4);
|
|
19172
|
-
i0__namespace.ɵɵelementStart(4, "h1", 5);
|
|
19173
|
-
i0__namespace.ɵɵtext(5);
|
|
19174
|
-
i0__namespace.ɵɵelementEnd();
|
|
19175
|
-
i0__namespace.ɵɵelementEnd();
|
|
19176
|
-
i0__namespace.ɵɵtemplate(6, SelectFlagTypeComponent_div_0_div_6_Template, 4, 1, "div", 6);
|
|
19177
|
-
i0__namespace.ɵɵelementStart(7, "div", 7);
|
|
19178
|
-
i0__namespace.ɵɵtemplate(8, SelectFlagTypeComponent_div_0_div_8_Template, 4, 6, "div", 8);
|
|
19179
|
-
i0__namespace.ɵɵtemplate(9, SelectFlagTypeComponent_div_0_div_9_Template, 6, 9, "div", 9);
|
|
19180
|
-
i0__namespace.ɵɵelementEnd();
|
|
19181
|
-
i0__namespace.ɵɵelementEnd();
|
|
19182
|
-
i0__namespace.ɵɵelementEnd();
|
|
19183
|
-
i0__namespace.ɵɵtemplate(10, SelectFlagTypeComponent_div_0_div_10_Template, 3, 0, "div", 10);
|
|
19184
|
-
i0__namespace.ɵɵelementEnd();
|
|
19185
|
-
}
|
|
19186
|
-
if (rf & 2) {
|
|
19187
|
-
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
19188
|
-
i0__namespace.ɵɵproperty("formGroup", ctx_r0.formGroup);
|
|
19189
|
-
i0__namespace.ɵɵadvance(1);
|
|
19190
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$q, ctx_r0.flagTypeNotSelectedErrorMessage.length > 0));
|
|
19191
|
-
i0__namespace.ɵɵadvance(4);
|
|
19192
|
-
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r0.caseFlagWizardStepTitle.SELECT_CASE_FLAG, " ");
|
|
19193
|
-
i0__namespace.ɵɵadvance(1);
|
|
19194
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r0.flagTypeNotSelectedErrorMessage.length > 0);
|
|
19195
|
-
i0__namespace.ɵɵadvance(2);
|
|
19196
|
-
i0__namespace.ɵɵproperty("ngForOf", ctx_r0.flagTypes);
|
|
19197
|
-
i0__namespace.ɵɵadvance(1);
|
|
19198
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r0.otherFlagTypeSelected);
|
|
19199
|
-
i0__namespace.ɵɵadvance(1);
|
|
19200
|
-
i0__namespace.ɵɵproperty("ngIf", !ctx_r0.refdataError);
|
|
19201
|
-
}
|
|
19202
|
-
}
|
|
19203
19148
|
var SelectFlagTypeComponent = /** @class */ (function () {
|
|
19204
19149
|
function SelectFlagTypeComponent(caseFlagRefdataService) {
|
|
19205
19150
|
this.caseFlagRefdataService = caseFlagRefdataService;
|
|
@@ -19207,6 +19152,7 @@
|
|
|
19207
19152
|
this.flagCommentsOptionalEmitter = new i0.EventEmitter();
|
|
19208
19153
|
this.flagTypeNotSelectedErrorMessage = '';
|
|
19209
19154
|
this.flagTypeErrorMessage = '';
|
|
19155
|
+
this.otherFlagTypeSelected = false;
|
|
19210
19156
|
this.refdataError = false;
|
|
19211
19157
|
this.flagTypeControlName = 'flagType';
|
|
19212
19158
|
this.descriptionControlName = 'otherFlagTypeDescription';
|
|
@@ -19222,48 +19168,16 @@
|
|
|
19222
19168
|
enumerable: false,
|
|
19223
19169
|
configurable: true
|
|
19224
19170
|
});
|
|
19225
|
-
Object.defineProperty(SelectFlagTypeComponent.prototype, "selectedFlagType", {
|
|
19226
|
-
get: function () {
|
|
19227
|
-
var _a;
|
|
19228
|
-
return (_a = this.formGroup.get(this.flagTypeControlName)) === null || _a === void 0 ? void 0 : _a.value;
|
|
19229
|
-
},
|
|
19230
|
-
enumerable: false,
|
|
19231
|
-
configurable: true
|
|
19232
|
-
});
|
|
19233
|
-
Object.defineProperty(SelectFlagTypeComponent.prototype, "otherFlagTypeSelected", {
|
|
19234
|
-
get: function () {
|
|
19235
|
-
var _a, _b;
|
|
19236
|
-
return ((_b = (_a = this.formGroup.get(this.flagTypeControlName)) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b.flagCode) === this.otherFlagTypeCode;
|
|
19237
|
-
},
|
|
19238
|
-
enumerable: false,
|
|
19239
|
-
configurable: true
|
|
19240
|
-
});
|
|
19241
19171
|
SelectFlagTypeComponent.prototype.ngOnInit = function () {
|
|
19242
19172
|
var _this = this;
|
|
19243
19173
|
this.flagTypes = [];
|
|
19174
|
+
this.formGroup.addControl(this.flagTypeControlName, new i2.FormControl(''));
|
|
19175
|
+
this.formGroup.addControl(this.descriptionControlName, new i2.FormControl(''));
|
|
19244
19176
|
var flagType = this.formGroup['caseField']
|
|
19245
19177
|
&& this.formGroup['caseField'].id
|
|
19246
19178
|
&& this.formGroup['caseField'].id === this.caseLevelCaseFlagsFieldId
|
|
19247
19179
|
? exports.RefdataCaseFlagType.CASE
|
|
19248
19180
|
: exports.RefdataCaseFlagType.PARTY;
|
|
19249
|
-
if (!this.formGroup.get(this.flagTypeControlName)) {
|
|
19250
|
-
this.formGroup.addControl(this.flagTypeControlName, new i1$2.FormControl(''));
|
|
19251
|
-
}
|
|
19252
|
-
if (!this.formGroup.get(this.descriptionControlName)) {
|
|
19253
|
-
this.formGroup.addControl(this.descriptionControlName, new i1$2.FormControl(''));
|
|
19254
|
-
}
|
|
19255
|
-
// Should clear descriptionControlName if flagTypeControlName is changed
|
|
19256
|
-
this.flagTypeControlChangesSubscription = this.formGroup.get(this.flagTypeControlName).valueChanges
|
|
19257
|
-
.subscribe(function (value) {
|
|
19258
|
-
var _c;
|
|
19259
|
-
_this.formGroup.get(_this.descriptionControlName).setValue('');
|
|
19260
|
-
_this.cachedPath = [];
|
|
19261
|
-
// required to clear language interpreter
|
|
19262
|
-
_this.formGroup.patchValue((_c = {},
|
|
19263
|
-
_c[SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM] = '',
|
|
19264
|
-
_c[SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY] = '',
|
|
19265
|
-
_c));
|
|
19266
|
-
});
|
|
19267
19181
|
// HMCTS service code for a given jurisdiction is required to retrieve the relevant list of flag types
|
|
19268
19182
|
this.flagRefdata$ = this.caseFlagRefdataService.getHmctsServiceDetails(this.jurisdiction)
|
|
19269
19183
|
.pipe(
|
|
@@ -19276,15 +19190,6 @@
|
|
|
19276
19190
|
next: function (flagTypes) {
|
|
19277
19191
|
// First (and only) object in the returned array should be the top-level "Party" flag type
|
|
19278
19192
|
_this.flagTypes = flagTypes[0].childFlags;
|
|
19279
|
-
var formControl = _this.formGroup.get(_this.flagTypeControlName);
|
|
19280
|
-
if (formControl === null || formControl === void 0 ? void 0 : formControl.value) {
|
|
19281
|
-
// Cache Path based on existing flagCode -- needed for nested choices
|
|
19282
|
-
var _c = __read(FlagType.searchPathByFlagTypeObject(formControl.value, _this.flagTypes), 2), foundFlagType = _c[0], path = _c[1];
|
|
19283
|
-
_this.cachedPath = __spread(path, [
|
|
19284
|
-
foundFlagType
|
|
19285
|
-
]);
|
|
19286
|
-
formControl.setValue(_this.cachedPath[0], { emitEvent: false });
|
|
19287
|
-
}
|
|
19288
19193
|
},
|
|
19289
19194
|
error: function (error) {
|
|
19290
19195
|
_this.onRefdataError(error);
|
|
@@ -19292,14 +19197,16 @@
|
|
|
19292
19197
|
});
|
|
19293
19198
|
};
|
|
19294
19199
|
SelectFlagTypeComponent.prototype.ngOnDestroy = function () {
|
|
19295
|
-
var _a;
|
|
19296
19200
|
if (this.flagRefdata$) {
|
|
19297
19201
|
this.flagRefdata$.unsubscribe();
|
|
19298
19202
|
}
|
|
19299
|
-
|
|
19203
|
+
};
|
|
19204
|
+
SelectFlagTypeComponent.prototype.onFlagTypeChanged = function (flagType) {
|
|
19205
|
+
this.selectedFlagType = flagType;
|
|
19206
|
+
// Display description textbox if 'Other' flag type is selected
|
|
19207
|
+
this.otherFlagTypeSelected = this.selectedFlagType.flagCode === this.otherFlagTypeCode;
|
|
19300
19208
|
};
|
|
19301
19209
|
SelectFlagTypeComponent.prototype.onNext = function () {
|
|
19302
|
-
var _a, _b;
|
|
19303
19210
|
// Validate form
|
|
19304
19211
|
this.validateForm();
|
|
19305
19212
|
// Return case flag field state, whether the selected flag type (if any) is a parent or not, error messages,
|
|
@@ -19308,6 +19215,14 @@
|
|
|
19308
19215
|
currentCaseFlagFieldState: exports.CaseFlagFieldState.FLAG_TYPE,
|
|
19309
19216
|
isParentFlagType: this.selectedFlagType ? this.selectedFlagType.isParent : null,
|
|
19310
19217
|
errorMessages: this.errorMessages,
|
|
19218
|
+
flagName: this.selectedFlagType ? this.selectedFlagType.name : null,
|
|
19219
|
+
flagPath: this.selectedFlagType ? this.selectedFlagType.Path.map(function (pathValue) { return Object.assign({ id: null, value: pathValue }); }) : null,
|
|
19220
|
+
hearingRelevantFlag: this.selectedFlagType ? this.selectedFlagType.hearingRelevant : null,
|
|
19221
|
+
flagCode: this.selectedFlagType ? this.selectedFlagType.flagCode : null,
|
|
19222
|
+
// Include the "list of values" (if any); currently applicable to language flag types
|
|
19223
|
+
listOfValues: this.selectedFlagType && this.selectedFlagType.listOfValues && this.selectedFlagType.listOfValues.length > 0
|
|
19224
|
+
? this.selectedFlagType.listOfValues
|
|
19225
|
+
: null
|
|
19311
19226
|
});
|
|
19312
19227
|
// Emit "flag comments optional" event if the user selects a flag type where comments are not mandatory
|
|
19313
19228
|
if (this.selectedFlagType && !this.selectedFlagType.flagComment) {
|
|
@@ -19316,8 +19231,8 @@
|
|
|
19316
19231
|
// If the selected flag type is a parent, load the list of child flag types and reset the current selection
|
|
19317
19232
|
if (this.selectedFlagType && this.selectedFlagType.isParent) {
|
|
19318
19233
|
this.flagTypes = this.selectedFlagType.childFlags;
|
|
19319
|
-
(
|
|
19320
|
-
this.
|
|
19234
|
+
this.formGroup.get(this.flagTypeControlName).setValue('');
|
|
19235
|
+
this.selectedFlagType = null;
|
|
19321
19236
|
}
|
|
19322
19237
|
};
|
|
19323
19238
|
SelectFlagTypeComponent.prototype.validateForm = function () {
|
|
@@ -19351,14 +19266,42 @@
|
|
|
19351
19266
|
return SelectFlagTypeComponent;
|
|
19352
19267
|
}());
|
|
19353
19268
|
SelectFlagTypeComponent.ɵfac = function SelectFlagTypeComponent_Factory(t) { return new (t || SelectFlagTypeComponent)(i0__namespace.ɵɵdirectiveInject(CaseFlagRefdataService)); };
|
|
19354
|
-
SelectFlagTypeComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: SelectFlagTypeComponent, selectors: [["ccd-select-flag-type"]], inputs: { formGroup: "formGroup", jurisdiction: "jurisdiction" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter", flagCommentsOptionalEmitter: "flagCommentsOptionalEmitter" }, decls:
|
|
19269
|
+
SelectFlagTypeComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: SelectFlagTypeComponent, selectors: [["ccd-select-flag-type"]], inputs: { formGroup: "formGroup", jurisdiction: "jurisdiction" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter", flagCommentsOptionalEmitter: "flagCommentsOptionalEmitter" }, decls: 11, vars: 9, consts: [[1, "form-group", 3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "flag-type-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--l"], ["id", "flag-type-heading", 1, "govuk-fieldset__heading"], ["id", "flag-type-not-selected-error-message", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", "id", "conditional-radios-list", 1, "govuk-radios", "govuk-radios--conditional"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], ["class", "govuk-radios__conditional", "id", "conditional-flagType", 4, "ngIf"], ["class", "govuk-button-group", 4, "ngIf"], ["id", "flag-type-not-selected-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "value", "formControlName", "change"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["id", "conditional-flagType", 1, "govuk-radios__conditional"], ["for", "other-flag-type-description", 1, "govuk-label"], ["id", "flag-type-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "other-flag-type-description", "type", "text", 1, "govuk-input", "govuk-!-width-one-half", 3, "ngClass", "name", "formControlName"], ["id", "flag-type-error-message", 1, "govuk-error-message"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"]], template: function SelectFlagTypeComponent_Template(rf, ctx) {
|
|
19355
19270
|
if (rf & 1) {
|
|
19356
|
-
i0__namespace.ɵɵ
|
|
19271
|
+
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
19272
|
+
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
19273
|
+
i0__namespace.ɵɵelementStart(2, "fieldset", 2);
|
|
19274
|
+
i0__namespace.ɵɵelementStart(3, "legend", 3);
|
|
19275
|
+
i0__namespace.ɵɵelementStart(4, "h1", 4);
|
|
19276
|
+
i0__namespace.ɵɵtext(5);
|
|
19277
|
+
i0__namespace.ɵɵelementEnd();
|
|
19278
|
+
i0__namespace.ɵɵelementEnd();
|
|
19279
|
+
i0__namespace.ɵɵtemplate(6, SelectFlagTypeComponent_div_6_Template, 4, 1, "div", 5);
|
|
19280
|
+
i0__namespace.ɵɵelementStart(7, "div", 6);
|
|
19281
|
+
i0__namespace.ɵɵtemplate(8, SelectFlagTypeComponent_div_8_Template, 4, 6, "div", 7);
|
|
19282
|
+
i0__namespace.ɵɵtemplate(9, SelectFlagTypeComponent_div_9_Template, 6, 9, "div", 8);
|
|
19283
|
+
i0__namespace.ɵɵelementEnd();
|
|
19284
|
+
i0__namespace.ɵɵelementEnd();
|
|
19285
|
+
i0__namespace.ɵɵelementEnd();
|
|
19286
|
+
i0__namespace.ɵɵtemplate(10, SelectFlagTypeComponent_div_10_Template, 3, 0, "div", 9);
|
|
19287
|
+
i0__namespace.ɵɵelementEnd();
|
|
19357
19288
|
}
|
|
19358
19289
|
if (rf & 2) {
|
|
19359
|
-
i0__namespace.ɵɵproperty("
|
|
19290
|
+
i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
|
|
19291
|
+
i0__namespace.ɵɵadvance(1);
|
|
19292
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$q, ctx.flagTypeNotSelectedErrorMessage.length > 0));
|
|
19293
|
+
i0__namespace.ɵɵadvance(4);
|
|
19294
|
+
i0__namespace.ɵɵtextInterpolate1(" ", ctx.caseFlagWizardStepTitle.SELECT_CASE_FLAG, " ");
|
|
19295
|
+
i0__namespace.ɵɵadvance(1);
|
|
19296
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.flagTypeNotSelectedErrorMessage.length > 0);
|
|
19297
|
+
i0__namespace.ɵɵadvance(2);
|
|
19298
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx.flagTypes);
|
|
19299
|
+
i0__namespace.ɵɵadvance(1);
|
|
19300
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.otherFlagTypeSelected);
|
|
19301
|
+
i0__namespace.ɵɵadvance(1);
|
|
19302
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx.refdataError);
|
|
19360
19303
|
}
|
|
19361
|
-
}, directives: [
|
|
19304
|
+
}, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf, i2__namespace.RadioControlValueAccessor, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName], styles: [".hidden[_ngcontent-%COMP%]{display:none}.validation-error[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:#d4351c}"] });
|
|
19362
19305
|
(function () {
|
|
19363
19306
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SelectFlagTypeComponent, [{
|
|
19364
19307
|
type: i0.Component,
|
|
@@ -19483,14 +19426,15 @@
|
|
|
19483
19426
|
i0__namespace.ɵɵadvance(1);
|
|
19484
19427
|
i0__namespace.ɵɵproperty("ngIf", ctx_r5.languageCharLimitErrorMessage);
|
|
19485
19428
|
i0__namespace.ɵɵadvance(1);
|
|
19486
|
-
i0__namespace.ɵɵproperty("name", ctx_r5.
|
|
19429
|
+
i0__namespace.ɵɵproperty("name", ctx_r5.manualLanguageEntryControlName)("formControlName", ctx_r5.manualLanguageEntryControlName);
|
|
19487
19430
|
}
|
|
19488
19431
|
}
|
|
19489
19432
|
var SearchLanguageInterpreterComponent = /** @class */ (function () {
|
|
19490
19433
|
function SearchLanguageInterpreterComponent() {
|
|
19491
|
-
this.SearchLanguageInterpreterControlNames = SearchLanguageInterpreterControlNames;
|
|
19492
19434
|
this.caseFlagStateEmitter = new i0.EventEmitter();
|
|
19493
19435
|
this.minSearchCharacters = 3;
|
|
19436
|
+
this.languageSearchTermControlName = 'languageSearchTerm';
|
|
19437
|
+
this.manualLanguageEntryControlName = 'manualLanguageEntry';
|
|
19494
19438
|
this.searchTerm = '';
|
|
19495
19439
|
this.isCheckboxEnabled = false;
|
|
19496
19440
|
this.errorMessages = [];
|
|
@@ -19517,9 +19461,9 @@
|
|
|
19517
19461
|
this.searchLanguageInterpreterHint = this.flagCode === this.signLanguageFlagCode
|
|
19518
19462
|
? exports.SearchLanguageInterpreterStep.SIGN_HINT_TEXT
|
|
19519
19463
|
: exports.SearchLanguageInterpreterStep.HINT_TEXT;
|
|
19520
|
-
this.formGroup.addControl(
|
|
19521
|
-
this.formGroup.addControl(
|
|
19522
|
-
this.filteredLanguages$ = this.formGroup.get(
|
|
19464
|
+
this.formGroup.addControl(this.languageSearchTermControlName, new i2.FormControl());
|
|
19465
|
+
this.formGroup.addControl(this.manualLanguageEntryControlName, new i2.FormControl());
|
|
19466
|
+
this.filteredLanguages$ = this.formGroup.get(this.languageSearchTermControlName).valueChanges.pipe(
|
|
19523
19467
|
// Need to check type of input because it changes to object (i.e. Language) when a value is selected from the
|
|
19524
19468
|
// autocomplete panel, instead of string when a value is being typed in
|
|
19525
19469
|
operators.map(function (input) { return typeof input === 'string' ? input : input.value; }), operators.map(function (searchTerm) {
|
|
@@ -19542,7 +19486,7 @@
|
|
|
19542
19486
|
// If the checkbox is disabled, i.e. unchecked, then clear the manual language entry FormControl of any value to
|
|
19543
19487
|
// prevent it being retained even when the field itself is hidden
|
|
19544
19488
|
if (!this.isCheckboxEnabled) {
|
|
19545
|
-
this.formGroup.get(
|
|
19489
|
+
this.formGroup.get(this.manualLanguageEntryControlName).setValue(null);
|
|
19546
19490
|
}
|
|
19547
19491
|
};
|
|
19548
19492
|
SearchLanguageInterpreterComponent.prototype.displayLanguage = function (language) {
|
|
@@ -19555,39 +19499,39 @@
|
|
|
19555
19499
|
this.languageEnteredInBothFieldsErrorMessage = null;
|
|
19556
19500
|
this.errorMessages = [];
|
|
19557
19501
|
// Checkbox not enabled means the user has opted to search for and select the language
|
|
19558
|
-
if (!this.isCheckboxEnabled && !this.formGroup.get(
|
|
19502
|
+
if (!this.isCheckboxEnabled && !this.formGroup.get(this.languageSearchTermControlName).value) {
|
|
19559
19503
|
this.languageNotSelectedErrorMessage = exports.SearchLanguageInterpreterErrorMessage.LANGUAGE_NOT_ENTERED;
|
|
19560
19504
|
this.errorMessages.push({
|
|
19561
19505
|
title: '',
|
|
19562
19506
|
description: exports.SearchLanguageInterpreterErrorMessage.LANGUAGE_NOT_ENTERED,
|
|
19563
|
-
fieldId:
|
|
19507
|
+
fieldId: this.languageSearchTermControlName
|
|
19564
19508
|
});
|
|
19565
19509
|
}
|
|
19566
19510
|
// Checkbox enabled means the user has opted to enter the language manually
|
|
19567
19511
|
if (this.isCheckboxEnabled) {
|
|
19568
|
-
if (!this.formGroup.get(
|
|
19512
|
+
if (!this.formGroup.get(this.manualLanguageEntryControlName).value) {
|
|
19569
19513
|
this.languageNotEnteredErrorMessage = exports.SearchLanguageInterpreterErrorMessage.LANGUAGE_NOT_ENTERED;
|
|
19570
19514
|
this.errorMessages.push({
|
|
19571
19515
|
title: '',
|
|
19572
19516
|
description: exports.SearchLanguageInterpreterErrorMessage.LANGUAGE_NOT_ENTERED,
|
|
19573
|
-
fieldId:
|
|
19517
|
+
fieldId: this.manualLanguageEntryControlName
|
|
19574
19518
|
});
|
|
19575
19519
|
}
|
|
19576
|
-
else if (this.formGroup.get(
|
|
19520
|
+
else if (this.formGroup.get(this.manualLanguageEntryControlName).value.length > this.languageMaxCharLimit) {
|
|
19577
19521
|
this.languageCharLimitErrorMessage = exports.SearchLanguageInterpreterErrorMessage.LANGUAGE_CHAR_LIMIT_EXCEEDED;
|
|
19578
19522
|
this.errorMessages.push({
|
|
19579
19523
|
title: '',
|
|
19580
19524
|
description: exports.SearchLanguageInterpreterErrorMessage.LANGUAGE_CHAR_LIMIT_EXCEEDED,
|
|
19581
|
-
fieldId:
|
|
19525
|
+
fieldId: this.manualLanguageEntryControlName
|
|
19582
19526
|
});
|
|
19583
19527
|
}
|
|
19584
|
-
else if (this.formGroup.get(
|
|
19528
|
+
else if (this.formGroup.get(this.languageSearchTermControlName).value) {
|
|
19585
19529
|
// Language entry is permitted in only one field at a time
|
|
19586
19530
|
this.languageEnteredInBothFieldsErrorMessage = exports.SearchLanguageInterpreterErrorMessage.LANGUAGE_ENTERED_IN_BOTH_FIELDS;
|
|
19587
19531
|
this.errorMessages.push({
|
|
19588
19532
|
title: '',
|
|
19589
19533
|
description: exports.SearchLanguageInterpreterErrorMessage.LANGUAGE_ENTERED_IN_BOTH_FIELDS,
|
|
19590
|
-
fieldId:
|
|
19534
|
+
fieldId: this.languageSearchTermControlName
|
|
19591
19535
|
});
|
|
19592
19536
|
}
|
|
19593
19537
|
}
|
|
@@ -19651,7 +19595,7 @@
|
|
|
19651
19595
|
i0__namespace.ɵɵadvance(1);
|
|
19652
19596
|
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(16, _c0$p, ctx.languageNotSelectedErrorMessage || ctx.languageEnteredInBothFieldsErrorMessage));
|
|
19653
19597
|
i0__namespace.ɵɵadvance(2);
|
|
19654
|
-
i0__namespace.ɵɵproperty("for", ctx.
|
|
19598
|
+
i0__namespace.ɵɵproperty("for", ctx.languageSearchTermControlName);
|
|
19655
19599
|
i0__namespace.ɵɵadvance(1);
|
|
19656
19600
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx.searchLanguageInterpreterTitle, " ");
|
|
19657
19601
|
i0__namespace.ɵɵadvance(2);
|
|
@@ -19661,7 +19605,7 @@
|
|
|
19661
19605
|
i0__namespace.ɵɵadvance(1);
|
|
19662
19606
|
i0__namespace.ɵɵproperty("ngIf", ctx.languageEnteredInBothFieldsErrorMessage);
|
|
19663
19607
|
i0__namespace.ɵɵadvance(1);
|
|
19664
|
-
i0__namespace.ɵɵproperty("formControlName", ctx.
|
|
19608
|
+
i0__namespace.ɵɵproperty("formControlName", ctx.languageSearchTermControlName)("matAutocomplete", _r2);
|
|
19665
19609
|
i0__namespace.ɵɵadvance(1);
|
|
19666
19610
|
i0__namespace.ɵɵproperty("displayWith", ctx.displayLanguage);
|
|
19667
19611
|
i0__namespace.ɵɵadvance(2);
|
|
@@ -19673,7 +19617,7 @@
|
|
|
19673
19617
|
i0__namespace.ɵɵadvance(1);
|
|
19674
19618
|
i0__namespace.ɵɵproperty("ngIf", ctx.isCheckboxEnabled);
|
|
19675
19619
|
}
|
|
19676
|
-
}, directives: [
|
|
19620
|
+
}, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgIf, i3__namespace$1.MatInput, i2__namespace.DefaultValueAccessor, i5__namespace.MatAutocompleteTrigger, i2__namespace.NgControlStatus, i2__namespace.FormControlName, i5__namespace.MatAutocomplete, i1__namespace.NgForOf, i6__namespace.MatOption], pipes: [i1__namespace.AsyncPipe], styles: [".autocomplete__input--show-all-values[_ngcontent-%COMP%]{padding:5px 34px 5px 5px;cursor:pointer}.autocomplete__dropdown-arrow-down[_ngcontent-%COMP%]{z-index:-1;display:inline-block;position:absolute;right:8px;width:24px;height:24px;top:10px}.autocomplete__menu[_ngcontent-%COMP%]{background-color:#fff;border:2px solid #0b0c0c;border-top:0;color:#0b0c0c;margin:0;max-height:342px;overflow-x:hidden;padding:0;width:100%;width:calc(100% - 4px)}.autocomplete__menu--visible[_ngcontent-%COMP%]{display:block}.autocomplete__menu--hidden[_ngcontent-%COMP%]{display:none}.autocomplete__menu--overlay[_ngcontent-%COMP%]{box-shadow:0 2px 6px rgba(0,0,0,.256863);left:0;position:absolute;top:100%;z-index:100}.autocomplete__menu--inline[_ngcontent-%COMP%]{position:relative}.autocomplete__option[_ngcontent-%COMP%]{border-left-width:0;border-bottom:1px solid #b1b4b6;border-right-width:0;border-top-width:1px;cursor:pointer;display:block;position:relative}.autocomplete__option[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{pointer-events:none}.autocomplete__option[_ngcontent-%COMP%]:first-of-type{border-top-width:0}.autocomplete__option[_ngcontent-%COMP%]:last-of-type{border-bottom-width:0}.autocomplete__option--odd[_ngcontent-%COMP%]{background-color:#fafafa}.autocomplete__option--focused[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]:hover{background-color:#1d70b8;border-color:#1d70b8;color:#fff;outline:0}.autocomplete__option--no-results[_ngcontent-%COMP%]{background-color:#fafafa;color:#646b6f;cursor:not-allowed}.autocomplete__hint[_ngcontent-%COMP%], .autocomplete__input[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]{font-size:13px;line-height:1.25}.autocomplete__hint[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]{padding:5px}@media (min-width:641px){.autocomplete__hint[_ngcontent-%COMP%], .autocomplete__input[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]{font-size:13px;line-height:1.31579}}.div-action[_ngcontent-%COMP%]{display:inline-block}.add-location[_ngcontent-%COMP%]{display:inline}.remove-location-button[_ngcontent-%COMP%]{margin:5px}.hide-autocomplete[_ngcontent-%COMP%]{display:none}.auto-complete-container[_ngcontent-%COMP%]{min-width:550px;display:inline-block;margin-right:4px}.autocomplete__input[_ngcontent-%COMP%]{line-height:24px;font-size:19px}.hidden[_ngcontent-%COMP%]{display:none}.search-language__input[_ngcontent-%COMP%]{position:relative;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36' width='40' height='40'%3E%3Cpath d='M25.7 24.8L21.9 21c.7-1 1.1-2.2 1.1-3.5 0-3.6-2.9-6.5-6.5-6.5S10 13.9 10 17.5s2.9 6.5 6.5 6.5c1.6 0 3-.6 4.1-1.5l3.7 3.7 1.4-1.4zM12 17.5c0-2.5 2-4.5 4.5-4.5s4.5 2 4.5 4.5-2 4.5-4.5 4.5-4.5-2-4.5-4.5z' fill='%23505a5f'%3E%3C/path%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:center left -2px;background-size:40px 40px;padding-left:35px}"] });
|
|
19677
19621
|
(function () {
|
|
19678
19622
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SearchLanguageInterpreterComponent, [{
|
|
19679
19623
|
type: i0.Component,
|
|
@@ -19805,14 +19749,7 @@
|
|
|
19805
19749
|
}
|
|
19806
19750
|
// Add a FormControl for the selected flag location if there is at least one flags instance remaining after filtering
|
|
19807
19751
|
if (this.filteredFlagsData && this.filteredFlagsData.length > 0) {
|
|
19808
|
-
|
|
19809
|
-
if (!formControl_1) {
|
|
19810
|
-
this.formGroup.addControl(this.selectedLocationControlName, new i1$2.FormControl(null));
|
|
19811
|
-
}
|
|
19812
|
-
else {
|
|
19813
|
-
// Needs to be setValue as they have different object references -- we use the pathToFlagsFormGroup key
|
|
19814
|
-
formControl_1.setValue(this.filteredFlagsData.find(function (item) { return item.pathToFlagsFormGroup === formControl_1.value.pathToFlagsFormGroup; }));
|
|
19815
|
-
}
|
|
19752
|
+
this.formGroup.addControl(this.selectedLocationControlName, new i2.FormControl(null));
|
|
19816
19753
|
}
|
|
19817
19754
|
else {
|
|
19818
19755
|
// No filtered flags instances mean there are no parties to select from. The case has not been configured properly
|
|
@@ -19829,6 +19766,9 @@
|
|
|
19829
19766
|
this.caseFlagStateEmitter.emit({
|
|
19830
19767
|
currentCaseFlagFieldState: exports.CaseFlagFieldState.FLAG_LOCATION,
|
|
19831
19768
|
errorMessages: this.errorMessages,
|
|
19769
|
+
selectedFlagsLocation: this.formGroup.get(this.selectedLocationControlName).value
|
|
19770
|
+
? this.formGroup.get(this.selectedLocationControlName).value
|
|
19771
|
+
: null
|
|
19832
19772
|
});
|
|
19833
19773
|
};
|
|
19834
19774
|
SelectFlagLocationComponent.prototype.validateSelection = function () {
|
|
@@ -19886,7 +19826,7 @@
|
|
|
19886
19826
|
i0__namespace.ɵɵadvance(1);
|
|
19887
19827
|
i0__namespace.ɵɵproperty("ngIf", !ctx.caseFlagsConfigError);
|
|
19888
19828
|
}
|
|
19889
|
-
}, directives: [
|
|
19829
|
+
}, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf, i2__namespace.RadioControlValueAccessor, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName], encapsulation: 2 });
|
|
19890
19830
|
(function () {
|
|
19891
19831
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SelectFlagLocationComponent, [{
|
|
19892
19832
|
type: i0.Component,
|
|
@@ -19955,9 +19895,7 @@
|
|
|
19955
19895
|
this.addCommentsTitle = exports.CaseFlagWizardStepTitle.ADD_FLAG_COMMENTS;
|
|
19956
19896
|
this.addCommentsHint = exports.AddCommentsStep.HINT_TEXT;
|
|
19957
19897
|
this.addCommentsCharLimitInfo = exports.AddCommentsStep.CHARACTER_LIMIT_INFO;
|
|
19958
|
-
|
|
19959
|
-
this.formGroup.addControl(this.flagCommentsControlName, new i1$2.FormControl(''));
|
|
19960
|
-
}
|
|
19898
|
+
this.formGroup.addControl(this.flagCommentsControlName, new i2.FormControl(''));
|
|
19961
19899
|
};
|
|
19962
19900
|
AddCommentsComponent.prototype.onNext = function () {
|
|
19963
19901
|
// Validate flag comments entry
|
|
@@ -20041,7 +19979,7 @@
|
|
|
20041
19979
|
i0__namespace.ɵɵadvance(2);
|
|
20042
19980
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx.addCommentsCharLimitInfo, " ");
|
|
20043
19981
|
}
|
|
20044
|
-
}, directives: [
|
|
19982
|
+
}, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName], encapsulation: 2 });
|
|
20045
19983
|
(function () {
|
|
20046
19984
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(AddCommentsComponent, [{
|
|
20047
19985
|
type: i0.Component,
|
|
@@ -20049,7 +19987,7 @@
|
|
|
20049
19987
|
selector: 'ccd-add-comments',
|
|
20050
19988
|
templateUrl: './add-comments.component.html'
|
|
20051
19989
|
}]
|
|
20052
|
-
}],
|
|
19990
|
+
}], null, { formGroup: [{
|
|
20053
19991
|
type: i0.Input
|
|
20054
19992
|
}], optional: [{
|
|
20055
19993
|
type: i0.Input
|
|
@@ -20129,7 +20067,7 @@
|
|
|
20129
20067
|
}
|
|
20130
20068
|
// Add a FormControl for the selected case flag if there is at least one flags instance remaining after mapping
|
|
20131
20069
|
if (this.flagsDisplayData && this.flagsDisplayData.length > 0) {
|
|
20132
|
-
this.formGroup.addControl(this.selectedControlName, new
|
|
20070
|
+
this.formGroup.addControl(this.selectedControlName, new i2.FormControl(null));
|
|
20133
20071
|
}
|
|
20134
20072
|
else {
|
|
20135
20073
|
// No flags display data means there are no flags to select from. The user cannot proceed with a flag update.
|
|
@@ -20273,7 +20211,7 @@
|
|
|
20273
20211
|
i0__namespace.ɵɵadvance(1);
|
|
20274
20212
|
i0__namespace.ɵɵproperty("ngIf", !ctx.noFlagsError);
|
|
20275
20213
|
}
|
|
20276
|
-
}, directives: [
|
|
20214
|
+
}, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf, i2__namespace.RadioControlValueAccessor, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName], styles: [".flag-name-and-description{font-weight:700}"], encapsulation: 2 });
|
|
20277
20215
|
(function () {
|
|
20278
20216
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ManageCaseFlagsComponent, [{
|
|
20279
20217
|
type: i0.Component,
|
|
@@ -20294,10 +20232,10 @@
|
|
|
20294
20232
|
}] });
|
|
20295
20233
|
})();
|
|
20296
20234
|
|
|
20297
|
-
function
|
|
20235
|
+
function UpdateFlagComponent_div_8_Template(rf, ctx) {
|
|
20298
20236
|
if (rf & 1) {
|
|
20299
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
20300
|
-
i0__namespace.ɵɵelementStart(1, "span",
|
|
20237
|
+
i0__namespace.ɵɵelementStart(0, "div", 16);
|
|
20238
|
+
i0__namespace.ɵɵelementStart(1, "span", 17);
|
|
20301
20239
|
i0__namespace.ɵɵtext(2, "Error:");
|
|
20302
20240
|
i0__namespace.ɵɵelementEnd();
|
|
20303
20241
|
i0__namespace.ɵɵtext(3);
|
|
@@ -20309,10 +20247,10 @@
|
|
|
20309
20247
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r0.updateFlagNotEnteredErrorMessage, " ");
|
|
20310
20248
|
}
|
|
20311
20249
|
}
|
|
20312
|
-
function
|
|
20250
|
+
function UpdateFlagComponent_div_9_Template(rf, ctx) {
|
|
20313
20251
|
if (rf & 1) {
|
|
20314
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
20315
|
-
i0__namespace.ɵɵelementStart(1, "span",
|
|
20252
|
+
i0__namespace.ɵɵelementStart(0, "div", 18);
|
|
20253
|
+
i0__namespace.ɵɵelementStart(1, "span", 17);
|
|
20316
20254
|
i0__namespace.ɵɵtext(2, "Error:");
|
|
20317
20255
|
i0__namespace.ɵɵelementEnd();
|
|
20318
20256
|
i0__namespace.ɵɵtext(3);
|
|
@@ -20324,28 +20262,17 @@
|
|
|
20324
20262
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.updateFlagCharLimitErrorMessage, " ");
|
|
20325
20263
|
}
|
|
20326
20264
|
}
|
|
20327
|
-
function
|
|
20265
|
+
function UpdateFlagComponent_button_22_Template(rf, ctx) {
|
|
20328
20266
|
if (rf & 1) {
|
|
20329
|
-
i0__namespace.ɵɵ
|
|
20330
|
-
i0__namespace.ɵɵ
|
|
20331
|
-
i0__namespace.ɵɵ
|
|
20332
|
-
i0__namespace.ɵɵ
|
|
20333
|
-
i0__namespace.ɵɵtext(4);
|
|
20334
|
-
i0__namespace.ɵɵelementEnd();
|
|
20267
|
+
var _r4_1 = i0__namespace.ɵɵgetCurrentView();
|
|
20268
|
+
i0__namespace.ɵɵelementStart(0, "button", 19);
|
|
20269
|
+
i0__namespace.ɵɵlistener("click", function UpdateFlagComponent_button_22_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r4_1); var ctx_r3 = i0__namespace.ɵɵnextContext(); return ctx_r3.onChangeStatus(); });
|
|
20270
|
+
i0__namespace.ɵɵtext(1, " Make inactive ");
|
|
20335
20271
|
i0__namespace.ɵɵelementEnd();
|
|
20336
20272
|
}
|
|
20337
|
-
if (rf & 2) {
|
|
20338
|
-
var status_r3 = ctx.$implicit;
|
|
20339
|
-
var ctx_r2 = i0__namespace.ɵɵnextContext();
|
|
20340
|
-
i0__namespace.ɵɵadvance(1);
|
|
20341
|
-
i0__namespace.ɵɵproperty("name", ctx_r2.FLAG_STATUS_CONTROL_NAME)("value", i0__namespace.ɵɵpipeBind1(2, 4, status_r3));
|
|
20342
|
-
i0__namespace.ɵɵadvance(2);
|
|
20343
|
-
i0__namespace.ɵɵproperty("for", ctx_r2.FLAG_STATUS_CONTROL_NAME);
|
|
20344
|
-
i0__namespace.ɵɵadvance(1);
|
|
20345
|
-
i0__namespace.ɵɵtextInterpolate1(" ", status_r3, " ");
|
|
20346
|
-
}
|
|
20347
20273
|
}
|
|
20348
20274
|
var _c0$l = function (a0) { return { "form-group-error": a0 }; };
|
|
20275
|
+
var _c1$6 = function (a0) { return { "govuk-tag--grey": a0 }; };
|
|
20349
20276
|
var UpdateFlagComponent = /** @class */ (function () {
|
|
20350
20277
|
function UpdateFlagComponent() {
|
|
20351
20278
|
this.caseFlagStateEmitter = new i0.EventEmitter();
|
|
@@ -20353,25 +20280,22 @@
|
|
|
20353
20280
|
this.errorMessages = [];
|
|
20354
20281
|
this.updateFlagNotEnteredErrorMessage = null;
|
|
20355
20282
|
this.updateFlagCharLimitErrorMessage = null;
|
|
20356
|
-
this.
|
|
20357
|
-
this.caseFlagStatuses = exports.CaseFlagStatus;
|
|
20358
|
-
this.FLAG_COMMENTS_CONTROL_NAME = 'flagComment';
|
|
20359
|
-
this.FLAG_STATUS_CONTROL_NAME = 'flagStatus';
|
|
20360
|
-
this.FLAG_STATUS_CHANGE_REASON_CONTROL_NAME = 'flagStatusReasonChange';
|
|
20361
|
-
this.FLAG_WELSH_TRANSLATION_CONTROL_NAME = 'flagWelshTranslation';
|
|
20283
|
+
this.updateFlagControlName = 'flagComments';
|
|
20362
20284
|
this.commentsMaxCharLimit = 200;
|
|
20363
20285
|
}
|
|
20364
20286
|
UpdateFlagComponent.prototype.ngOnInit = function () {
|
|
20287
|
+
this.updateFlagHint = exports.UpdateFlagStep.HINT_TEXT;
|
|
20288
|
+
this.updateFlagCharLimitInfo = exports.UpdateFlagStep.CHARACTER_LIMIT_INFO;
|
|
20289
|
+
this.formGroup.addControl(this.updateFlagControlName, new i2.FormControl(''));
|
|
20365
20290
|
if (this.selectedFlag && this.selectedFlag.flagDetailDisplay && this.selectedFlag.flagDetailDisplay.flagDetail) {
|
|
20366
20291
|
var flagDetail = this.selectedFlag.flagDetailDisplay.flagDetail;
|
|
20367
|
-
this.formGroup.addControl(this.FLAG_STATUS_CONTROL_NAME, new i1$2.FormControl(flagDetail.status));
|
|
20368
|
-
this.formGroup.addControl(this.FLAG_STATUS_CHANGE_REASON_CONTROL_NAME, new i1$2.FormControl(''));
|
|
20369
|
-
this.formGroup.addControl(this.FLAG_WELSH_TRANSLATION_CONTROL_NAME, new i1$2.FormControl(false));
|
|
20370
20292
|
// Populate flag comments text area with existing comments
|
|
20371
|
-
this.formGroup.
|
|
20293
|
+
this.formGroup.get(this.updateFlagControlName).setValue(flagDetail.flagComment);
|
|
20372
20294
|
if (flagDetail.name) {
|
|
20373
20295
|
this.updateFlagTitle =
|
|
20374
|
-
exports.CaseFlagWizardStepTitle.UPDATE_FLAG_TITLE + " \"" + flagDetail.name + (flagDetail.subTypeValue
|
|
20296
|
+
exports.CaseFlagWizardStepTitle.UPDATE_FLAG_TITLE + " \"" + flagDetail.name + (flagDetail.subTypeValue
|
|
20297
|
+
? ", " + flagDetail.subTypeValue + "\""
|
|
20298
|
+
: '"');
|
|
20375
20299
|
}
|
|
20376
20300
|
}
|
|
20377
20301
|
};
|
|
@@ -20380,7 +20304,7 @@
|
|
|
20380
20304
|
this.validateTextEntry();
|
|
20381
20305
|
// If validation has passed, update the flag details with the comments entered
|
|
20382
20306
|
if (this.errorMessages.length === 0) {
|
|
20383
|
-
this.selectedFlag.flagDetailDisplay.flagDetail = Object.assign(Object.assign({}, this.selectedFlag.flagDetailDisplay.flagDetail), { flagComment: this.formGroup.get(this.
|
|
20307
|
+
this.selectedFlag.flagDetailDisplay.flagDetail = Object.assign(Object.assign({}, this.selectedFlag.flagDetailDisplay.flagDetail), { flagComment: this.formGroup.get(this.updateFlagControlName).value });
|
|
20384
20308
|
}
|
|
20385
20309
|
// Return case flag field state, error messages, and selected flag detail to the parent. The selected flag must be
|
|
20386
20310
|
// re-emitted because the parent component repopulates this on handling this EventEmitter
|
|
@@ -20390,17 +20314,22 @@
|
|
|
20390
20314
|
selectedFlag: this.selectedFlag
|
|
20391
20315
|
});
|
|
20392
20316
|
};
|
|
20317
|
+
UpdateFlagComponent.prototype.onChangeStatus = function () {
|
|
20318
|
+
this.selectedFlag.flagDetailDisplay.flagDetail = Object.assign(Object.assign({}, this.selectedFlag.flagDetailDisplay.flagDetail), { status: this.selectedFlag.flagDetailDisplay.flagDetail.status === exports.CaseFlagStatus.ACTIVE
|
|
20319
|
+
? exports.CaseFlagStatus.INACTIVE
|
|
20320
|
+
: this.selectedFlag.flagDetailDisplay.flagDetail.status });
|
|
20321
|
+
};
|
|
20393
20322
|
UpdateFlagComponent.prototype.validateTextEntry = function () {
|
|
20394
20323
|
this.updateFlagNotEnteredErrorMessage = null;
|
|
20395
20324
|
this.updateFlagCharLimitErrorMessage = null;
|
|
20396
20325
|
this.errorMessages = [];
|
|
20397
|
-
var comment = this.formGroup.get(this.
|
|
20326
|
+
var comment = this.formGroup.get(this.updateFlagControlName).value;
|
|
20398
20327
|
if (!comment) {
|
|
20399
20328
|
this.updateFlagNotEnteredErrorMessage = exports.UpdateFlagErrorMessage.FLAG_COMMENTS_NOT_ENTERED;
|
|
20400
20329
|
this.errorMessages.push({
|
|
20401
20330
|
title: '',
|
|
20402
20331
|
description: exports.UpdateFlagErrorMessage.FLAG_COMMENTS_NOT_ENTERED,
|
|
20403
|
-
fieldId: this.
|
|
20332
|
+
fieldId: this.updateFlagControlName
|
|
20404
20333
|
});
|
|
20405
20334
|
}
|
|
20406
20335
|
if (comment && comment.length > this.commentsMaxCharLimit) {
|
|
@@ -20408,14 +20337,14 @@
|
|
|
20408
20337
|
this.errorMessages.push({
|
|
20409
20338
|
title: '',
|
|
20410
20339
|
description: exports.UpdateFlagErrorMessage.FLAG_COMMENTS_CHAR_LIMIT_EXCEEDED,
|
|
20411
|
-
fieldId: this.
|
|
20340
|
+
fieldId: this.updateFlagControlName
|
|
20412
20341
|
});
|
|
20413
20342
|
}
|
|
20414
20343
|
};
|
|
20415
20344
|
return UpdateFlagComponent;
|
|
20416
20345
|
}());
|
|
20417
20346
|
UpdateFlagComponent.ɵfac = function UpdateFlagComponent_Factory(t) { return new (t || UpdateFlagComponent)(); };
|
|
20418
|
-
UpdateFlagComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: UpdateFlagComponent, selectors: [["ccd-update-flag"]], inputs: { formGroup: "formGroup", selectedFlag: "selectedFlag" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, decls:
|
|
20347
|
+
UpdateFlagComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: UpdateFlagComponent, selectors: [["ccd-update-flag"]], inputs: { formGroup: "formGroup", selectedFlag: "selectedFlag" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, decls: 26, vars: 18, consts: [[1, "form-group", 3, "formGroup"], ["data-module", "govuk-character-count", "data-maxlength", "200", 1, "govuk-character-count"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper"], [1, "govuk-label", "govuk-label--l", 3, "for"], ["id", "update-flag-hint", 1, "govuk-hint"], ["id", "update-flag-not-entered-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "update-flag-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", "aria-describedby", "update-flag-hint update-flag-char-limit-info update-flag-char-limit-error", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "update-flag-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], [1, "govuk-grid-row"], [1, "govuk-grid-column-one-half"], [1, "govuk-tag", 3, "ngClass"], ["class", "button button-secondary", "type", "button", 3, "click", 4, "ngIf"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"], ["id", "update-flag-not-entered-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "update-flag-char-limit-error", 1, "govuk-error-message"], ["type", "button", 1, "button", "button-secondary", 3, "click"]], template: function UpdateFlagComponent_Template(rf, ctx) {
|
|
20419
20348
|
if (rf & 1) {
|
|
20420
20349
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
20421
20350
|
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
@@ -20426,60 +20355,37 @@
|
|
|
20426
20355
|
i0__namespace.ɵɵelementEnd();
|
|
20427
20356
|
i0__namespace.ɵɵelementEnd();
|
|
20428
20357
|
i0__namespace.ɵɵelementStart(6, "div", 5);
|
|
20429
|
-
i0__namespace.ɵɵ
|
|
20430
|
-
i0__namespace.ɵɵelementStart(8, "label", 6);
|
|
20431
|
-
i0__namespace.ɵɵtext(9);
|
|
20432
|
-
i0__namespace.ɵɵelementEnd();
|
|
20433
|
-
i0__namespace.ɵɵelementEnd();
|
|
20434
|
-
i0__namespace.ɵɵelementStart(10, "div", 7);
|
|
20435
|
-
i0__namespace.ɵɵtext(11);
|
|
20436
|
-
i0__namespace.ɵɵelementEnd();
|
|
20437
|
-
i0__namespace.ɵɵtemplate(12, UpdateFlagComponent_div_12_Template, 4, 1, "div", 8);
|
|
20438
|
-
i0__namespace.ɵɵtemplate(13, UpdateFlagComponent_div_13_Template, 4, 1, "div", 9);
|
|
20439
|
-
i0__namespace.ɵɵelementStart(14, "textarea", 10);
|
|
20440
|
-
i0__namespace.ɵɵtext(15, " ");
|
|
20441
|
-
i0__namespace.ɵɵelementEnd();
|
|
20442
|
-
i0__namespace.ɵɵelementStart(16, "div", 11);
|
|
20443
|
-
i0__namespace.ɵɵtext(17);
|
|
20444
|
-
i0__namespace.ɵɵelementEnd();
|
|
20445
|
-
i0__namespace.ɵɵelementEnd();
|
|
20446
|
-
i0__namespace.ɵɵelementStart(18, "div", 12);
|
|
20447
|
-
i0__namespace.ɵɵelementStart(19, "div");
|
|
20448
|
-
i0__namespace.ɵɵelementStart(20, "label", 13);
|
|
20449
|
-
i0__namespace.ɵɵtext(21);
|
|
20358
|
+
i0__namespace.ɵɵtext(7);
|
|
20450
20359
|
i0__namespace.ɵɵelementEnd();
|
|
20360
|
+
i0__namespace.ɵɵtemplate(8, UpdateFlagComponent_div_8_Template, 4, 1, "div", 6);
|
|
20361
|
+
i0__namespace.ɵɵtemplate(9, UpdateFlagComponent_div_9_Template, 4, 1, "div", 7);
|
|
20362
|
+
i0__namespace.ɵɵelementStart(10, "textarea", 8);
|
|
20363
|
+
i0__namespace.ɵɵtext(11, " ");
|
|
20451
20364
|
i0__namespace.ɵɵelementEnd();
|
|
20452
|
-
i0__namespace.ɵɵelementStart(
|
|
20453
|
-
i0__namespace.ɵɵ
|
|
20454
|
-
i0__namespace.ɵɵtemplate(24, UpdateFlagComponent_div_24_Template, 5, 6, "div", 15);
|
|
20455
|
-
i0__namespace.ɵɵpipe(25, "enumDisplayDescription");
|
|
20456
|
-
i0__namespace.ɵɵelementEnd();
|
|
20457
|
-
i0__namespace.ɵɵelementEnd();
|
|
20458
|
-
i0__namespace.ɵɵelementStart(26, "div");
|
|
20459
|
-
i0__namespace.ɵɵelementStart(27, "div", 16);
|
|
20460
|
-
i0__namespace.ɵɵtext(28);
|
|
20461
|
-
i0__namespace.ɵɵelementEnd();
|
|
20462
|
-
i0__namespace.ɵɵelementStart(29, "textarea", 17);
|
|
20463
|
-
i0__namespace.ɵɵtext(30, " ");
|
|
20365
|
+
i0__namespace.ɵɵelementStart(12, "div", 9);
|
|
20366
|
+
i0__namespace.ɵɵtext(13);
|
|
20464
20367
|
i0__namespace.ɵɵelementEnd();
|
|
20465
20368
|
i0__namespace.ɵɵelementEnd();
|
|
20466
20369
|
i0__namespace.ɵɵelementEnd();
|
|
20467
|
-
i0__namespace.ɵɵelementStart(
|
|
20468
|
-
i0__namespace.ɵɵelementStart(
|
|
20469
|
-
i0__namespace.ɵɵelementStart(
|
|
20470
|
-
i0__namespace.ɵɵ
|
|
20471
|
-
i0__namespace.ɵɵelementStart(
|
|
20472
|
-
i0__namespace.ɵɵ
|
|
20370
|
+
i0__namespace.ɵɵelementStart(14, "div", 10);
|
|
20371
|
+
i0__namespace.ɵɵelementStart(15, "div", 11);
|
|
20372
|
+
i0__namespace.ɵɵelementStart(16, "p");
|
|
20373
|
+
i0__namespace.ɵɵtext(17, "Flag status: ");
|
|
20374
|
+
i0__namespace.ɵɵelementStart(18, "span");
|
|
20375
|
+
i0__namespace.ɵɵelementStart(19, "strong", 12);
|
|
20376
|
+
i0__namespace.ɵɵtext(20);
|
|
20473
20377
|
i0__namespace.ɵɵelementEnd();
|
|
20474
20378
|
i0__namespace.ɵɵelementEnd();
|
|
20475
20379
|
i0__namespace.ɵɵelementEnd();
|
|
20476
20380
|
i0__namespace.ɵɵelementEnd();
|
|
20381
|
+
i0__namespace.ɵɵelementStart(21, "div", 11);
|
|
20382
|
+
i0__namespace.ɵɵtemplate(22, UpdateFlagComponent_button_22_Template, 2, 0, "button", 13);
|
|
20477
20383
|
i0__namespace.ɵɵelementEnd();
|
|
20478
20384
|
i0__namespace.ɵɵelementEnd();
|
|
20479
|
-
i0__namespace.ɵɵelementStart(
|
|
20480
|
-
i0__namespace.ɵɵelementStart(
|
|
20481
|
-
i0__namespace.ɵɵlistener("click", function
|
|
20482
|
-
i0__namespace.ɵɵtext(
|
|
20385
|
+
i0__namespace.ɵɵelementStart(23, "div", 14);
|
|
20386
|
+
i0__namespace.ɵɵelementStart(24, "button", 15);
|
|
20387
|
+
i0__namespace.ɵɵlistener("click", function UpdateFlagComponent_Template_button_click_24_listener() { return ctx.onNext(); });
|
|
20388
|
+
i0__namespace.ɵɵtext(25, "Next");
|
|
20483
20389
|
i0__namespace.ɵɵelementEnd();
|
|
20484
20390
|
i0__namespace.ɵɵelementEnd();
|
|
20485
20391
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -20487,39 +20393,29 @@
|
|
|
20487
20393
|
if (rf & 2) {
|
|
20488
20394
|
i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
|
|
20489
20395
|
i0__namespace.ɵɵadvance(2);
|
|
20490
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(
|
|
20491
|
-
i0__namespace.ɵɵadvance(
|
|
20492
|
-
i0__namespace.ɵɵ
|
|
20493
|
-
i0__namespace.ɵɵadvance(3);
|
|
20494
|
-
i0__namespace.ɵɵproperty("for", ctx.FLAG_COMMENTS_CONTROL_NAME);
|
|
20396
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(14, _c0$l, ctx.errorMessages.length > 0));
|
|
20397
|
+
i0__namespace.ɵɵadvance(2);
|
|
20398
|
+
i0__namespace.ɵɵproperty("for", ctx.updateFlagControlName);
|
|
20495
20399
|
i0__namespace.ɵɵadvance(1);
|
|
20496
|
-
i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagTitle, "
|
|
20400
|
+
i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagTitle, " ");
|
|
20497
20401
|
i0__namespace.ɵɵadvance(2);
|
|
20498
|
-
i0__namespace.ɵɵtextInterpolate1(" ", ctx.
|
|
20402
|
+
i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagHint, " ");
|
|
20499
20403
|
i0__namespace.ɵɵadvance(1);
|
|
20500
20404
|
i0__namespace.ɵɵproperty("ngIf", ctx.updateFlagNotEnteredErrorMessage);
|
|
20501
20405
|
i0__namespace.ɵɵadvance(1);
|
|
20502
20406
|
i0__namespace.ɵɵproperty("ngIf", ctx.updateFlagCharLimitErrorMessage);
|
|
20503
20407
|
i0__namespace.ɵɵadvance(1);
|
|
20504
|
-
i0__namespace.ɵɵproperty("id", ctx.
|
|
20408
|
+
i0__namespace.ɵɵproperty("id", ctx.updateFlagControlName)("name", ctx.updateFlagControlName)("formControlName", ctx.updateFlagControlName);
|
|
20505
20409
|
i0__namespace.ɵɵadvance(3);
|
|
20506
|
-
i0__namespace.ɵɵtextInterpolate1(" ", ctx.
|
|
20507
|
-
i0__namespace.ɵɵadvance(
|
|
20508
|
-
i0__namespace.ɵɵ
|
|
20509
|
-
i0__namespace.ɵɵadvance(2);
|
|
20510
|
-
i0__namespace.ɵɵproperty("id", ctx.FLAG_STATUS_CONTROL_NAME);
|
|
20511
|
-
i0__namespace.ɵɵadvance(1);
|
|
20512
|
-
i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(25, 22, ctx.caseFlagStatuses));
|
|
20513
|
-
i0__namespace.ɵɵadvance(4);
|
|
20514
|
-
i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagStepEnum.STATUS_HINT_TEXT, " ");
|
|
20515
|
-
i0__namespace.ɵɵadvance(1);
|
|
20516
|
-
i0__namespace.ɵɵproperty("id", ctx.FLAG_STATUS_CHANGE_REASON_CONTROL_NAME)("name", ctx.FLAG_STATUS_CHANGE_REASON_CONTROL_NAME)("formControlName", ctx.FLAG_STATUS_CHANGE_REASON_CONTROL_NAME);
|
|
20517
|
-
i0__namespace.ɵɵadvance(5);
|
|
20518
|
-
i0__namespace.ɵɵproperty("id", ctx.FLAG_WELSH_TRANSLATION_CONTROL_NAME)("name", ctx.FLAG_WELSH_TRANSLATION_CONTROL_NAME);
|
|
20410
|
+
i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagCharLimitInfo, " ");
|
|
20411
|
+
i0__namespace.ɵɵadvance(6);
|
|
20412
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(16, _c1$6, ctx.selectedFlag.flagDetailDisplay.flagDetail.status === "Inactive"));
|
|
20519
20413
|
i0__namespace.ɵɵadvance(1);
|
|
20520
|
-
i0__namespace.ɵɵ
|
|
20414
|
+
i0__namespace.ɵɵtextInterpolate1(" ", ctx.selectedFlag.flagDetailDisplay.flagDetail.status, " ");
|
|
20415
|
+
i0__namespace.ɵɵadvance(2);
|
|
20416
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.selectedFlag.flagDetailDisplay.flagDetail.status === "Active");
|
|
20521
20417
|
}
|
|
20522
|
-
}, directives: [
|
|
20418
|
+
}, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName], encapsulation: 2 });
|
|
20523
20419
|
(function () {
|
|
20524
20420
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(UpdateFlagComponent, [{
|
|
20525
20421
|
type: i0.Component,
|
|
@@ -20536,49 +20432,7 @@
|
|
|
20536
20432
|
}] });
|
|
20537
20433
|
})();
|
|
20538
20434
|
|
|
20539
|
-
function
|
|
20540
|
-
if (rf & 1) {
|
|
20541
|
-
var _r6_1 = i0__namespace.ɵɵgetCurrentView();
|
|
20542
|
-
i0__namespace.ɵɵelementStart(0, "dd", 7);
|
|
20543
|
-
i0__namespace.ɵɵelementStart(1, "a", 8);
|
|
20544
|
-
i0__namespace.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_dd_6_Template_a_click_1_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var ctx_r5 = i0__namespace.ɵɵnextContext(2); return ctx_r5.changeButtonEmitter.emit(ctx_r5.CaseFlagFieldState.FLAG_LOCATION); });
|
|
20545
|
-
i0__namespace.ɵɵtext(2, " Change");
|
|
20546
|
-
i0__namespace.ɵɵelementStart(3, "span", 9);
|
|
20547
|
-
i0__namespace.ɵɵtext(4, " party name");
|
|
20548
|
-
i0__namespace.ɵɵelementEnd();
|
|
20549
|
-
i0__namespace.ɵɵelementEnd();
|
|
20550
|
-
i0__namespace.ɵɵelementEnd();
|
|
20551
|
-
}
|
|
20552
|
-
}
|
|
20553
|
-
function CaseFlagSummaryListComponent_dl_0_dd_12_Template(rf, ctx) {
|
|
20554
|
-
if (rf & 1) {
|
|
20555
|
-
var _r8_1 = i0__namespace.ɵɵgetCurrentView();
|
|
20556
|
-
i0__namespace.ɵɵelementStart(0, "dd", 7);
|
|
20557
|
-
i0__namespace.ɵɵelementStart(1, "a", 8);
|
|
20558
|
-
i0__namespace.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_dd_12_Template_a_click_1_listener() { i0__namespace.ɵɵrestoreView(_r8_1); var ctx_r7 = i0__namespace.ɵɵnextContext(2); return ctx_r7.changeButtonEmitter.emit(ctx_r7.CaseFlagFieldState.FLAG_TYPE); });
|
|
20559
|
-
i0__namespace.ɵɵtext(2, " Change");
|
|
20560
|
-
i0__namespace.ɵɵelementStart(3, "span", 9);
|
|
20561
|
-
i0__namespace.ɵɵtext(4, " description");
|
|
20562
|
-
i0__namespace.ɵɵelementEnd();
|
|
20563
|
-
i0__namespace.ɵɵelementEnd();
|
|
20564
|
-
i0__namespace.ɵɵelementEnd();
|
|
20565
|
-
}
|
|
20566
|
-
}
|
|
20567
|
-
function CaseFlagSummaryListComponent_dl_0_dd_18_Template(rf, ctx) {
|
|
20568
|
-
if (rf & 1) {
|
|
20569
|
-
var _r10_1 = i0__namespace.ɵɵgetCurrentView();
|
|
20570
|
-
i0__namespace.ɵɵelementStart(0, "dd", 7);
|
|
20571
|
-
i0__namespace.ɵɵelementStart(1, "a", 8);
|
|
20572
|
-
i0__namespace.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_dd_18_Template_a_click_1_listener() { i0__namespace.ɵɵrestoreView(_r10_1); var ctx_r9 = i0__namespace.ɵɵnextContext(2); return ctx_r9.changeButtonEmitter.emit(ctx_r9.CaseFlagFieldState.FLAG_COMMENTS); });
|
|
20573
|
-
i0__namespace.ɵɵtext(2, " Change");
|
|
20574
|
-
i0__namespace.ɵɵelementStart(3, "span", 9);
|
|
20575
|
-
i0__namespace.ɵɵtext(4, " comments");
|
|
20576
|
-
i0__namespace.ɵɵelementEnd();
|
|
20577
|
-
i0__namespace.ɵɵelementEnd();
|
|
20578
|
-
i0__namespace.ɵɵelementEnd();
|
|
20579
|
-
}
|
|
20580
|
-
}
|
|
20581
|
-
function CaseFlagSummaryListComponent_dl_0_div_19_Template(rf, ctx) {
|
|
20435
|
+
function CaseFlagSummaryListComponent_dl_0_div_16_Template(rf, ctx) {
|
|
20582
20436
|
if (rf & 1) {
|
|
20583
20437
|
i0__namespace.ɵɵelementStart(0, "div", 2);
|
|
20584
20438
|
i0__namespace.ɵɵelementStart(1, "dt", 3);
|
|
@@ -20587,13 +20441,12 @@
|
|
|
20587
20441
|
i0__namespace.ɵɵelementStart(3, "dd", 4);
|
|
20588
20442
|
i0__namespace.ɵɵtext(4);
|
|
20589
20443
|
i0__namespace.ɵɵelementEnd();
|
|
20590
|
-
i0__namespace.ɵɵelement(5, "dd", 7);
|
|
20591
20444
|
i0__namespace.ɵɵelementEnd();
|
|
20592
20445
|
}
|
|
20593
20446
|
if (rf & 2) {
|
|
20594
|
-
var
|
|
20447
|
+
var ctx_r1 = i0__namespace.ɵɵnextContext(2);
|
|
20595
20448
|
i0__namespace.ɵɵadvance(4);
|
|
20596
|
-
i0__namespace.ɵɵtextInterpolate1(" ",
|
|
20449
|
+
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.flagStatus, " ");
|
|
20597
20450
|
}
|
|
20598
20451
|
}
|
|
20599
20452
|
function CaseFlagSummaryListComponent_dl_0_Template(rf, ctx) {
|
|
@@ -20606,27 +20459,24 @@
|
|
|
20606
20459
|
i0__namespace.ɵɵelementStart(4, "dd", 4);
|
|
20607
20460
|
i0__namespace.ɵɵtext(5);
|
|
20608
20461
|
i0__namespace.ɵɵelementEnd();
|
|
20609
|
-
i0__namespace.ɵɵtemplate(6, CaseFlagSummaryListComponent_dl_0_dd_6_Template, 5, 0, "dd", 5);
|
|
20610
20462
|
i0__namespace.ɵɵelementEnd();
|
|
20611
|
-
i0__namespace.ɵɵelementStart(
|
|
20612
|
-
i0__namespace.ɵɵelementStart(
|
|
20613
|
-
i0__namespace.ɵɵtext(
|
|
20463
|
+
i0__namespace.ɵɵelementStart(6, "div", 2);
|
|
20464
|
+
i0__namespace.ɵɵelementStart(7, "dt", 3);
|
|
20465
|
+
i0__namespace.ɵɵtext(8, " Flag type ");
|
|
20614
20466
|
i0__namespace.ɵɵelementEnd();
|
|
20615
|
-
i0__namespace.ɵɵelementStart(
|
|
20616
|
-
i0__namespace.ɵɵtext(
|
|
20467
|
+
i0__namespace.ɵɵelementStart(9, "dd", 4);
|
|
20468
|
+
i0__namespace.ɵɵtext(10);
|
|
20617
20469
|
i0__namespace.ɵɵelementEnd();
|
|
20618
|
-
i0__namespace.ɵɵtemplate(12, CaseFlagSummaryListComponent_dl_0_dd_12_Template, 5, 0, "dd", 5);
|
|
20619
20470
|
i0__namespace.ɵɵelementEnd();
|
|
20620
|
-
i0__namespace.ɵɵelementStart(
|
|
20621
|
-
i0__namespace.ɵɵelementStart(
|
|
20622
|
-
i0__namespace.ɵɵtext(
|
|
20471
|
+
i0__namespace.ɵɵelementStart(11, "div", 2);
|
|
20472
|
+
i0__namespace.ɵɵelementStart(12, "dt", 3);
|
|
20473
|
+
i0__namespace.ɵɵtext(13, " Comments ");
|
|
20623
20474
|
i0__namespace.ɵɵelementEnd();
|
|
20624
|
-
i0__namespace.ɵɵelementStart(
|
|
20625
|
-
i0__namespace.ɵɵtext(
|
|
20475
|
+
i0__namespace.ɵɵelementStart(14, "dd", 4);
|
|
20476
|
+
i0__namespace.ɵɵtext(15);
|
|
20626
20477
|
i0__namespace.ɵɵelementEnd();
|
|
20627
|
-
i0__namespace.ɵɵtemplate(18, CaseFlagSummaryListComponent_dl_0_dd_18_Template, 5, 0, "dd", 5);
|
|
20628
20478
|
i0__namespace.ɵɵelementEnd();
|
|
20629
|
-
i0__namespace.ɵɵtemplate(
|
|
20479
|
+
i0__namespace.ɵɵtemplate(16, CaseFlagSummaryListComponent_dl_0_div_16_Template, 5, 1, "div", 5);
|
|
20630
20480
|
i0__namespace.ɵɵelementEnd();
|
|
20631
20481
|
}
|
|
20632
20482
|
if (rf & 2) {
|
|
@@ -20635,25 +20485,17 @@
|
|
|
20635
20485
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r0.addUpdateFlagHeaderText, " ");
|
|
20636
20486
|
i0__namespace.ɵɵadvance(2);
|
|
20637
20487
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r0.flagForSummaryDisplay.partyName || ctx_r0.caseLevelLocation, " ");
|
|
20638
|
-
i0__namespace.ɵɵadvance(1);
|
|
20639
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r0.summaryListDisplayMode === ctx_r0.displayMode.CREATE);
|
|
20640
20488
|
i0__namespace.ɵɵadvance(5);
|
|
20641
20489
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r0.flagDescription, " ");
|
|
20642
|
-
i0__namespace.ɵɵadvance(1);
|
|
20643
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r0.summaryListDisplayMode === ctx_r0.displayMode.CREATE);
|
|
20644
20490
|
i0__namespace.ɵɵadvance(5);
|
|
20645
20491
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r0.flagComments, " ");
|
|
20646
20492
|
i0__namespace.ɵɵadvance(1);
|
|
20647
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r0.summaryListDisplayMode === ctx_r0.displayMode.CREATE);
|
|
20648
|
-
i0__namespace.ɵɵadvance(1);
|
|
20649
20493
|
i0__namespace.ɵɵproperty("ngIf", ctx_r0.summaryListDisplayMode === ctx_r0.displayMode.MANAGE);
|
|
20650
20494
|
}
|
|
20651
20495
|
}
|
|
20652
20496
|
var CaseFlagSummaryListComponent = /** @class */ (function () {
|
|
20653
20497
|
function CaseFlagSummaryListComponent() {
|
|
20654
|
-
this.changeButtonEmitter = new i0.EventEmitter();
|
|
20655
20498
|
this.displayMode = exports.CaseFlagSummaryListDisplayMode;
|
|
20656
|
-
this.CaseFlagFieldState = exports.CaseFlagFieldState;
|
|
20657
20499
|
this.caseLevelLocation = 'Case level';
|
|
20658
20500
|
this.updateFlagHeaderText = 'Update flag for';
|
|
20659
20501
|
this.addFlagHeaderText = 'Add flag to';
|
|
@@ -20673,9 +20515,9 @@
|
|
|
20673
20515
|
return CaseFlagSummaryListComponent;
|
|
20674
20516
|
}());
|
|
20675
20517
|
CaseFlagSummaryListComponent.ɵfac = function CaseFlagSummaryListComponent_Factory(t) { return new (t || CaseFlagSummaryListComponent)(); };
|
|
20676
|
-
CaseFlagSummaryListComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFlagSummaryListComponent, selectors: [["ccd-case-flag-summary-list"]], inputs: { flagForSummaryDisplay: "flagForSummaryDisplay", summaryListDisplayMode: "summaryListDisplayMode" },
|
|
20518
|
+
CaseFlagSummaryListComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFlagSummaryListComponent, selectors: [["ccd-case-flag-summary-list"]], inputs: { flagForSummaryDisplay: "flagForSummaryDisplay", summaryListDisplayMode: "summaryListDisplayMode" }, decls: 1, vars: 1, consts: [["class", "govuk-summary-list", 4, "ngIf"], [1, "govuk-summary-list"], [1, "govuk-summary-list__row"], [1, "govuk-summary-list__key"], [1, "govuk-summary-list__value"], ["class", "govuk-summary-list__row", 4, "ngIf"]], template: function CaseFlagSummaryListComponent_Template(rf, ctx) {
|
|
20677
20519
|
if (rf & 1) {
|
|
20678
|
-
i0__namespace.ɵɵtemplate(0, CaseFlagSummaryListComponent_dl_0_Template,
|
|
20520
|
+
i0__namespace.ɵɵtemplate(0, CaseFlagSummaryListComponent_dl_0_Template, 17, 5, "dl", 0);
|
|
20679
20521
|
}
|
|
20680
20522
|
if (rf & 2) {
|
|
20681
20523
|
i0__namespace.ɵɵproperty("ngIf", ctx.flagForSummaryDisplay);
|
|
@@ -20688,12 +20530,10 @@
|
|
|
20688
20530
|
selector: 'ccd-case-flag-summary-list',
|
|
20689
20531
|
templateUrl: './case-flag-summary-list.component.html'
|
|
20690
20532
|
}]
|
|
20691
|
-
}],
|
|
20533
|
+
}], null, { flagForSummaryDisplay: [{
|
|
20692
20534
|
type: i0.Input
|
|
20693
20535
|
}], summaryListDisplayMode: [{
|
|
20694
20536
|
type: i0.Input
|
|
20695
|
-
}], changeButtonEmitter: [{
|
|
20696
|
-
type: i0.Output
|
|
20697
20537
|
}] });
|
|
20698
20538
|
})();
|
|
20699
20539
|
|
|
@@ -21458,7 +21298,7 @@
|
|
|
21458
21298
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
21459
21299
|
}
|
|
21460
21300
|
WriteDateFieldComponent.prototype.ngOnInit = function () {
|
|
21461
|
-
this.dateControl = this.registerControl(new
|
|
21301
|
+
this.dateControl = this.registerControl(new i2.FormControl(this.caseField.value));
|
|
21462
21302
|
};
|
|
21463
21303
|
WriteDateFieldComponent.prototype.isDateTime = function () {
|
|
21464
21304
|
return this.caseField.field_type.id === 'DateTime';
|
|
@@ -21491,7 +21331,7 @@
|
|
|
21491
21331
|
i0__namespace.ɵɵadvance(1);
|
|
21492
21332
|
i0__namespace.ɵɵproperty("id", ctx.id())("isDateTime", ctx.isDateTime())("mandatory", i0__namespace.ɵɵpipeBind1(7, 10, ctx.caseField))("isInvalid", ctx.dateControl.errors && (ctx.dateControl.dirty || ctx.dateControl.touched))("formControl", ctx.dateControl);
|
|
21493
21333
|
}
|
|
21494
|
-
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, DateInputComponent,
|
|
21334
|
+
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, DateInputComponent, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [IsMandatoryPipe, FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
21495
21335
|
var ɵWriteDateFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteDateFieldComponent);
|
|
21496
21336
|
(function () {
|
|
21497
21337
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteDateFieldComponent, [{
|
|
@@ -21593,7 +21433,7 @@
|
|
|
21593
21433
|
_this.stringEdited = false;
|
|
21594
21434
|
_this.minError = false;
|
|
21595
21435
|
_this.maxError = false;
|
|
21596
|
-
_this.dateControl = new
|
|
21436
|
+
_this.dateControl = new i2.FormControl(new Date());
|
|
21597
21437
|
_this.minimumDate = new Date('01/01/1800');
|
|
21598
21438
|
_this.maximumDate = null;
|
|
21599
21439
|
_this.momentFormat = 'YYYY-MM-DDTHH:mm:ss.SSS';
|
|
@@ -21605,8 +21445,8 @@
|
|
|
21605
21445
|
this.configureDatePicker(this.dateTimeEntryFormat);
|
|
21606
21446
|
// set date control based on mandatory field
|
|
21607
21447
|
this.dateControl = (this.caseField.isMandatory ?
|
|
21608
|
-
this.registerControl(new
|
|
21609
|
-
: this.registerControl(new
|
|
21448
|
+
this.registerControl(new i2.FormControl(this.caseField.value || '', [i2.Validators.required]))
|
|
21449
|
+
: this.registerControl(new i2.FormControl(this.caseField.value)));
|
|
21610
21450
|
// in resetting the format just after the page initialises, the input can be reformatted
|
|
21611
21451
|
// otherwise the last format given will be how the text shown will be displayed
|
|
21612
21452
|
setTimeout(function () {
|
|
@@ -21794,7 +21634,7 @@
|
|
|
21794
21634
|
i0__namespace.ɵɵadvance(1);
|
|
21795
21635
|
i0__namespace.ɵɵproperty("color", ctx.color)("touchUi", ctx.touchUi)("hideTime", ctx.hideTime)("startView", ctx.startView)("stepHour", ctx.stepHour)("stepSecond", ctx.stepSecond)("stepMinute", ctx.stepMinute)("showSeconds", ctx.showSeconds)("showSpinners", ctx.showSpinners)("disableMinute", ctx.disableMinute)("enableMeridian", ctx.enableMeridian);
|
|
21796
21636
|
}
|
|
21797
|
-
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace$3.DefaultValueAccessor, i4__namespace.NgxMatDatetimeInput, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective, i5__namespace$1.MatDatepickerToggle, i6__namespace$1.MatSuffix, i4__namespace.NgxMatDatetimePicker], pipes: [FieldLabelPipe, FirstErrorPipe], styles: ["@charset \"UTF-8\";.datepicker-container{display:inline-block;position:relative;min-width:298px}.datepicker-container .govuk-input{height:35px;min-width:298px;width:auto;padding-right:40px;border:1px solid #000}.datepicker-container .govuk-input:focus{outline:1px solid #fd0;border:1px solid #000}.datepicker-container .govuk-input::-ms-clear{display:none}.datepicker-container .datepicker-wrapper-input{position:relative;display:inline-block;top:-20%;border:0}.datepicker-container .datepicker-wrapper-input:focus{border:0;outline:none}.datepicker-container .mat-icon-button{height:32px;width:32px}.datepicker-container .mat-icon-button:focus{outline:1px solid #fd0}.datepicker-container .mat-icon-button .mat-datepicker-toggle-default-icon{position:relative;top:-5px}.datepicker-container .mat-datepicker-toggle{position:absolute;right:0}.cdk-overlay-container .mat-datepicker-content{border:1px solid #000;border-radius:0;max-width:295px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table{width:calc(100% - 1px);table-layout:fixed}.cdk-overlay-container .mat-datepicker-content .mat-calendar-header{height:34px;border-bottom:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button{left:14%;min-width:125px;border-right:1px ridge #bfc1c3;border-left:1px ridge #bfc1c3;border-radius:0;top:-20px;width:200%}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button .mat-button-wrapper{text-align:center;font-weight:700}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button:focus{border:2px solid #000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button{left:-73%;top:-20px;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:after{border-left-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button{top:-20px;left:1%;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:after{border-right-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-button-wrapper{text-transform:capitalize!important}.cdk-overlay-container .mat-datepicker-content .mat-calendar{border-bottom:1px solid #000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider{padding:0;border-bottom:none}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider:after{height:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-content{padding:0}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header{color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header th.ng-star-inserted{font-weight:700;font-size:15px;padding-top:2%;padding-bottom:2%;-moz-column-width:20px;column-width:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th{visibility:hidden}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:after{visibility:visible;color:#000;position:relative;left:-15px}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:first-of-type:after{content:\"MON\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(2):after{left:-12px;content:\"TUE\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(3):after{left:-18px;content:\"WED\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(4):after{left:-14px;content:\"THU\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(5):after{left:-10px;content:\"FRI\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(6):after{content:\"SAT\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(7):after{content:\"SUN\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-label{font-weight:700;font-size:large;color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-selected{border:none;background-color:transparent;color:#fff}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-today{border:none;box-shadow:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell{border:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #fd0;border:2px solid #000;outline-offset:1px;z-index:1}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table{border-collapse:separate;border-spacing:10px}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:2px solid #fd0}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table{border-collapse:separate;border-spacing:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table tr:first-of-type{visibility:collapse}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #fd0;border:2px solid #000;outline-offset:1px}.cdk-overlay-container .mat-datepicker-content .time-container{height:80px;padding-top:0}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker{width:100%}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table{margin-left:0!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tbody{position:relative}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon-button .mat-button-wrapper{width:auto;height:auto}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon-button:focus{outline:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child{position:absolute;left:49px;top:15px;z-index:2}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child button:disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:first-child [aria-label=\"expand_less icon\"]{position:absolute;left:-2px;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-child(3) [aria-label=\"expand_less icon\"].mat-icon-button{position:absolute;left:82px!important;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-child(5) [aria-label=\"expand_less icon\"].mat-icon-button{position:absolute;left:169px!important;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:last-child [aria-label=\"expand_less icon\"].mat-icon-button{left:153px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-last-child(2) [aria-label=\"expand_less icon\"].mat-icon-button{left:65px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2){display:flex;padding:20px 0 20px 15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td{margin-right:30px;text-align:right}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:first-child .mat-form-field{width:50px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:first-child .mat-form-field:before{color:#000;content:\"Hours\";position:relative;top:-5px;left:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:nth-child(3) .mat-form-field:before{color:#000;content:\"Minutes\";position:relative;top:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:last-child{text-align:left;left:-15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .mat-form-field-disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:nth-of-type(5) .mat-form-field:before{color:#000;content:\"Seconds\";position:relative;top:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian{border-bottom:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian .mat-button{height:30px;top:21px;border-radius:0;color:#000;border-color:#000;background-color:#dee0e2;display:flex;justify-content:center}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian .mat-button .mat-button-wrapper{position:relative;top:-2px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4){display:flex;padding:2rem 0 2rem 15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4) td{margin-right:30px;text-align:right}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4) td:last-child{text-align:left}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child{position:absolute;left:49px;top:40px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child button:disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:first-child [aria-label=\"expand_more icon\"]{position:absolute;top:15px;left:-2px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-child(3) [aria-label=\"expand_more icon\"].mat-icon-button{position:absolute;left:82px!important;top:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-child(5) [aria-label=\"expand_more icon\"].mat-icon-button{position:absolute;top:15px;left:169px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:last-child [aria-label=\"expand_more icon\"].mat-icon-button{left:65px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:last-child.ng-star-inserted [aria-label=\"expand_more icon\"].mat-icon-button{left:153px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr td{padding:0;border-bottom:0;position:relative}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .spacer{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon{visibility:hidden;display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-button-wrapper{display:block;width:15px;height:8px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-wrapper{padding-bottom:0}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field{width:auto;max-width:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr [aria-label=\"expand_less icon\"].mat-icon-button .mat-button-wrapper:after{content:\" \u25B2\"}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr [aria-label=\"expand_more icon\"].mat-icon-button .mat-button-wrapper:after{content:\"\u25BC\"}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-flex{width:100%}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-flex .mat-form-field-infix{border:1px solid #000;height:20px;width:37px;display:flex;justify-content:center;align-items:center}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-underline{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr input{height:33px;width:37px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr input:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .actions{padding-bottom:20px;margin-top:20px;justify-content:flex-start}.cdk-overlay-container .mat-datepicker-content .actions .mat-button{background-color:#00823b;position:relative;display:-moz-inline-stack;display:inline-block;padding:.526315em .789473em .263157em;border:none;border-radius:0;outline:1px solid transparent;outline-offset:-1px;-webkit-appearance:none;box-shadow:0 2px 0 #003618;font-size:1em;line-height:1.25;text-decoration:none;-webkit-font-smoothing:antialiased;color:#fff;box-sizing:border-box;vertical-align:top;width:80px;cursor:pointer}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:focus{outline:2px solid #fd0}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:hover{background-color:#006400}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-icon{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-button-wrapper:before{color:#fff;content:\"Confirm\";position:relative;font-size:15px;left:-3px}"], encapsulation: 2 });
|
|
21637
|
+
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i4__namespace.NgxMatDatetimeInput, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective, i5__namespace$1.MatDatepickerToggle, i6__namespace$1.MatSuffix, i4__namespace.NgxMatDatetimePicker], pipes: [FieldLabelPipe, FirstErrorPipe], styles: ["@charset \"UTF-8\";.datepicker-container{display:inline-block;position:relative;min-width:298px}.datepicker-container .govuk-input{height:35px;min-width:298px;width:auto;padding-right:40px;border:1px solid #000}.datepicker-container .govuk-input:focus{outline:1px solid #fd0;border:1px solid #000}.datepicker-container .govuk-input::-ms-clear{display:none}.datepicker-container .datepicker-wrapper-input{position:relative;display:inline-block;top:-20%;border:0}.datepicker-container .datepicker-wrapper-input:focus{border:0;outline:none}.datepicker-container .mat-icon-button{height:32px;width:32px}.datepicker-container .mat-icon-button:focus{outline:1px solid #fd0}.datepicker-container .mat-icon-button .mat-datepicker-toggle-default-icon{position:relative;top:-5px}.datepicker-container .mat-datepicker-toggle{position:absolute;right:0}.cdk-overlay-container .mat-datepicker-content{border:1px solid #000;border-radius:0;max-width:295px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table{width:calc(100% - 1px);table-layout:fixed}.cdk-overlay-container .mat-datepicker-content .mat-calendar-header{height:34px;border-bottom:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button{left:14%;min-width:125px;border-right:1px ridge #bfc1c3;border-left:1px ridge #bfc1c3;border-radius:0;top:-20px;width:200%}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button .mat-button-wrapper{text-align:center;font-weight:700}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button:focus{border:2px solid #000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button{left:-73%;top:-20px;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:after{border-left-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button{top:-20px;left:1%;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:after{border-right-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-button-wrapper{text-transform:capitalize!important}.cdk-overlay-container .mat-datepicker-content .mat-calendar{border-bottom:1px solid #000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider{padding:0;border-bottom:none}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider:after{height:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-content{padding:0}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header{color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header th.ng-star-inserted{font-weight:700;font-size:15px;padding-top:2%;padding-bottom:2%;-moz-column-width:20px;column-width:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th{visibility:hidden}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:after{visibility:visible;color:#000;position:relative;left:-15px}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:first-of-type:after{content:\"MON\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(2):after{left:-12px;content:\"TUE\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(3):after{left:-18px;content:\"WED\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(4):after{left:-14px;content:\"THU\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(5):after{left:-10px;content:\"FRI\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(6):after{content:\"SAT\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(7):after{content:\"SUN\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-label{font-weight:700;font-size:large;color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-selected{border:none;background-color:transparent;color:#fff}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-today{border:none;box-shadow:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell{border:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #fd0;border:2px solid #000;outline-offset:1px;z-index:1}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table{border-collapse:separate;border-spacing:10px}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:2px solid #fd0}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table{border-collapse:separate;border-spacing:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table tr:first-of-type{visibility:collapse}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #fd0;border:2px solid #000;outline-offset:1px}.cdk-overlay-container .mat-datepicker-content .time-container{height:80px;padding-top:0}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker{width:100%}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table{margin-left:0!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tbody{position:relative}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon-button .mat-button-wrapper{width:auto;height:auto}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon-button:focus{outline:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child{position:absolute;left:49px;top:15px;z-index:2}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child button:disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:first-child [aria-label=\"expand_less icon\"]{position:absolute;left:-2px;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-child(3) [aria-label=\"expand_less icon\"].mat-icon-button{position:absolute;left:82px!important;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-child(5) [aria-label=\"expand_less icon\"].mat-icon-button{position:absolute;left:169px!important;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:last-child [aria-label=\"expand_less icon\"].mat-icon-button{left:153px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-last-child(2) [aria-label=\"expand_less icon\"].mat-icon-button{left:65px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2){display:flex;padding:20px 0 20px 15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td{margin-right:30px;text-align:right}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:first-child .mat-form-field{width:50px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:first-child .mat-form-field:before{color:#000;content:\"Hours\";position:relative;top:-5px;left:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:nth-child(3) .mat-form-field:before{color:#000;content:\"Minutes\";position:relative;top:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:last-child{text-align:left;left:-15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .mat-form-field-disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:nth-of-type(5) .mat-form-field:before{color:#000;content:\"Seconds\";position:relative;top:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian{border-bottom:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian .mat-button{height:30px;top:21px;border-radius:0;color:#000;border-color:#000;background-color:#dee0e2;display:flex;justify-content:center}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian .mat-button .mat-button-wrapper{position:relative;top:-2px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4){display:flex;padding:2rem 0 2rem 15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4) td{margin-right:30px;text-align:right}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4) td:last-child{text-align:left}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child{position:absolute;left:49px;top:40px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child button:disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:first-child [aria-label=\"expand_more icon\"]{position:absolute;top:15px;left:-2px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-child(3) [aria-label=\"expand_more icon\"].mat-icon-button{position:absolute;left:82px!important;top:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-child(5) [aria-label=\"expand_more icon\"].mat-icon-button{position:absolute;top:15px;left:169px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:last-child [aria-label=\"expand_more icon\"].mat-icon-button{left:65px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:last-child.ng-star-inserted [aria-label=\"expand_more icon\"].mat-icon-button{left:153px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr td{padding:0;border-bottom:0;position:relative}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .spacer{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon{visibility:hidden;display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-button-wrapper{display:block;width:15px;height:8px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-wrapper{padding-bottom:0}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field{width:auto;max-width:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr [aria-label=\"expand_less icon\"].mat-icon-button .mat-button-wrapper:after{content:\" \u25B2\"}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr [aria-label=\"expand_more icon\"].mat-icon-button .mat-button-wrapper:after{content:\"\u25BC\"}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-flex{width:100%}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-flex .mat-form-field-infix{border:1px solid #000;height:20px;width:37px;display:flex;justify-content:center;align-items:center}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-underline{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr input{height:33px;width:37px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr input:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .actions{padding-bottom:20px;margin-top:20px;justify-content:flex-start}.cdk-overlay-container .mat-datepicker-content .actions .mat-button{background-color:#00823b;position:relative;display:-moz-inline-stack;display:inline-block;padding:.526315em .789473em .263157em;border:none;border-radius:0;outline:1px solid transparent;outline-offset:-1px;-webkit-appearance:none;box-shadow:0 2px 0 #003618;font-size:1em;line-height:1.25;text-decoration:none;-webkit-font-smoothing:antialiased;color:#fff;box-sizing:border-box;vertical-align:top;width:80px;cursor:pointer}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:focus{outline:2px solid #fd0}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:hover{background-color:#006400}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-icon{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-button-wrapper:before{color:#fff;content:\"Confirm\";position:relative;font-size:15px;left:-3px}"], encapsulation: 2 });
|
|
21798
21638
|
(function () {
|
|
21799
21639
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(DatetimePickerComponent, [{
|
|
21800
21640
|
type: i0.Component,
|
|
@@ -22374,7 +22214,7 @@
|
|
|
22374
22214
|
i0__namespace.ɵɵadvance(1);
|
|
22375
22215
|
i0__namespace.ɵɵproperty("innerHTML", i0__namespace.ɵɵpipeBind1(2, 1, ctx.content), i0__namespace.ɵɵsanitizeHtml);
|
|
22376
22216
|
}
|
|
22377
|
-
}, directives: [i1__namespace$
|
|
22217
|
+
}, directives: [i1__namespace$5.NgxMdComponent], pipes: [CaseReferencePipe], encapsulation: 2 });
|
|
22378
22218
|
(function () {
|
|
22379
22219
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(MarkdownComponent, [{
|
|
22380
22220
|
type: i0.Component,
|
|
@@ -22801,8 +22641,8 @@
|
|
|
22801
22641
|
], imports: [[
|
|
22802
22642
|
i1.CommonModule,
|
|
22803
22643
|
i1$1.RouterModule,
|
|
22804
|
-
|
|
22805
|
-
|
|
22644
|
+
i2.FormsModule,
|
|
22645
|
+
i2.ReactiveFormsModule,
|
|
22806
22646
|
CaseEditDataModule,
|
|
22807
22647
|
PaletteUtilsModule,
|
|
22808
22648
|
PipesModule,
|
|
@@ -22813,7 +22653,7 @@
|
|
|
22813
22653
|
FormModule,
|
|
22814
22654
|
TabsModule,
|
|
22815
22655
|
LabelSubstitutorModule,
|
|
22816
|
-
i1$
|
|
22656
|
+
i1$5.NgxMdModule,
|
|
22817
22657
|
i4.NgxMatDatetimePickerModule,
|
|
22818
22658
|
i4.NgxMatTimepickerModule,
|
|
22819
22659
|
i4.NgxMatNativeDateModule,
|
|
@@ -22822,10 +22662,10 @@
|
|
|
22822
22662
|
i5$1.MatDatepickerModule,
|
|
22823
22663
|
i5.MatAutocompleteModule,
|
|
22824
22664
|
i7.CdkTreeModule,
|
|
22825
|
-
i1$
|
|
22665
|
+
i1$4.OverlayModule,
|
|
22826
22666
|
i3.PaymentLibModule,
|
|
22827
|
-
i2.ScrollToModule.forRoot(),
|
|
22828
|
-
i1$
|
|
22667
|
+
i2$1.ScrollToModule.forRoot(),
|
|
22668
|
+
i1$3.MatDialogModule,
|
|
22829
22669
|
i11.MediaViewerModule,
|
|
22830
22670
|
LoadingModule
|
|
22831
22671
|
], i4.NgxMatDatetimePickerModule,
|
|
@@ -22927,8 +22767,8 @@
|
|
|
22927
22767
|
CaseFileViewFolderDocumentActionsComponent,
|
|
22928
22768
|
CaseFileViewFolderSelectorComponent], imports: [i1.CommonModule,
|
|
22929
22769
|
i1$1.RouterModule,
|
|
22930
|
-
|
|
22931
|
-
|
|
22770
|
+
i2.FormsModule,
|
|
22771
|
+
i2.ReactiveFormsModule,
|
|
22932
22772
|
CaseEditDataModule,
|
|
22933
22773
|
PaletteUtilsModule,
|
|
22934
22774
|
PipesModule,
|
|
@@ -22939,7 +22779,7 @@
|
|
|
22939
22779
|
FormModule,
|
|
22940
22780
|
TabsModule,
|
|
22941
22781
|
LabelSubstitutorModule,
|
|
22942
|
-
i1$
|
|
22782
|
+
i1$5.NgxMdModule,
|
|
22943
22783
|
i4.NgxMatDatetimePickerModule,
|
|
22944
22784
|
i4.NgxMatTimepickerModule,
|
|
22945
22785
|
i4.NgxMatNativeDateModule,
|
|
@@ -22948,8 +22788,8 @@
|
|
|
22948
22788
|
i5$1.MatDatepickerModule,
|
|
22949
22789
|
i5.MatAutocompleteModule,
|
|
22950
22790
|
i7.CdkTreeModule,
|
|
22951
|
-
i1$
|
|
22952
|
-
i3.PaymentLibModule, i2__namespace.ScrollToModule, i1$
|
|
22791
|
+
i1$4.OverlayModule,
|
|
22792
|
+
i3.PaymentLibModule, i2__namespace$1.ScrollToModule, i1$3.MatDialogModule,
|
|
22953
22793
|
i11.MediaViewerModule,
|
|
22954
22794
|
LoadingModule], exports: [i4.NgxMatDatetimePickerModule,
|
|
22955
22795
|
i4.NgxMatNativeDateModule,
|
|
@@ -23043,8 +22883,8 @@
|
|
|
23043
22883
|
imports: [
|
|
23044
22884
|
i1.CommonModule,
|
|
23045
22885
|
i1$1.RouterModule,
|
|
23046
|
-
|
|
23047
|
-
|
|
22886
|
+
i2.FormsModule,
|
|
22887
|
+
i2.ReactiveFormsModule,
|
|
23048
22888
|
CaseEditDataModule,
|
|
23049
22889
|
PaletteUtilsModule,
|
|
23050
22890
|
PipesModule,
|
|
@@ -23055,7 +22895,7 @@
|
|
|
23055
22895
|
FormModule,
|
|
23056
22896
|
TabsModule,
|
|
23057
22897
|
LabelSubstitutorModule,
|
|
23058
|
-
i1$
|
|
22898
|
+
i1$5.NgxMdModule,
|
|
23059
22899
|
i4.NgxMatDatetimePickerModule,
|
|
23060
22900
|
i4.NgxMatTimepickerModule,
|
|
23061
22901
|
i4.NgxMatNativeDateModule,
|
|
@@ -23064,10 +22904,10 @@
|
|
|
23064
22904
|
i5$1.MatDatepickerModule,
|
|
23065
22905
|
i5.MatAutocompleteModule,
|
|
23066
22906
|
i7.CdkTreeModule,
|
|
23067
|
-
i1$
|
|
22907
|
+
i1$4.OverlayModule,
|
|
23068
22908
|
i3.PaymentLibModule,
|
|
23069
|
-
i2.ScrollToModule.forRoot(),
|
|
23070
|
-
i1$
|
|
22909
|
+
i2$1.ScrollToModule.forRoot(),
|
|
22910
|
+
i1$3.MatDialogModule,
|
|
23071
22911
|
i11.MediaViewerModule,
|
|
23072
22912
|
LoadingModule
|
|
23073
22913
|
],
|
|
@@ -23112,7 +22952,7 @@
|
|
|
23112
22952
|
}]
|
|
23113
22953
|
}], null, null);
|
|
23114
22954
|
})();
|
|
23115
|
-
i0__namespace.ɵɵsetComponentScope(FieldReadComponent, [FieldReadLabelComponent,
|
|
22955
|
+
i0__namespace.ɵɵsetComponentScope(FieldReadComponent, [FieldReadLabelComponent, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective], []);
|
|
23116
22956
|
i0__namespace.ɵɵsetComponentScope(LabelFieldComponent, [LabelSubstitutorDirective, MarkdownComponent], []);
|
|
23117
22957
|
i0__namespace.ɵɵsetComponentScope(CaseHistoryViewerFieldComponent, [EventLogComponent], []);
|
|
23118
22958
|
i0__namespace.ɵɵsetComponentScope(EventLogComponent, [i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, EventLogTableComponent, i1__namespace.NgIf, EventLogDetailsComponent], []);
|
|
@@ -23129,25 +22969,25 @@
|
|
|
23129
22969
|
i0__namespace.ɵɵsetComponentScope(ReadComplexFieldCollectionTableComponent, [i1__namespace.NgForOf, i1__namespace.NgIf, FieldReadComponent,
|
|
23130
22970
|
ReadCaseLinkFieldComponent], [ReadFieldsFilterPipe, CcdCollectionTableCaseFieldsFilterPipe, i1__namespace.KeyValuePipe, IsCompoundPipe]);
|
|
23131
22971
|
i0__namespace.ɵɵsetComponentScope(ReadCaseFlagFieldComponent, [i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, CaseFlagSummaryListComponent, i1__namespace.NgSwitchDefault, i1__namespace.NgForOf, i1__namespace.NgIf, CaseFlagTableComponent], []);
|
|
23132
|
-
i0__namespace.ɵɵsetComponentScope(WriteAddressFieldComponent, [i1__namespace.NgIf, i1__namespace.NgClass,
|
|
23133
|
-
i0__namespace.ɵɵsetComponentScope(WriteComplexFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, FieldReadComponent, LabelSubstitutorDirective,
|
|
22972
|
+
i0__namespace.ɵɵsetComponentScope(WriteAddressFieldComponent, [i1__namespace.NgIf, i1__namespace.NgClass, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective, i2__namespace.SelectControlValueAccessor, i1__namespace.NgForOf, i2__namespace.NgSelectOption, i2__namespace.ɵangular_packages_forms_forms_z, WriteComplexFieldComponent, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective], [FieldLabelPipe]);
|
|
22973
|
+
i0__namespace.ɵɵsetComponentScope(WriteComplexFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, FieldReadComponent, LabelSubstitutorDirective, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, FieldWriteComponent], [FieldLabelPipe, IsReadOnlyPipe]);
|
|
23134
22974
|
i0__namespace.ɵɵsetComponentScope(WriteDocumentFieldComponent, [i1__namespace.NgClass, i1__namespace.NgIf, ReadDocumentFieldComponent], [FieldLabelPipe]);
|
|
23135
|
-
i0__namespace.ɵɵsetComponentScope(WriteDateContainerFieldComponent, [i1__namespace.NgIf, DatetimePickerComponent,
|
|
23136
|
-
i0__namespace.ɵɵsetComponentScope(WriteCaseFlagFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf,
|
|
22975
|
+
i0__namespace.ɵɵsetComponentScope(WriteDateContainerFieldComponent, [i1__namespace.NgIf, DatetimePickerComponent, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, WriteDateFieldComponent], []);
|
|
22976
|
+
i0__namespace.ɵɵsetComponentScope(WriteCaseFlagFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgSwitch, i1__namespace.NgClass, i1__namespace.NgSwitchCase, SelectFlagLocationComponent,
|
|
23137
22977
|
SelectFlagTypeComponent,
|
|
23138
22978
|
SearchLanguageInterpreterComponent,
|
|
23139
22979
|
AddCommentsComponent,
|
|
23140
22980
|
ManageCaseFlagsComponent,
|
|
23141
22981
|
UpdateFlagComponent], []);
|
|
23142
|
-
i0__namespace.ɵɵsetComponentScope(WriteOrganisationFieldComponent, [
|
|
22982
|
+
i0__namespace.ɵɵsetComponentScope(WriteOrganisationFieldComponent, [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective, i1__namespace.NgClass, i1__namespace.NgForOf, MarkdownComponent,
|
|
23143
22983
|
WriteOrganisationComplexFieldComponent], [i1__namespace.AsyncPipe]);
|
|
23144
22984
|
i0__namespace.ɵɵsetComponentScope(WriteOrderSummaryFieldComponent, [ReadOrderSummaryFieldComponent], []);
|
|
23145
|
-
i0__namespace.ɵɵsetComponentScope(WriteDateContainerFieldComponent, [i1__namespace.NgIf, DatetimePickerComponent,
|
|
23146
|
-
i0__namespace.ɵɵsetComponentScope(WriteCollectionFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, FieldWriteComponent,
|
|
22985
|
+
i0__namespace.ɵɵsetComponentScope(WriteDateContainerFieldComponent, [i1__namespace.NgIf, DatetimePickerComponent, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, WriteDateFieldComponent], []);
|
|
22986
|
+
i0__namespace.ɵɵsetComponentScope(WriteCollectionFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, FieldWriteComponent, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective], [FieldLabelPipe, FirstErrorPipe]);
|
|
23147
22987
|
i0__namespace.ɵɵsetComponentScope(
|
|
23148
22988
|
// ComponentLauncher web components
|
|
23149
|
-
CaseFileViewFieldComponent, [i1__namespace.NgIf, CaseFileViewFolderComponent, i11__namespace.ɵcs], []);
|
|
23150
|
-
i0__namespace.ɵɵsetComponentScope(CaseFileViewFieldReadComponent, [i1__namespace.NgIf, CaseFileViewFolderComponent, i11__namespace.ɵcs], []);
|
|
22989
|
+
CaseFileViewFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, CaseFileViewFolderComponent, i11__namespace.ɵcs], []);
|
|
22990
|
+
i0__namespace.ɵɵsetComponentScope(CaseFileViewFieldReadComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, CaseFileViewFolderComponent, i11__namespace.ɵcs], []);
|
|
23151
22991
|
|
|
23152
22992
|
var Confirmation = /** @class */ (function () {
|
|
23153
22993
|
function Confirmation(caseId, status, header, body) {
|
|
@@ -23288,7 +23128,7 @@
|
|
|
23288
23128
|
}
|
|
23289
23129
|
function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_ng_container_1_th_2_Template(rf, ctx) {
|
|
23290
23130
|
if (rf & 1) {
|
|
23291
|
-
i0__namespace.ɵɵelementStart(0, "th",
|
|
23131
|
+
i0__namespace.ɵɵelementStart(0, "th", 36);
|
|
23292
23132
|
i0__namespace.ɵɵelementStart(1, "span", 29);
|
|
23293
23133
|
i0__namespace.ɵɵtext(2);
|
|
23294
23134
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -23300,37 +23140,22 @@
|
|
|
23300
23140
|
i0__namespace.ɵɵtextInterpolate(field_r21.label);
|
|
23301
23141
|
}
|
|
23302
23142
|
}
|
|
23303
|
-
function
|
|
23143
|
+
function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_ng_container_1_a_6_Template(rf, ctx) {
|
|
23304
23144
|
if (rf & 1) {
|
|
23305
|
-
var
|
|
23145
|
+
var _r28_1 = i0__namespace.ɵɵgetCurrentView();
|
|
23306
23146
|
i0__namespace.ɵɵelementStart(0, "a", 13);
|
|
23307
|
-
i0__namespace.ɵɵlistener("click", function
|
|
23147
|
+
i0__namespace.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_ng_container_1_a_6_Template_a_click_0_listener() { i0__namespace.ɵɵrestoreView(_r28_1); var page_r18 = i0__namespace.ɵɵnextContext(4).$implicit; var ctx_r26 = i0__namespace.ɵɵnextContext(3); return ctx_r26.navigateToPage(page_r18.id); });
|
|
23308
23148
|
i0__namespace.ɵɵelementStart(1, "span", 29);
|
|
23309
23149
|
i0__namespace.ɵɵtext(2, "Change");
|
|
23310
23150
|
i0__namespace.ɵɵelementEnd();
|
|
23311
23151
|
i0__namespace.ɵɵelementEnd();
|
|
23312
23152
|
}
|
|
23313
23153
|
if (rf & 2) {
|
|
23314
|
-
var field_r21 = i0__namespace.ɵɵnextContext(
|
|
23154
|
+
var field_r21 = i0__namespace.ɵɵnextContext(2).$implicit;
|
|
23315
23155
|
i0__namespace.ɵɵadvance(1);
|
|
23316
23156
|
i0__namespace.ɵɵattributeInterpolate1("aria-label", "Change ", field_r21.label, "");
|
|
23317
23157
|
}
|
|
23318
23158
|
}
|
|
23319
|
-
function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_ng_container_1_ng_container_5_Template(rf, ctx) {
|
|
23320
|
-
if (rf & 1) {
|
|
23321
|
-
i0__namespace.ɵɵelementContainerStart(0);
|
|
23322
|
-
i0__namespace.ɵɵelementStart(1, "td", 35);
|
|
23323
|
-
i0__namespace.ɵɵtemplate(2, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_ng_container_1_ng_container_5_a_2_Template, 3, 1, "a", 36);
|
|
23324
|
-
i0__namespace.ɵɵelementEnd();
|
|
23325
|
-
i0__namespace.ɵɵelementContainerEnd();
|
|
23326
|
-
}
|
|
23327
|
-
if (rf & 2) {
|
|
23328
|
-
var field_r21 = i0__namespace.ɵɵnextContext(2).$implicit;
|
|
23329
|
-
var ctx_r24 = i0__namespace.ɵɵnextContext(5);
|
|
23330
|
-
i0__namespace.ɵɵadvance(2);
|
|
23331
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r24.isChangeAllowed(field_r21));
|
|
23332
|
-
}
|
|
23333
|
-
}
|
|
23334
23159
|
function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_ng_container_1_Template(rf, ctx) {
|
|
23335
23160
|
if (rf & 1) {
|
|
23336
23161
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
@@ -23339,7 +23164,9 @@
|
|
|
23339
23164
|
i0__namespace.ɵɵelementStart(3, "td", 32);
|
|
23340
23165
|
i0__namespace.ɵɵelement(4, "ccd-field-read", 33);
|
|
23341
23166
|
i0__namespace.ɵɵelementEnd();
|
|
23342
|
-
i0__namespace.ɵɵ
|
|
23167
|
+
i0__namespace.ɵɵelementStart(5, "td", 34);
|
|
23168
|
+
i0__namespace.ɵɵtemplate(6, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_ng_container_1_a_6_Template, 3, 1, "a", 35);
|
|
23169
|
+
i0__namespace.ɵɵelementEnd();
|
|
23343
23170
|
i0__namespace.ɵɵelementEnd();
|
|
23344
23171
|
i0__namespace.ɵɵelementContainerEnd();
|
|
23345
23172
|
}
|
|
@@ -23354,14 +23181,14 @@
|
|
|
23354
23181
|
i0__namespace.ɵɵattribute("colspan", ctx_r22.isLabel(field_r21) ? "2" : "1");
|
|
23355
23182
|
i0__namespace.ɵɵadvance(1);
|
|
23356
23183
|
i0__namespace.ɵɵproperty("formGroup", ctx_r22.editForm.controls["data"])("topLevelFormGroup", ctx_r22.editForm.controls["data"])("caseField", ctx_r22.summaryCaseField(field_r21))("context", ctx_r22.paletteContext)("caseFields", ctx_r22.contextFields);
|
|
23357
|
-
i0__namespace.ɵɵadvance(
|
|
23358
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r22.
|
|
23184
|
+
i0__namespace.ɵɵadvance(2);
|
|
23185
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r22.isChangeAllowed(field_r21));
|
|
23359
23186
|
}
|
|
23360
23187
|
}
|
|
23361
23188
|
function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_Template(rf, ctx) {
|
|
23362
23189
|
if (rf & 1) {
|
|
23363
23190
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
23364
|
-
i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_ng_container_1_Template,
|
|
23191
|
+
i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_ng_container_1_Template, 7, 12, "ng-container", 0);
|
|
23365
23192
|
i0__namespace.ɵɵelementContainerEnd();
|
|
23366
23193
|
}
|
|
23367
23194
|
if (rf & 2) {
|
|
@@ -23437,13 +23264,13 @@
|
|
|
23437
23264
|
i0__namespace.ɵɵelementEnd();
|
|
23438
23265
|
}
|
|
23439
23266
|
if (rf & 2) {
|
|
23440
|
-
var
|
|
23441
|
-
var
|
|
23442
|
-
i0__namespace.ɵɵproperty("caseField",
|
|
23267
|
+
var field_r33 = i0__namespace.ɵɵnextContext().$implicit;
|
|
23268
|
+
var ctx_r34 = i0__namespace.ɵɵnextContext(3);
|
|
23269
|
+
i0__namespace.ɵɵproperty("caseField", field_r33)("formGroup", ctx_r34.editForm.controls["data"])("contextFields", ctx_r34.contextFields);
|
|
23443
23270
|
i0__namespace.ɵɵadvance(2);
|
|
23444
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
23271
|
+
i0__namespace.ɵɵtextInterpolate(field_r33.label);
|
|
23445
23272
|
i0__namespace.ɵɵadvance(2);
|
|
23446
|
-
i0__namespace.ɵɵproperty("formGroup",
|
|
23273
|
+
i0__namespace.ɵɵproperty("formGroup", ctx_r34.editForm.controls["data"])("caseField", ctx_r34.summaryCaseField(field_r33));
|
|
23447
23274
|
}
|
|
23448
23275
|
}
|
|
23449
23276
|
function CaseEditSubmitComponent_div_0_ng_container_13_ng_container_3_tr_4_Template(rf, ctx) {
|
|
@@ -23455,11 +23282,11 @@
|
|
|
23455
23282
|
i0__namespace.ɵɵelementEnd();
|
|
23456
23283
|
}
|
|
23457
23284
|
if (rf & 2) {
|
|
23458
|
-
var
|
|
23459
|
-
var
|
|
23460
|
-
i0__namespace.ɵɵproperty("caseField",
|
|
23285
|
+
var field_r33 = i0__namespace.ɵɵnextContext().$implicit;
|
|
23286
|
+
var ctx_r35 = i0__namespace.ɵɵnextContext(3);
|
|
23287
|
+
i0__namespace.ɵɵproperty("caseField", field_r33)("formGroup", ctx_r35.editForm.controls["data"])("contextFields", ctx_r35.contextFields);
|
|
23461
23288
|
i0__namespace.ɵɵadvance(2);
|
|
23462
|
-
i0__namespace.ɵɵproperty("formGroup",
|
|
23289
|
+
i0__namespace.ɵɵproperty("formGroup", ctx_r35.editForm.controls["data"])("caseField", ctx_r35.summaryCaseField(field_r33))("caseFields", ctx_r35.contextFields);
|
|
23463
23290
|
}
|
|
23464
23291
|
}
|
|
23465
23292
|
function CaseEditSubmitComponent_div_0_ng_container_13_ng_container_3_Template(rf, ctx) {
|
|
@@ -23473,9 +23300,9 @@
|
|
|
23473
23300
|
i0__namespace.ɵɵelementContainerEnd();
|
|
23474
23301
|
}
|
|
23475
23302
|
if (rf & 2) {
|
|
23476
|
-
var
|
|
23303
|
+
var field_r33 = ctx.$implicit;
|
|
23477
23304
|
i0__namespace.ɵɵadvance(1);
|
|
23478
|
-
i0__namespace.ɵɵproperty("ngSwitch", !i0__namespace.ɵɵpipeBind1(2, 3,
|
|
23305
|
+
i0__namespace.ɵɵproperty("ngSwitch", !i0__namespace.ɵɵpipeBind1(2, 3, field_r33));
|
|
23479
23306
|
i0__namespace.ɵɵadvance(2);
|
|
23480
23307
|
i0__namespace.ɵɵproperty("ngSwitchCase", true);
|
|
23481
23308
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -23534,7 +23361,7 @@
|
|
|
23534
23361
|
}
|
|
23535
23362
|
function CaseEditSubmitComponent_div_0_Template(rf, ctx) {
|
|
23536
23363
|
if (rf & 1) {
|
|
23537
|
-
var
|
|
23364
|
+
var _r40_1 = i0__namespace.ɵɵgetCurrentView();
|
|
23538
23365
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
23539
23366
|
i0__namespace.ɵɵelementStart(1, "h1", 2);
|
|
23540
23367
|
i0__namespace.ɵɵtext(2);
|
|
@@ -23545,16 +23372,16 @@
|
|
|
23545
23372
|
i0__namespace.ɵɵtemplate(8, CaseEditSubmitComponent_div_0_div_8_Template, 10, 0, "div", 6);
|
|
23546
23373
|
i0__namespace.ɵɵtemplate(9, CaseEditSubmitComponent_div_0_div_9_Template, 6, 2, "div", 6);
|
|
23547
23374
|
i0__namespace.ɵɵelementStart(10, "ccd-callback-errors", 7);
|
|
23548
|
-
i0__namespace.ɵɵlistener("callbackErrorsContext", function CaseEditSubmitComponent_div_0_Template_ccd_callback_errors_callbackErrorsContext_10_listener($event) { i0__namespace.ɵɵrestoreView(
|
|
23375
|
+
i0__namespace.ɵɵlistener("callbackErrorsContext", function CaseEditSubmitComponent_div_0_Template_ccd_callback_errors_callbackErrorsContext_10_listener($event) { i0__namespace.ɵɵrestoreView(_r40_1); var ctx_r39 = i0__namespace.ɵɵnextContext(); return ctx_r39.callbackErrorsNotify($event); });
|
|
23549
23376
|
i0__namespace.ɵɵelementEnd();
|
|
23550
23377
|
i0__namespace.ɵɵelementStart(11, "form", 8);
|
|
23551
|
-
i0__namespace.ɵɵlistener("submit", function CaseEditSubmitComponent_div_0_Template_form_submit_11_listener() { i0__namespace.ɵɵrestoreView(
|
|
23378
|
+
i0__namespace.ɵɵlistener("submit", function CaseEditSubmitComponent_div_0_Template_form_submit_11_listener() { i0__namespace.ɵɵrestoreView(_r40_1); var ctx_r41 = i0__namespace.ɵɵnextContext(); return ctx_r41.submit(); });
|
|
23552
23379
|
i0__namespace.ɵɵtemplate(12, CaseEditSubmitComponent_div_0_ng_container_12_Template, 7, 3, "ng-container", 0);
|
|
23553
23380
|
i0__namespace.ɵɵtemplate(13, CaseEditSubmitComponent_div_0_ng_container_13_Template, 4, 1, "ng-container", 0);
|
|
23554
23381
|
i0__namespace.ɵɵtemplate(14, CaseEditSubmitComponent_div_0_ng_container_14_Template, 2, 1, "ng-container", 0);
|
|
23555
23382
|
i0__namespace.ɵɵelementStart(15, "div", 9);
|
|
23556
23383
|
i0__namespace.ɵɵelementStart(16, "button", 10);
|
|
23557
|
-
i0__namespace.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_Template_button_click_16_listener() { i0__namespace.ɵɵrestoreView(
|
|
23384
|
+
i0__namespace.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_Template_button_click_16_listener() { i0__namespace.ɵɵrestoreView(_r40_1); var ctx_r42 = i0__namespace.ɵɵnextContext(); return ctx_r42.previous(); });
|
|
23558
23385
|
i0__namespace.ɵɵtext(17, "Previous");
|
|
23559
23386
|
i0__namespace.ɵɵelementEnd();
|
|
23560
23387
|
i0__namespace.ɵɵelementStart(18, "button", 11);
|
|
@@ -23563,7 +23390,7 @@
|
|
|
23563
23390
|
i0__namespace.ɵɵelementEnd();
|
|
23564
23391
|
i0__namespace.ɵɵelementStart(20, "p", 12);
|
|
23565
23392
|
i0__namespace.ɵɵelementStart(21, "a", 13);
|
|
23566
|
-
i0__namespace.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_Template_a_click_21_listener() { i0__namespace.ɵɵrestoreView(
|
|
23393
|
+
i0__namespace.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_Template_a_click_21_listener() { i0__namespace.ɵɵrestoreView(_r40_1); var ctx_r43 = i0__namespace.ɵɵnextContext(); return ctx_r43.cancel(); });
|
|
23567
23394
|
i0__namespace.ɵɵtext(22);
|
|
23568
23395
|
i0__namespace.ɵɵelementEnd();
|
|
23569
23396
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -23606,9 +23433,9 @@
|
|
|
23606
23433
|
}
|
|
23607
23434
|
function CaseEditSubmitComponent_ccd_case_event_completion_1_Template(rf, ctx) {
|
|
23608
23435
|
if (rf & 1) {
|
|
23609
|
-
var
|
|
23436
|
+
var _r45_1 = i0__namespace.ɵɵgetCurrentView();
|
|
23610
23437
|
i0__namespace.ɵɵelementStart(0, "ccd-case-event-completion", 57);
|
|
23611
|
-
i0__namespace.ɵɵlistener("eventCanBeCompleted", function CaseEditSubmitComponent_ccd_case_event_completion_1_Template_ccd_case_event_completion_eventCanBeCompleted_0_listener($event) { i0__namespace.ɵɵrestoreView(
|
|
23438
|
+
i0__namespace.ɵɵlistener("eventCanBeCompleted", function CaseEditSubmitComponent_ccd_case_event_completion_1_Template_ccd_case_event_completion_eventCanBeCompleted_0_listener($event) { i0__namespace.ɵɵrestoreView(_r45_1); var ctx_r44 = i0__namespace.ɵɵnextContext(); return ctx_r44.onEventCanBeCompleted($event); });
|
|
23612
23439
|
i0__namespace.ɵɵelementEnd();
|
|
23613
23440
|
}
|
|
23614
23441
|
if (rf & 2) {
|
|
@@ -23808,10 +23635,10 @@
|
|
|
23808
23635
|
// parent)
|
|
23809
23636
|
// Update rawFormValueData for this field
|
|
23810
23637
|
// creating form group and adding control into it in case caseField is of complext type and and part of formGroup
|
|
23811
|
-
var form_1 = new
|
|
23638
|
+
var form_1 = new i2.FormGroup({});
|
|
23812
23639
|
if (formGroup.controls[key].value) {
|
|
23813
23640
|
Object.keys(formGroup.controls[key].value).forEach(function (item) {
|
|
23814
|
-
form_1.addControl(item, new
|
|
23641
|
+
form_1.addControl(item, new i2.FormControl(formGroup.controls[key].value[item]));
|
|
23815
23642
|
});
|
|
23816
23643
|
}
|
|
23817
23644
|
rawFormValueData[key] = _this.replaceHiddenFormValuesWithOriginalCaseData(form_1, caseField.field_type.complex_fields, caseField);
|
|
@@ -24024,7 +23851,7 @@
|
|
|
24024
23851
|
return a.show_summary_content_option - b.show_summary_content_option;
|
|
24025
23852
|
};
|
|
24026
23853
|
CaseEditSubmitComponent.ɵfac = function CaseEditSubmitComponent_Factory(t) { return new (t || CaseEditSubmitComponent)(i0__namespace.ɵɵdirectiveInject(CaseEditComponent), i0__namespace.ɵɵdirectiveInject(FormValueService), i0__namespace.ɵɵdirectiveInject(FormErrorService), i0__namespace.ɵɵdirectiveInject(FieldsUtils), i0__namespace.ɵɵdirectiveInject(CaseFieldService), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(OrderService), i0__namespace.ɵɵdirectiveInject(ProfileNotifier), i0__namespace.ɵɵdirectiveInject(SessionStorageService), i0__namespace.ɵɵdirectiveInject(CaseNotifier)); };
|
|
24027
|
-
CaseEditSubmitComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseEditSubmitComponent, selectors: [["ccd-case-edit-submit"]], decls: 2, vars: 2, consts: [[4, "ngIf"], [3, "eventCompletionParams", "eventCanBeCompleted", 4, "ngIf"], [1, "govuk-heading-l"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["titleBlock", ""], ["idBlock", ""], ["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "callbackErrorsSubject", "callbackErrorsContext"], [1, "check-your-answers", 3, "formGroup", "submit"], [1, "form-group", "form-group-related"], ["type", "button", 1, "button", "button-secondary", 3, "disabled", "click"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["href", "javascript:void(0)", 3, "click"], [3, "content"], ["class", "heading-h2", 4, "ngIf"], [1, "heading-h2"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h3", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], ["class", "ccd-error-summary-li", 4, "ngFor", "ngForOf"], [1, "ccd-error-summary-li"], ["class", "text-16", 4, "ngIf"], ["aria-describedby", "check your answers table", 1, "form-table"], [4, "ngFor", "ngForOf"], [1, "text-16"], ["ccdLabelSubstitutor", "", 3, "caseField", "hidden", "formGroup", "contextFields"], ["class", "valign-top case-field-label", 4, "ngIf"], [1, "form-cell", "case-field-content"], [3, "formGroup", "topLevelFormGroup", "caseField", "context", "caseFields"], [1, "valign-top", "
|
|
23854
|
+
CaseEditSubmitComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseEditSubmitComponent, selectors: [["ccd-case-edit-submit"]], decls: 2, vars: 2, consts: [[4, "ngIf"], [3, "eventCompletionParams", "eventCanBeCompleted", 4, "ngIf"], [1, "govuk-heading-l"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["titleBlock", ""], ["idBlock", ""], ["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "callbackErrorsSubject", "callbackErrorsContext"], [1, "check-your-answers", 3, "formGroup", "submit"], [1, "form-group", "form-group-related"], ["type", "button", 1, "button", "button-secondary", 3, "disabled", "click"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["href", "javascript:void(0)", 3, "click"], [3, "content"], ["class", "heading-h2", 4, "ngIf"], [1, "heading-h2"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h3", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], ["class", "ccd-error-summary-li", 4, "ngFor", "ngForOf"], [1, "ccd-error-summary-li"], ["class", "text-16", 4, "ngIf"], ["aria-describedby", "check your answers table", 1, "form-table"], [4, "ngFor", "ngForOf"], [1, "text-16"], ["ccdLabelSubstitutor", "", 3, "caseField", "hidden", "formGroup", "contextFields"], ["class", "valign-top case-field-label", 4, "ngIf"], [1, "form-cell", "case-field-content"], [3, "formGroup", "topLevelFormGroup", "caseField", "context", "caseFields"], [1, "valign-top", "check-your-answers__change", "case-field-change"], ["href", "javascript:void(0)", 3, "click", 4, "ngIf"], [1, "valign-top", "case-field-label"], ["aria-describedby", "summary fields table", 1, "summary-fields"], [3, "ngSwitch"], ["ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields", 4, "ngSwitchCase"], ["class", "compound-field", "ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields", 4, "ngSwitchCase"], ["ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields"], ["id", "summary-field-label"], [1, "form-cell"], [3, "formGroup", "caseField"], ["ccdLabelSubstitutor", "", 1, "compound-field", 3, "caseField", "formGroup", "contextFields"], ["colspan", "2"], [3, "formGroup", "caseField", "caseFields"], ["id", "fieldset-event", "formGroupName", "event", 4, "ngIf"], ["id", "fieldset-event", "formGroupName", "event"], [2, "display", "none"], [1, "form-group"], ["for", "field-trigger-summary", 1, "form-label"], [1, "form-hint"], ["type", "text", "id", "field-trigger-summary", "formControlName", "summary", "maxlength", "1024", 1, "form-control", "bottom-30", "width-50"], ["for", "field-trigger-description", 1, "form-label"], ["id", "field-trigger-description", "formControlName", "description", "maxlength", "65536", 1, "form-control", "bottom-30", "width-50"], [3, "eventCompletionParams", "eventCanBeCompleted"]], template: function CaseEditSubmitComponent_Template(rf, ctx) {
|
|
24028
23855
|
if (rf & 1) {
|
|
24029
23856
|
i0__namespace.ɵɵtemplate(0, CaseEditSubmitComponent_div_0_Template, 23, 17, "div", 0);
|
|
24030
23857
|
i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_ccd_case_event_completion_1_Template, 1, 1, "ccd-case-event-completion", 1);
|
|
@@ -24569,13 +24396,12 @@
|
|
|
24569
24396
|
JudicialworkerService,
|
|
24570
24397
|
CaseworkerService,
|
|
24571
24398
|
SessionStorageService,
|
|
24572
|
-
EventCompletionStateMachineService
|
|
24573
|
-
CaseFlagStateService
|
|
24399
|
+
EventCompletionStateMachineService
|
|
24574
24400
|
], imports: [[
|
|
24575
24401
|
i1.CommonModule,
|
|
24576
24402
|
i1$1.RouterModule,
|
|
24577
|
-
|
|
24578
|
-
|
|
24403
|
+
i2.FormsModule,
|
|
24404
|
+
i2.ReactiveFormsModule,
|
|
24579
24405
|
CaseEditDataModule,
|
|
24580
24406
|
PaletteModule,
|
|
24581
24407
|
LabelSubstitutorModule,
|
|
@@ -24597,8 +24423,8 @@
|
|
|
24597
24423
|
CaseCreateComponent,
|
|
24598
24424
|
CaseProgressComponent], imports: [i1.CommonModule,
|
|
24599
24425
|
i1$1.RouterModule,
|
|
24600
|
-
|
|
24601
|
-
|
|
24426
|
+
i2.FormsModule,
|
|
24427
|
+
i2.ReactiveFormsModule,
|
|
24602
24428
|
CaseEditDataModule,
|
|
24603
24429
|
PaletteModule,
|
|
24604
24430
|
LabelSubstitutorModule,
|
|
@@ -24622,8 +24448,8 @@
|
|
|
24622
24448
|
imports: [
|
|
24623
24449
|
i1.CommonModule,
|
|
24624
24450
|
i1$1.RouterModule,
|
|
24625
|
-
|
|
24626
|
-
|
|
24451
|
+
i2.FormsModule,
|
|
24452
|
+
i2.ReactiveFormsModule,
|
|
24627
24453
|
CaseEditDataModule,
|
|
24628
24454
|
PaletteModule,
|
|
24629
24455
|
LabelSubstitutorModule,
|
|
@@ -24682,16 +24508,15 @@
|
|
|
24682
24508
|
JudicialworkerService,
|
|
24683
24509
|
CaseworkerService,
|
|
24684
24510
|
SessionStorageService,
|
|
24685
|
-
EventCompletionStateMachineService
|
|
24686
|
-
CaseFlagStateService
|
|
24511
|
+
EventCompletionStateMachineService
|
|
24687
24512
|
]
|
|
24688
24513
|
}]
|
|
24689
24514
|
}], null, null);
|
|
24690
24515
|
})();
|
|
24691
|
-
i0__namespace.ɵɵsetComponentScope(CaseEditConfirmComponent, [i1__namespace.NgIf, MarkdownComponent,
|
|
24692
|
-
i0__namespace.ɵɵsetComponentScope(CaseEditPageComponent, [i1__namespace.NgIf, LoadingSpinnerComponent, MarkdownComponent, i1__namespace.NgForOf, CallbackErrorsComponent,
|
|
24693
|
-
i0__namespace.ɵɵsetComponentScope(CaseEditFormComponent, [i1__namespace.NgForOf, ConditionalShowFormDirective,
|
|
24694
|
-
i0__namespace.ɵɵsetComponentScope(CaseEditSubmitComponent, [i1__namespace.NgIf, MarkdownComponent, i1__namespace.NgForOf, CallbackErrorsComponent,
|
|
24516
|
+
i0__namespace.ɵɵsetComponentScope(CaseEditConfirmComponent, [i1__namespace.NgIf, MarkdownComponent, i2__namespace.ɵangular_packages_forms_forms_ba, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective], [CcdCaseTitlePipe, CaseReferencePipe]);
|
|
24517
|
+
i0__namespace.ɵɵsetComponentScope(CaseEditPageComponent, [i1__namespace.NgIf, LoadingSpinnerComponent, MarkdownComponent, i1__namespace.NgForOf, CallbackErrorsComponent, i2__namespace.ɵangular_packages_forms_forms_ba, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, CaseEditFormComponent], [CcdCaseTitlePipe, CaseReferencePipe, i1__namespace.AsyncPipe]);
|
|
24518
|
+
i0__namespace.ɵɵsetComponentScope(CaseEditFormComponent, [i1__namespace.NgForOf, ConditionalShowFormDirective, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, LabelSubstitutorDirective, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, FieldReadComponent, i1__namespace.NgIf, FieldWriteComponent], [IsReadOnlyAndNotCollectionPipe, IsCompoundPipe]);
|
|
24519
|
+
i0__namespace.ɵɵsetComponentScope(CaseEditSubmitComponent, [i1__namespace.NgIf, MarkdownComponent, i1__namespace.NgForOf, CallbackErrorsComponent, i2__namespace.ɵangular_packages_forms_forms_ba, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, LabelSubstitutorDirective, FieldReadComponent, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, i2__namespace.FormGroupName, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName, i2__namespace.MaxLengthValidator, CaseEventCompletionComponent], [CcdCaseTitlePipe, CaseReferencePipe, CcdCYAPageLabelFilterPipe, ReadFieldsFilterPipe, CcdPageFieldsPipe, IsCompoundPipe]);
|
|
24695
24520
|
i0__namespace.ɵɵsetComponentScope(CaseCreateComponent, [i1__namespace.NgIf, CaseEditComponent], []);
|
|
24696
24521
|
i0__namespace.ɵɵsetComponentScope(CaseProgressComponent, [i1__namespace.NgIf, CaseEditComponent], []);
|
|
24697
24522
|
|
|
@@ -25089,7 +24914,7 @@
|
|
|
25089
24914
|
i0__namespace.ɵɵadvance(3);
|
|
25090
24915
|
i0__namespace.ɵɵproperty("ngIf", !(ctx.autoHide && _r0.pages.length <= 1));
|
|
25091
24916
|
}
|
|
25092
|
-
}, directives: [i1__namespace$
|
|
24917
|
+
}, directives: [i1__namespace$6.PaginationControlsDirective, i1__namespace.NgIf, i1__namespace.NgForOf], pipes: [i1__namespace.DecimalPipe], styles: [".ngx-pagination[_ngcontent-%COMP%]{margin-left:0;margin-bottom:1rem;padding-top:25px;text-decoration:none;text-align:left;font-size:16px}.ngx-pagination[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%]:before{content:\" \";display:table}.ngx-pagination[_ngcontent-%COMP%]:after{clear:both}.ngx-pagination[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;margin-right:.0625rem;border-radius:0;display:inline-block}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:block;padding:.1875rem .625rem;border-radius:0;color:#005da6}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:#e6e6e6}.ngx-pagination[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{padding:.1875rem .625rem;background:#fff;color:#4c2c92;cursor:default;font-weight:900}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]{display:none}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]:hover{background:transparent}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{cursor:pointer}.ngx-pagination[_ngcontent-%COMP%] .pagination-previous.disabled[_ngcontent-%COMP%]:before, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before{margin-right:.5rem;border-width:3px 0 0 3px}.ngx-pagination[_ngcontent-%COMP%] .pagination-next.disabled[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-next[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous.disabled[_ngcontent-%COMP%]:before, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before{display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:transparent;transform:rotate(-45deg);content:\"\"}.ngx-pagination[_ngcontent-%COMP%] .pagination-next.disabled[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-next[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after{margin-left:.5rem;border-width:0 3px 3px 0}.ngx-pagination[_ngcontent-%COMP%] .show-for-sr[_ngcontent-%COMP%]{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.ngx-pagination[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:none}@media screen and (max-width:601px){.ngx-pagination.responsive[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:inline-block}.ngx-pagination.responsive[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:not(.small-screen):not(.pagination-previous):not(.pagination-next){display:none}}"] });
|
|
25093
24918
|
(function () {
|
|
25094
24919
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PaginationComponent, [{
|
|
25095
24920
|
type: i0.Component,
|
|
@@ -25496,7 +25321,7 @@
|
|
|
25496
25321
|
i0__namespace.ɵɵadvance(2);
|
|
25497
25322
|
i0__namespace.ɵɵproperty("ngIf", ctx.totalResultsCount > ctx.pageSize);
|
|
25498
25323
|
}
|
|
25499
|
-
}, directives: [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, i1__namespace.NgSwitchDefault, PaginationComponent], pipes: [i1__namespace$
|
|
25324
|
+
}, directives: [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, i1__namespace.NgSwitchDefault, PaginationComponent], pipes: [i1__namespace$6.PaginatePipe, i1__namespace.CurrencyPipe], styles: [""] });
|
|
25500
25325
|
(function () {
|
|
25501
25326
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseListComponent, [{
|
|
25502
25327
|
type: i0.Component,
|
|
@@ -25556,12 +25381,12 @@
|
|
|
25556
25381
|
PaginationModule.ɵmod = i0__namespace.ɵɵdefineNgModule({ type: PaginationModule });
|
|
25557
25382
|
PaginationModule.ɵinj = i0__namespace.ɵɵdefineInjector({ imports: [[
|
|
25558
25383
|
i1.CommonModule,
|
|
25559
|
-
i1$
|
|
25384
|
+
i1$6.NgxPaginationModule
|
|
25560
25385
|
]] });
|
|
25561
25386
|
(function () {
|
|
25562
25387
|
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(PaginationModule, { declarations: [PaginationComponent], imports: [i1.CommonModule,
|
|
25563
|
-
i1$
|
|
25564
|
-
i1$
|
|
25388
|
+
i1$6.NgxPaginationModule], exports: [PaginationComponent,
|
|
25389
|
+
i1$6.PaginatePipe] });
|
|
25565
25390
|
})();
|
|
25566
25391
|
(function () {
|
|
25567
25392
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PaginationModule, [{
|
|
@@ -25569,14 +25394,14 @@
|
|
|
25569
25394
|
args: [{
|
|
25570
25395
|
imports: [
|
|
25571
25396
|
i1.CommonModule,
|
|
25572
|
-
i1$
|
|
25397
|
+
i1$6.NgxPaginationModule
|
|
25573
25398
|
],
|
|
25574
25399
|
declarations: [
|
|
25575
25400
|
PaginationComponent
|
|
25576
25401
|
],
|
|
25577
25402
|
exports: [
|
|
25578
25403
|
PaginationComponent,
|
|
25579
|
-
i1$
|
|
25404
|
+
i1$6.PaginatePipe
|
|
25580
25405
|
],
|
|
25581
25406
|
}]
|
|
25582
25407
|
}], null, null);
|
|
@@ -25593,16 +25418,16 @@
|
|
|
25593
25418
|
BrowserService
|
|
25594
25419
|
], imports: [[
|
|
25595
25420
|
i1.CommonModule,
|
|
25596
|
-
|
|
25421
|
+
i2.FormsModule,
|
|
25597
25422
|
i1$1.RouterModule,
|
|
25598
|
-
i1$
|
|
25423
|
+
i1$6.NgxPaginationModule,
|
|
25599
25424
|
PaginationModule
|
|
25600
25425
|
]] });
|
|
25601
25426
|
(function () {
|
|
25602
25427
|
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(CaseListModule, { declarations: [CaseListComponent], imports: [i1.CommonModule,
|
|
25603
|
-
|
|
25428
|
+
i2.FormsModule,
|
|
25604
25429
|
i1$1.RouterModule,
|
|
25605
|
-
i1$
|
|
25430
|
+
i1$6.NgxPaginationModule,
|
|
25606
25431
|
PaginationModule], exports: [CaseListComponent] });
|
|
25607
25432
|
})();
|
|
25608
25433
|
(function () {
|
|
@@ -25611,9 +25436,9 @@
|
|
|
25611
25436
|
args: [{
|
|
25612
25437
|
imports: [
|
|
25613
25438
|
i1.CommonModule,
|
|
25614
|
-
|
|
25439
|
+
i2.FormsModule,
|
|
25615
25440
|
i1$1.RouterModule,
|
|
25616
|
-
i1$
|
|
25441
|
+
i1$6.NgxPaginationModule,
|
|
25617
25442
|
PaginationModule
|
|
25618
25443
|
],
|
|
25619
25444
|
declarations: [CaseListComponent],
|
|
@@ -25728,7 +25553,7 @@
|
|
|
25728
25553
|
this.windowService = windowService;
|
|
25729
25554
|
this.onApply = new i0.EventEmitter();
|
|
25730
25555
|
this.onReset = new i0.EventEmitter();
|
|
25731
|
-
this.formGroup = new
|
|
25556
|
+
this.formGroup = new i2.FormGroup({});
|
|
25732
25557
|
this.initialised = false;
|
|
25733
25558
|
}
|
|
25734
25559
|
WorkbasketFiltersComponent.prototype.ngOnInit = function () {
|
|
@@ -25823,7 +25648,7 @@
|
|
|
25823
25648
|
if (this.selected.caseType) {
|
|
25824
25649
|
this.selectedCaseTypeStates = this.sortStates(this.selected.caseType.states);
|
|
25825
25650
|
this.selected.caseState = null;
|
|
25826
|
-
this.formGroup = new
|
|
25651
|
+
this.formGroup = new i2.FormGroup({});
|
|
25827
25652
|
this.clearWorkbasketInputs();
|
|
25828
25653
|
if (!this.isApplyButtonDisabled()) {
|
|
25829
25654
|
this.workbasketInputFilterService.getWorkbasketInputs(this.selected.jurisdiction.id, this.selected.caseType.id).pipe(operators.take(1)).subscribe(function (workbasketInputs) {
|
|
@@ -26097,15 +25922,15 @@
|
|
|
26097
25922
|
WindowService,
|
|
26098
25923
|
], imports: [[
|
|
26099
25924
|
i1.CommonModule,
|
|
26100
|
-
|
|
26101
|
-
|
|
25925
|
+
i2.FormsModule,
|
|
25926
|
+
i2.ReactiveFormsModule,
|
|
26102
25927
|
PaletteModule,
|
|
26103
25928
|
ConditionalShowModule
|
|
26104
25929
|
]] });
|
|
26105
25930
|
(function () {
|
|
26106
25931
|
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(WorkbasketFiltersModule, { declarations: [WorkbasketFiltersComponent], imports: [i1.CommonModule,
|
|
26107
|
-
|
|
26108
|
-
|
|
25932
|
+
i2.FormsModule,
|
|
25933
|
+
i2.ReactiveFormsModule,
|
|
26109
25934
|
PaletteModule,
|
|
26110
25935
|
ConditionalShowModule], exports: [WorkbasketFiltersComponent] });
|
|
26111
25936
|
})();
|
|
@@ -26115,8 +25940,8 @@
|
|
|
26115
25940
|
args: [{
|
|
26116
25941
|
imports: [
|
|
26117
25942
|
i1.CommonModule,
|
|
26118
|
-
|
|
26119
|
-
|
|
25943
|
+
i2.FormsModule,
|
|
25944
|
+
i2.ReactiveFormsModule,
|
|
26120
25945
|
PaletteModule,
|
|
26121
25946
|
ConditionalShowModule
|
|
26122
25947
|
],
|
|
@@ -26136,7 +25961,7 @@
|
|
|
26136
25961
|
}]
|
|
26137
25962
|
}], null, null);
|
|
26138
25963
|
})();
|
|
26139
|
-
i0__namespace.ɵɵsetComponentScope(WorkbasketFiltersComponent, [
|
|
25964
|
+
i0__namespace.ɵɵsetComponentScope(WorkbasketFiltersComponent, [i2__namespace.ɵangular_packages_forms_forms_ba, i2__namespace.NgControlStatusGroup, i2__namespace.NgForm, i2__namespace.SelectControlValueAccessor, i2__namespace.NgControlStatus, i2__namespace.NgModel, i1__namespace.NgIf, i2__namespace.NgSelectOption, i2__namespace.ɵangular_packages_forms_forms_z, i1__namespace.NgForOf, ConditionalShowFormDirective, i2__namespace.FormGroupDirective, FieldWriteComponent], []);
|
|
26140
25965
|
|
|
26141
25966
|
var READ_ACCESS = 'read';
|
|
26142
25967
|
var CREATE_ACCESS = 'create';
|
|
@@ -26217,16 +26042,16 @@
|
|
|
26217
26042
|
WindowService
|
|
26218
26043
|
], imports: [[
|
|
26219
26044
|
i1.CommonModule,
|
|
26220
|
-
|
|
26221
|
-
|
|
26045
|
+
i2.FormsModule,
|
|
26046
|
+
i2.ReactiveFormsModule,
|
|
26222
26047
|
PaletteModule,
|
|
26223
26048
|
DefinitionsModule,
|
|
26224
26049
|
WorkbasketFiltersModule
|
|
26225
26050
|
]] });
|
|
26226
26051
|
(function () {
|
|
26227
26052
|
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(CaseListFiltersModule, { declarations: [CaseListFiltersComponent], imports: [i1.CommonModule,
|
|
26228
|
-
|
|
26229
|
-
|
|
26053
|
+
i2.FormsModule,
|
|
26054
|
+
i2.ReactiveFormsModule,
|
|
26230
26055
|
PaletteModule,
|
|
26231
26056
|
DefinitionsModule,
|
|
26232
26057
|
WorkbasketFiltersModule], exports: [CaseListFiltersComponent] });
|
|
@@ -26237,8 +26062,8 @@
|
|
|
26237
26062
|
args: [{
|
|
26238
26063
|
imports: [
|
|
26239
26064
|
i1.CommonModule,
|
|
26240
|
-
|
|
26241
|
-
|
|
26065
|
+
i2.FormsModule,
|
|
26066
|
+
i2.ReactiveFormsModule,
|
|
26242
26067
|
PaletteModule,
|
|
26243
26068
|
DefinitionsModule,
|
|
26244
26069
|
WorkbasketFiltersModule
|
|
@@ -26299,7 +26124,7 @@
|
|
|
26299
26124
|
CaseHistoryService.prototype.get = function (caseId, eventId) {
|
|
26300
26125
|
var _this = this;
|
|
26301
26126
|
var url = this.appConfig.getCaseHistoryUrl(caseId, eventId);
|
|
26302
|
-
var headers = new i1$
|
|
26127
|
+
var headers = new i1$2.HttpHeaders()
|
|
26303
26128
|
.set('experimental', 'true')
|
|
26304
26129
|
.set('Accept', CaseHistoryService.V2_MEDIATYPE_CASE_EVENT_VIEW)
|
|
26305
26130
|
.set('Content-Type', 'application/json');
|
|
@@ -26770,16 +26595,16 @@
|
|
|
26770
26595
|
CaseTimelineModule.ɵinj = i0__namespace.ɵɵdefineInjector({ imports: [[
|
|
26771
26596
|
i1.CommonModule,
|
|
26772
26597
|
ErrorsModule,
|
|
26773
|
-
|
|
26774
|
-
|
|
26598
|
+
i2.FormsModule,
|
|
26599
|
+
i2.ReactiveFormsModule,
|
|
26775
26600
|
CaseHistoryModule,
|
|
26776
26601
|
PaletteModule
|
|
26777
26602
|
]] });
|
|
26778
26603
|
(function () {
|
|
26779
26604
|
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(CaseTimelineModule, { declarations: [CaseTimelineComponent], imports: [i1.CommonModule,
|
|
26780
26605
|
ErrorsModule,
|
|
26781
|
-
|
|
26782
|
-
|
|
26606
|
+
i2.FormsModule,
|
|
26607
|
+
i2.ReactiveFormsModule,
|
|
26783
26608
|
CaseHistoryModule,
|
|
26784
26609
|
PaletteModule], exports: [CaseTimelineComponent] });
|
|
26785
26610
|
})();
|
|
@@ -26790,8 +26615,8 @@
|
|
|
26790
26615
|
imports: [
|
|
26791
26616
|
i1.CommonModule,
|
|
26792
26617
|
ErrorsModule,
|
|
26793
|
-
|
|
26794
|
-
|
|
26618
|
+
i2.FormsModule,
|
|
26619
|
+
i2.ReactiveFormsModule,
|
|
26795
26620
|
CaseHistoryModule,
|
|
26796
26621
|
PaletteModule
|
|
26797
26622
|
],
|
|
@@ -27474,7 +27299,7 @@
|
|
|
27474
27299
|
};
|
|
27475
27300
|
return DeleteOrCancelDialogComponent;
|
|
27476
27301
|
}());
|
|
27477
|
-
DeleteOrCancelDialogComponent.ɵfac = function DeleteOrCancelDialogComponent_Factory(t) { return new (t || DeleteOrCancelDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$
|
|
27302
|
+
DeleteOrCancelDialogComponent.ɵfac = function DeleteOrCancelDialogComponent_Factory(t) { return new (t || DeleteOrCancelDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialogRef)); };
|
|
27478
27303
|
DeleteOrCancelDialogComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: DeleteOrCancelDialogComponent, selectors: [["ccd-delete-or-cancel-dialog"]], decls: 15, vars: 0, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Delete", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Cancel", 1, "button", "button-secondary", 3, "click"]], template: function DeleteOrCancelDialogComponent_Template(rf, ctx) {
|
|
27479
27304
|
if (rf & 1) {
|
|
27480
27305
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
@@ -27515,7 +27340,7 @@
|
|
|
27515
27340
|
templateUrl: './delete-or-cancel-dialog.component.html',
|
|
27516
27341
|
styleUrls: ['../action-dialog.component.scss']
|
|
27517
27342
|
}]
|
|
27518
|
-
}], function () { return [{ type: i1__namespace$
|
|
27343
|
+
}], function () { return [{ type: i1__namespace$3.MatDialogRef }]; }, null);
|
|
27519
27344
|
})();
|
|
27520
27345
|
|
|
27521
27346
|
var DialogsModule = /** @class */ (function () {
|
|
@@ -27527,16 +27352,16 @@
|
|
|
27527
27352
|
DialogsModule.ɵmod = i0__namespace.ɵɵdefineNgModule({ type: DialogsModule });
|
|
27528
27353
|
DialogsModule.ɵinj = i0__namespace.ɵɵdefineInjector({ imports: [[
|
|
27529
27354
|
i1.CommonModule,
|
|
27530
|
-
|
|
27531
|
-
|
|
27355
|
+
i2.FormsModule,
|
|
27356
|
+
i2.ReactiveFormsModule,
|
|
27532
27357
|
]] });
|
|
27533
27358
|
(function () {
|
|
27534
27359
|
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(DialogsModule, { declarations: [DocumentDialogComponent,
|
|
27535
27360
|
DeleteOrCancelDialogComponent,
|
|
27536
27361
|
SaveOrDiscardDialogComponent,
|
|
27537
27362
|
RemoveDialogComponent], imports: [i1.CommonModule,
|
|
27538
|
-
|
|
27539
|
-
|
|
27363
|
+
i2.FormsModule,
|
|
27364
|
+
i2.ReactiveFormsModule], exports: [DocumentDialogComponent,
|
|
27540
27365
|
DeleteOrCancelDialogComponent,
|
|
27541
27366
|
SaveOrDiscardDialogComponent,
|
|
27542
27367
|
RemoveDialogComponent] });
|
|
@@ -27547,8 +27372,8 @@
|
|
|
27547
27372
|
args: [{
|
|
27548
27373
|
imports: [
|
|
27549
27374
|
i1.CommonModule,
|
|
27550
|
-
|
|
27551
|
-
|
|
27375
|
+
i2.FormsModule,
|
|
27376
|
+
i2.ReactiveFormsModule,
|
|
27552
27377
|
],
|
|
27553
27378
|
declarations: [
|
|
27554
27379
|
DocumentDialogComponent,
|
|
@@ -28144,7 +27969,7 @@
|
|
|
28144
27969
|
value = Object.assign(Object.assign({}, value), (_a = {}, _a[caseField.id] = caseField.value, _a));
|
|
28145
27970
|
});
|
|
28146
27971
|
}
|
|
28147
|
-
return new
|
|
27972
|
+
return new i2.FormGroup({ data: new i2.FormControl(value) });
|
|
28148
27973
|
};
|
|
28149
27974
|
CaseFullAccessViewComponent.prototype.resetErrors = function () {
|
|
28150
27975
|
this.error = null;
|
|
@@ -28158,7 +27983,7 @@
|
|
|
28158
27983
|
CaseFullAccessViewComponent.TRIGGER_TEXT_CONTINUE = 'Ignore Warning and Go';
|
|
28159
27984
|
CaseFullAccessViewComponent.UNICODE_SPACE = '%20';
|
|
28160
27985
|
CaseFullAccessViewComponent.EMPTY_SPACE = ' ';
|
|
28161
|
-
CaseFullAccessViewComponent.ɵfac = function CaseFullAccessViewComponent_Factory(t) { return new (t || CaseFullAccessViewComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.NgZone), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(NavigationNotifierService), i0__namespace.ɵɵdirectiveInject(OrderService), i0__namespace.ɵɵdirectiveInject(ActivityPollingService), i0__namespace.ɵɵdirectiveInject(i1__namespace$
|
|
27986
|
+
CaseFullAccessViewComponent.ɵfac = function CaseFullAccessViewComponent_Factory(t) { return new (t || CaseFullAccessViewComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.NgZone), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(NavigationNotifierService), i0__namespace.ɵɵdirectiveInject(OrderService), i0__namespace.ɵɵdirectiveInject(ActivityPollingService), i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog), i0__namespace.ɵɵdirectiveInject(AlertService), i0__namespace.ɵɵdirectiveInject(DraftService), i0__namespace.ɵɵdirectiveInject(ErrorNotifierService), i0__namespace.ɵɵdirectiveInject(ConvertHrefToRouterService), i0__namespace.ɵɵdirectiveInject(i1__namespace.Location), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(SessionStorageService)); };
|
|
28162
27987
|
CaseFullAccessViewComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFullAccessViewComponent, selectors: [["ccd-case-full-access-view"]], viewQuery: function CaseFullAccessViewComponent_Query(rf, ctx) {
|
|
28163
27988
|
if (rf & 1) {
|
|
28164
27989
|
i0__namespace.ɵɵviewQuery(_c0$b, 1);
|
|
@@ -28217,7 +28042,7 @@
|
|
|
28217
28042
|
templateUrl: './case-full-access-view.component.html',
|
|
28218
28043
|
styleUrls: ['./case-full-access-view.component.scss']
|
|
28219
28044
|
}]
|
|
28220
|
-
}], function () { return [{ type: i0__namespace.NgZone }, { type: i1__namespace$1.ActivatedRoute }, { type: i1__namespace$1.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1__namespace$
|
|
28045
|
+
}], function () { return [{ type: i0__namespace.NgZone }, { type: i1__namespace$1.ActivatedRoute }, { type: i1__namespace$1.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1__namespace$3.MatDialog }, { type: AlertService }, { type: DraftService }, { type: ErrorNotifierService }, { type: ConvertHrefToRouterService }, { type: i1__namespace.Location }, { type: i0__namespace.ChangeDetectorRef }, { type: SessionStorageService }]; }, { hasPrint: [{
|
|
28221
28046
|
type: i0.Input
|
|
28222
28047
|
}], hasEventSelector: [{
|
|
28223
28048
|
type: i0.Input
|
|
@@ -28585,13 +28410,13 @@
|
|
|
28585
28410
|
EventMessageModule.ɵmod = i0__namespace.ɵɵdefineNgModule({ type: EventMessageModule });
|
|
28586
28411
|
EventMessageModule.ɵinj = i0__namespace.ɵɵdefineInjector({ imports: [[
|
|
28587
28412
|
i1.CommonModule,
|
|
28588
|
-
|
|
28413
|
+
i2.ReactiveFormsModule,
|
|
28589
28414
|
i1$1.RouterModule,
|
|
28590
28415
|
ActivityModule
|
|
28591
28416
|
]] });
|
|
28592
28417
|
(function () {
|
|
28593
28418
|
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(EventMessageModule, { declarations: [ErrorMessageComponent], imports: [i1.CommonModule,
|
|
28594
|
-
|
|
28419
|
+
i2.ReactiveFormsModule,
|
|
28595
28420
|
i1$1.RouterModule,
|
|
28596
28421
|
ActivityModule], exports: [ErrorMessageComponent] });
|
|
28597
28422
|
})();
|
|
@@ -28601,7 +28426,7 @@
|
|
|
28601
28426
|
args: [{
|
|
28602
28427
|
imports: [
|
|
28603
28428
|
i1.CommonModule,
|
|
28604
|
-
|
|
28429
|
+
i2.ReactiveFormsModule,
|
|
28605
28430
|
i1$1.RouterModule,
|
|
28606
28431
|
ActivityModule
|
|
28607
28432
|
],
|
|
@@ -29367,7 +29192,7 @@
|
|
|
29367
29192
|
EventStartStateMachineService
|
|
29368
29193
|
], imports: [[
|
|
29369
29194
|
i1.CommonModule,
|
|
29370
|
-
|
|
29195
|
+
i2.ReactiveFormsModule,
|
|
29371
29196
|
i1$1.RouterModule
|
|
29372
29197
|
]] });
|
|
29373
29198
|
(function () {
|
|
@@ -29378,7 +29203,7 @@
|
|
|
29378
29203
|
TaskCancelledComponent,
|
|
29379
29204
|
TaskConflictComponent,
|
|
29380
29205
|
TaskUnassignedComponent], imports: [i1.CommonModule,
|
|
29381
|
-
|
|
29206
|
+
i2.ReactiveFormsModule,
|
|
29382
29207
|
i1$1.RouterModule], exports: [EventStartComponent,
|
|
29383
29208
|
TaskAssignedComponent,
|
|
29384
29209
|
TaskUnassignedComponent] });
|
|
@@ -29389,7 +29214,7 @@
|
|
|
29389
29214
|
args: [{
|
|
29390
29215
|
imports: [
|
|
29391
29216
|
i1.CommonModule,
|
|
29392
|
-
|
|
29217
|
+
i2.ReactiveFormsModule,
|
|
29393
29218
|
i1$1.RouterModule
|
|
29394
29219
|
],
|
|
29395
29220
|
declarations: [
|
|
@@ -29482,7 +29307,7 @@
|
|
|
29482
29307
|
if (changes.triggers && changes.triggers.currentValue) {
|
|
29483
29308
|
this.triggers = this.orderService.sort(this.triggers);
|
|
29484
29309
|
this.triggerForm = this.fb.group({
|
|
29485
|
-
trigger: [this.getDefault(),
|
|
29310
|
+
trigger: [this.getDefault(), i2.Validators.required]
|
|
29486
29311
|
});
|
|
29487
29312
|
}
|
|
29488
29313
|
};
|
|
@@ -29500,7 +29325,7 @@
|
|
|
29500
29325
|
};
|
|
29501
29326
|
return EventTriggerComponent;
|
|
29502
29327
|
}());
|
|
29503
|
-
EventTriggerComponent.ɵfac = function EventTriggerComponent_Factory(t) { return new (t || EventTriggerComponent)(i0__namespace.ɵɵdirectiveInject(
|
|
29328
|
+
EventTriggerComponent.ɵfac = function EventTriggerComponent_Factory(t) { return new (t || EventTriggerComponent)(i0__namespace.ɵɵdirectiveInject(i2__namespace.FormBuilder), i0__namespace.ɵɵdirectiveInject(OrderService)); };
|
|
29504
29329
|
EventTriggerComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: EventTriggerComponent, selectors: [["ccd-event-trigger"]], inputs: { triggers: "triggers", triggerText: "triggerText", isDisabled: "isDisabled" }, outputs: { onTriggerSubmit: "onTriggerSubmit", onTriggerChange: "onTriggerChange" }, features: [i0__namespace.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [["class", "event-trigger", 3, "formGroup", "ngSubmit", 4, "ngIf"], [1, "event-trigger", 3, "formGroup", "ngSubmit"], [1, "form-group"], ["for", "next-step", 1, "form-label"], ["id", "next-step", "formControlName", "trigger", 1, "form-control", "ccd-dropdown", 3, "ngClass", "change"], ["value", "", "data-default", "", 4, "ngIf"], [3, "ngValue", "title", 4, "ngFor", "ngForOf"], ["type", "submit", 1, "button", 3, "disabled"], ["value", "", "data-default", ""], [3, "ngValue", "title"]], template: function EventTriggerComponent_Template(rf, ctx) {
|
|
29505
29330
|
if (rf & 1) {
|
|
29506
29331
|
i0__namespace.ɵɵtemplate(0, EventTriggerComponent_form_0_Template, 9, 8, "form", 0);
|
|
@@ -29508,7 +29333,7 @@
|
|
|
29508
29333
|
if (rf & 2) {
|
|
29509
29334
|
i0__namespace.ɵɵproperty("ngIf", ctx.triggers && ctx.triggers.length);
|
|
29510
29335
|
}
|
|
29511
|
-
}, directives: [i1__namespace.NgIf,
|
|
29336
|
+
}, directives: [i1__namespace.NgIf, i2__namespace.ɵangular_packages_forms_forms_ba, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i2__namespace.SelectControlValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName, i1__namespace.NgClass, i1__namespace.NgForOf, i2__namespace.NgSelectOption, i2__namespace.ɵangular_packages_forms_forms_z], styles: [".event-trigger[_ngcontent-%COMP%]{width:auto;margin-top:40px;margin-bottom:20px}.event-trigger[_ngcontent-%COMP%] .form-group[_ngcontent-%COMP%]{margin-top:3px;margin-right:10px;margin-bottom:0;float:left;text-align:right;width:325px}.event-trigger[_ngcontent-%COMP%] .form-group[_ngcontent-%COMP%] .form-label[_ngcontent-%COMP%]{float:left;margin-top:5px}.event-trigger[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{width:250px}.event-trigger[_ngcontent-%COMP%] select.EventTrigger-empty[_ngcontent-%COMP%], .event-trigger[_ngcontent-%COMP%] select[_ngcontent-%COMP%] [data-default][_ngcontent-%COMP%]{color:#6f777b}"] });
|
|
29512
29337
|
(function () {
|
|
29513
29338
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(EventTriggerComponent, [{
|
|
29514
29339
|
type: i0.Component,
|
|
@@ -29517,7 +29342,7 @@
|
|
|
29517
29342
|
templateUrl: './event-trigger.component.html',
|
|
29518
29343
|
styleUrls: ['./event-trigger.component.scss']
|
|
29519
29344
|
}]
|
|
29520
|
-
}], function () { return [{ type:
|
|
29345
|
+
}], function () { return [{ type: i2__namespace.FormBuilder }, { type: OrderService }]; }, { triggers: [{
|
|
29521
29346
|
type: i0.Input
|
|
29522
29347
|
}], triggerText: [{
|
|
29523
29348
|
type: i0.Input
|
|
@@ -29539,12 +29364,12 @@
|
|
|
29539
29364
|
EventTriggerModule.ɵmod = i0__namespace.ɵɵdefineNgModule({ type: EventTriggerModule });
|
|
29540
29365
|
EventTriggerModule.ɵinj = i0__namespace.ɵɵdefineInjector({ imports: [[
|
|
29541
29366
|
i1.CommonModule,
|
|
29542
|
-
|
|
29367
|
+
i2.ReactiveFormsModule,
|
|
29543
29368
|
ActivityModule,
|
|
29544
29369
|
]] });
|
|
29545
29370
|
(function () {
|
|
29546
29371
|
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(EventTriggerModule, { declarations: [EventTriggerComponent], imports: [i1.CommonModule,
|
|
29547
|
-
|
|
29372
|
+
i2.ReactiveFormsModule,
|
|
29548
29373
|
ActivityModule], exports: [EventTriggerComponent] });
|
|
29549
29374
|
})();
|
|
29550
29375
|
(function () {
|
|
@@ -29553,7 +29378,7 @@
|
|
|
29553
29378
|
args: [{
|
|
29554
29379
|
imports: [
|
|
29555
29380
|
i1.CommonModule,
|
|
29556
|
-
|
|
29381
|
+
i2.ReactiveFormsModule,
|
|
29557
29382
|
ActivityModule,
|
|
29558
29383
|
],
|
|
29559
29384
|
declarations: [
|
|
@@ -29698,9 +29523,9 @@
|
|
|
29698
29523
|
this.hint = ChallengedAccessRequestPageText.HINT;
|
|
29699
29524
|
this.caseRefLabel = ChallengedAccessRequestPageText.CASE_REF;
|
|
29700
29525
|
this.formGroup = this.fb.group({
|
|
29701
|
-
radioSelected: new
|
|
29526
|
+
radioSelected: new i2.FormControl(null, i2.Validators.required)
|
|
29702
29527
|
});
|
|
29703
|
-
this.formGroup.addControl(this.caseReferenceControlName, new
|
|
29528
|
+
this.formGroup.addControl(this.caseReferenceControlName, new i2.FormControl('', {
|
|
29704
29529
|
validators: [function (control) {
|
|
29705
29530
|
if (_this.formGroup.get(_this.radioSelectedControlName).value === AccessReason$1.LINKED_TO_CURRENT_CASE && _this.inputEmpty(control)) {
|
|
29706
29531
|
return { invalid: true };
|
|
@@ -29709,7 +29534,7 @@
|
|
|
29709
29534
|
}],
|
|
29710
29535
|
updateOn: 'submit'
|
|
29711
29536
|
}));
|
|
29712
|
-
this.formGroup.addControl(this.otherReasonControlName, new
|
|
29537
|
+
this.formGroup.addControl(this.otherReasonControlName, new i2.FormControl('', {
|
|
29713
29538
|
validators: [function (control) {
|
|
29714
29539
|
if (_this.formGroup.get(_this.radioSelectedControlName).value === AccessReason$1.OTHER && _this.inputEmpty(control)) {
|
|
29715
29540
|
return { invalid: true };
|
|
@@ -29790,7 +29615,7 @@
|
|
|
29790
29615
|
return CaseChallengedAccessRequestComponent;
|
|
29791
29616
|
}());
|
|
29792
29617
|
CaseChallengedAccessRequestComponent.CANCEL_LINK_DESTINATION = '/work/my-work/list';
|
|
29793
|
-
CaseChallengedAccessRequestComponent.ɵfac = function CaseChallengedAccessRequestComponent_Factory(t) { return new (t || CaseChallengedAccessRequestComponent)(i0__namespace.ɵɵdirectiveInject(
|
|
29618
|
+
CaseChallengedAccessRequestComponent.ɵfac = function CaseChallengedAccessRequestComponent_Factory(t) { return new (t || CaseChallengedAccessRequestComponent)(i0__namespace.ɵɵdirectiveInject(i2__namespace.FormBuilder), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(CasesService), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(CaseNotifier)); };
|
|
29794
29619
|
CaseChallengedAccessRequestComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseChallengedAccessRequestComponent, selectors: [["ccd-case-challenged-access-request"]], decls: 40, vars: 22, consts: [[3, "error", 4, "ngIf"], ["type", "information"], [3, "formGroup", "submit"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "reason-hint", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--l"], [1, "govuk-fieldset__heading"], ["id", "reason-hint", 1, "govuk-hint"], ["id", "error-message", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", 1, "govuk-radios", "govuk-radios--conditional"], [1, "govuk-radios__item"], ["id", "reason-0", "name", "radioSelected", "type", "radio", "data-aria-controls", "conditional-reason-0", "formControlName", "radioSelected", 1, "govuk-radios__input", 3, "value", "checked", "change"], ["for", "reason-0", 1, "govuk-label", "govuk-radios__label"], ["id", "conditional-reason-0", "class", "govuk-radios__conditional", 4, "ngIf"], ["id", "reason-1", "name", "radioSelected", "type", "radio", "formControlName", "radioSelected", 1, "govuk-radios__input", 3, "value", "checked", "change"], ["for", "reason-1", 1, "govuk-label", "govuk-radios__label"], ["id", "reason-2", "name", "radioSelected", "type", "radio", "formControlName", "radioSelected", 1, "govuk-radios__input", 3, "value", "checked", "change"], ["for", "reason-2", 1, "govuk-label", "govuk-radios__label"], ["id", "reason-3", "name", "radioSelected", "type", "radio", "data-aria-controls", "conditional-reason-3", "formControlName", "radioSelected", 1, "govuk-radios__input", 3, "value", "checked", "change"], ["for", "reason-3", "id", "reason-3-label", 1, "govuk-label", "govuk-radios__label"], ["id", "conditional-reason-3", "class", "govuk-radios__conditional", 4, "ngIf"], [1, "govuk-button-group"], ["type", "submit", 1, "govuk-button", "govuk-!-margin-right-3"], [1, "govuk-grid-column-full", "govuk-!-padding-left-0"], ["href", "javascript:void(0)", 1, "govuk-body", 3, "click"], [3, "error"], ["id", "error-message", 1, "govuk-error-message"], ["id", "conditional-reason-0", 1, "govuk-radios__conditional"], [1, "govuk-form-group"], ["for", "case-reference", 1, "govuk-label"], ["id", "case-reference-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "case-reference", "name", "case-reference", "type", "text", "formControlName", "caseReference", 1, "govuk-input", "govuk-!-width-one-third", 3, "ngClass"], ["id", "case-reference-error-message", 1, "govuk-error-message"], ["id", "conditional-reason-3", 1, "govuk-radios__conditional"], ["id", "other-reason-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "other-reason", "name", "other-reason", "rows", "5", "aria-describedby", "reason-3-label", "formControlName", "otherReason", 1, "govuk-textarea", 3, "ngClass"], ["id", "other-reason-error-message", 1, "govuk-error-message"]], template: function CaseChallengedAccessRequestComponent_Template(rf, ctx) {
|
|
29795
29620
|
if (rf & 1) {
|
|
29796
29621
|
i0__namespace.ɵɵtemplate(0, CaseChallengedAccessRequestComponent_exui_error_message_0_Template, 1, 1, "exui-error-message", 0);
|
|
@@ -29906,7 +29731,7 @@
|
|
|
29906
29731
|
selector: 'ccd-case-challenged-access-request',
|
|
29907
29732
|
templateUrl: './case-challenged-access-request.component.html'
|
|
29908
29733
|
}]
|
|
29909
|
-
}], function () { return [{ type:
|
|
29734
|
+
}], function () { return [{ type: i2__namespace.FormBuilder }, { type: i1__namespace$1.Router }, { type: CasesService }, { type: i1__namespace$1.ActivatedRoute }, { type: CaseNotifier }]; }, null);
|
|
29910
29735
|
})();
|
|
29911
29736
|
|
|
29912
29737
|
var CaseChallengedAccessSuccessComponent = /** @class */ (function () {
|
|
@@ -30104,7 +29929,7 @@
|
|
|
30104
29929
|
this.hint = ReviewSpecificAccessRequestPageText.HINT;
|
|
30105
29930
|
this.caseRefLabel = ReviewSpecificAccessRequestPageText.CASE_REF;
|
|
30106
29931
|
this.formGroup = this.fb.group({
|
|
30107
|
-
radioSelected: new
|
|
29932
|
+
radioSelected: new i2.FormControl(null, i2.Validators.required),
|
|
30108
29933
|
});
|
|
30109
29934
|
};
|
|
30110
29935
|
CaseReviewSpecificAccessRequestComponent.prototype.ngOnDestroy = function () {
|
|
@@ -30156,7 +29981,7 @@
|
|
|
30156
29981
|
return CaseReviewSpecificAccessRequestComponent;
|
|
30157
29982
|
}());
|
|
30158
29983
|
CaseReviewSpecificAccessRequestComponent.CANCEL_LINK_DESTINATION = '/work/my-work/list';
|
|
30159
|
-
CaseReviewSpecificAccessRequestComponent.ɵfac = function CaseReviewSpecificAccessRequestComponent_Factory(t) { return new (t || CaseReviewSpecificAccessRequestComponent)(i0__namespace.ɵɵdirectiveInject(
|
|
29984
|
+
CaseReviewSpecificAccessRequestComponent.ɵfac = function CaseReviewSpecificAccessRequestComponent_Factory(t) { return new (t || CaseReviewSpecificAccessRequestComponent)(i0__namespace.ɵɵdirectiveInject(i2__namespace.FormBuilder), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(AbstractAppConfig)); };
|
|
30160
29985
|
CaseReviewSpecificAccessRequestComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseReviewSpecificAccessRequestComponent, selectors: [["ccd-case-review-specific-access-request"]], decls: 64, vars: 22, consts: [[3, "error", 4, "ngIf"], [3, "formGroup", "submit"], [1, "govuk-form-group"], ["aria-describedby", "reason-hint", 1, "govuk-fieldset"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--l"], [1, "govuk-fieldset__heading"], [1, "govuk-table"], [1, "govuk-table__body"], [1, "govuk-table__row"], ["scope", "row", 1, "govuk-table__header", "leftLabel"], [1, "govuk-table__cell"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--m"], ["id", "error-message", "class", "govuk-error-message", 4, "ngIf"], [1, "govuk-radios__item"], ["id", "reason-0", "name", "radioSelected", "type", "radio", "formControlName", "radioSelected", 1, "govuk-radios__input", 3, "value", "checked", "change"], ["for", "reason-0", 1, "govuk-label", "govuk-radios__label"], ["id", "reason-1", "name", "radioSelected", "type", "radio", "formControlName", "radioSelected", 1, "govuk-radios__input", 3, "value", "checked", "change"], ["for", "reason-1", 1, "govuk-label", "govuk-radios__label"], ["id", "reason-2", "name", "radioSelected", "type", "radio", "formControlName", "radioSelected", 1, "govuk-radios__input", 3, "value", "checked", "change"], ["for", "reason-2", 1, "govuk-label", "govuk-radios__label"], [1, "govuk-button-group"], ["type", "submit", 1, "govuk-button", "govuk-!-margin-right-3"], [1, "govuk-grid-column-full", "govuk-!-padding-left-0"], ["href", "javascript:void(0)", 1, "govuk-body", 3, "click"], [3, "error"], ["id", "error-message", 1, "govuk-error-message"]], template: function CaseReviewSpecificAccessRequestComponent_Template(rf, ctx) {
|
|
30161
29986
|
if (rf & 1) {
|
|
30162
29987
|
i0__namespace.ɵɵtemplate(0, CaseReviewSpecificAccessRequestComponent_exui_error_message_0_Template, 1, 1, "exui-error-message", 0);
|
|
@@ -30314,7 +30139,7 @@
|
|
|
30314
30139
|
templateUrl: './case-review-specific-access-request.component.html',
|
|
30315
30140
|
styleUrls: ['./case-review-specific-access-request.component.scss']
|
|
30316
30141
|
}]
|
|
30317
|
-
}], function () { return [{ type:
|
|
30142
|
+
}], function () { return [{ type: i2__namespace.FormBuilder }, { type: i1__namespace$1.ActivatedRoute }, { type: i1__namespace$1.Router }, { type: AbstractAppConfig }]; }, null);
|
|
30318
30143
|
})();
|
|
30319
30144
|
|
|
30320
30145
|
var SpecificAccessRequestPageText;
|
|
@@ -30369,9 +30194,9 @@
|
|
|
30369
30194
|
this.hint = SpecificAccessRequestPageText.HINT;
|
|
30370
30195
|
this.caseRefLabel = SpecificAccessRequestPageText.CASE_REF;
|
|
30371
30196
|
this.formGroup = this.fb.group({
|
|
30372
|
-
radioSelected: new
|
|
30197
|
+
radioSelected: new i2.FormControl(null, null),
|
|
30373
30198
|
});
|
|
30374
|
-
this.formGroup.addControl(this.specificReasonControlName, new
|
|
30199
|
+
this.formGroup.addControl(this.specificReasonControlName, new i2.FormControl('', {
|
|
30375
30200
|
validators: [
|
|
30376
30201
|
function (control) {
|
|
30377
30202
|
if (_this.inputEmpty(control)) {
|
|
@@ -30433,7 +30258,7 @@
|
|
|
30433
30258
|
return CaseSpecificAccessRequestComponent;
|
|
30434
30259
|
}());
|
|
30435
30260
|
CaseSpecificAccessRequestComponent.CANCEL_LINK_DESTINATION = '/work/my-work/list';
|
|
30436
|
-
CaseSpecificAccessRequestComponent.ɵfac = function CaseSpecificAccessRequestComponent_Factory(t) { return new (t || CaseSpecificAccessRequestComponent)(i0__namespace.ɵɵdirectiveInject(
|
|
30261
|
+
CaseSpecificAccessRequestComponent.ɵfac = function CaseSpecificAccessRequestComponent_Factory(t) { return new (t || CaseSpecificAccessRequestComponent)(i0__namespace.ɵɵdirectiveInject(i2__namespace.FormBuilder), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(CasesService), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(CaseNotifier)); };
|
|
30437
30262
|
CaseSpecificAccessRequestComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseSpecificAccessRequestComponent, selectors: [["ccd-case-specific-access-request"]], decls: 39, vars: 11, consts: [[3, "error", 4, "ngIf"], ["type", "information"], [3, "formGroup", "submit"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "reason-hint", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--l"], [1, "govuk-fieldset__heading"], ["data-module", "govuk-details", "role", "group", 1, "govuk-details"], ["role", "button", "aria-expanded", "false", 1, "govuk-details__summary"], [1, "govuk-details__summary-text"], ["aria-hidden", "true", 1, "govuk-details__text"], [1, "govuk-body"], [1, "govuk-list", "govuk-list--bullet"], ["id", "reason-hint", 1, "govuk-hint"], ["id", "conditional-reason-3"], [1, "govuk-form-group"], ["id", "specific-reason-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "specific-reason", "name", "specific-reason", "rows", "8", "formControlName", "specificReason", 1, "govuk-textarea", 3, "ngClass"], [1, "govuk-button-group"], ["type", "submit", 1, "govuk-button", "govuk-!-margin-right-3"], [1, "govuk-grid-column-full", "govuk-!-padding-left-0"], ["href", "javascript:void(0)", 1, "govuk-body", 3, "click"], [3, "error"], ["id", "specific-reason-error-message", 1, "govuk-error-message"]], template: function CaseSpecificAccessRequestComponent_Template(rf, ctx) {
|
|
30438
30263
|
if (rf & 1) {
|
|
30439
30264
|
i0__namespace.ɵɵtemplate(0, CaseSpecificAccessRequestComponent_exui_error_message_0_Template, 1, 1, "exui-error-message", 0);
|
|
@@ -30525,7 +30350,7 @@
|
|
|
30525
30350
|
selector: 'ccd-case-specific-access-request',
|
|
30526
30351
|
templateUrl: './case-specific-access-request.component.html',
|
|
30527
30352
|
}]
|
|
30528
|
-
}], function () { return [{ type:
|
|
30353
|
+
}], function () { return [{ type: i2__namespace.FormBuilder }, { type: i1__namespace$1.Router }, { type: CasesService }, { type: i1__namespace$1.ActivatedRoute }, { type: CaseNotifier }]; }, null);
|
|
30529
30354
|
})();
|
|
30530
30355
|
|
|
30531
30356
|
var CaseSpecificAccessSuccessComponent = /** @class */ (function () {
|
|
@@ -30623,7 +30448,7 @@
|
|
|
30623
30448
|
ConditionalShowModule,
|
|
30624
30449
|
CaseHistoryModule,
|
|
30625
30450
|
i9.MatTabsModule,
|
|
30626
|
-
|
|
30451
|
+
i2.ReactiveFormsModule,
|
|
30627
30452
|
BannersModule,
|
|
30628
30453
|
LabelSubstitutorModule,
|
|
30629
30454
|
LoadingSpinnerModule,
|
|
@@ -30654,7 +30479,7 @@
|
|
|
30654
30479
|
ConditionalShowModule,
|
|
30655
30480
|
CaseHistoryModule,
|
|
30656
30481
|
i9.MatTabsModule,
|
|
30657
|
-
|
|
30482
|
+
i2.ReactiveFormsModule,
|
|
30658
30483
|
BannersModule,
|
|
30659
30484
|
LabelSubstitutorModule,
|
|
30660
30485
|
LoadingSpinnerModule,
|
|
@@ -30678,7 +30503,7 @@
|
|
|
30678
30503
|
ConditionalShowModule,
|
|
30679
30504
|
CaseHistoryModule,
|
|
30680
30505
|
i9.MatTabsModule,
|
|
30681
|
-
|
|
30506
|
+
i2.ReactiveFormsModule,
|
|
30682
30507
|
BannersModule,
|
|
30683
30508
|
LabelSubstitutorModule,
|
|
30684
30509
|
LoadingSpinnerModule,
|
|
@@ -30726,9 +30551,9 @@
|
|
|
30726
30551
|
CaseFullAccessViewComponent], []);
|
|
30727
30552
|
i0__namespace.ɵɵsetComponentScope(CaseFullAccessViewComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, CallbackErrorsComponent, ActivityComponent, CaseHeaderComponent, i1__namespace$1.RouterLinkWithHref, EventTriggerComponent, NotificationBannerComponent, i9__namespace.MatTabGroup, i9__namespace.MatTab, i9__namespace.MatTabContent, LabelSubstitutorDirective, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, FieldReadComponent, i1__namespace$1.RouterOutlet], [ReadFieldsFilterPipe, CcdTabFieldsPipe, IsCompoundPipe]);
|
|
30728
30553
|
i0__namespace.ɵɵsetComponentScope(CaseViewComponent, [i1__namespace.NgIf, CaseViewerComponent], []);
|
|
30729
|
-
i0__namespace.ɵɵsetComponentScope(CaseChallengedAccessRequestComponent, [i1__namespace.NgIf, ErrorMessageComponent, AlertComponent,
|
|
30730
|
-
i0__namespace.ɵɵsetComponentScope(CaseSpecificAccessRequestComponent, [i1__namespace.NgIf, ErrorMessageComponent, AlertComponent,
|
|
30731
|
-
i0__namespace.ɵɵsetComponentScope(CaseReviewSpecificAccessRequestComponent, [i1__namespace.NgIf, ErrorMessageComponent,
|
|
30554
|
+
i0__namespace.ɵɵsetComponentScope(CaseChallengedAccessRequestComponent, [i1__namespace.NgIf, ErrorMessageComponent, AlertComponent, i2__namespace.ɵangular_packages_forms_forms_ba, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i2__namespace.RadioControlValueAccessor, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName], []);
|
|
30555
|
+
i0__namespace.ɵɵsetComponentScope(CaseSpecificAccessRequestComponent, [i1__namespace.NgIf, ErrorMessageComponent, AlertComponent, i2__namespace.ɵangular_packages_forms_forms_ba, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName], []);
|
|
30556
|
+
i0__namespace.ɵɵsetComponentScope(CaseReviewSpecificAccessRequestComponent, [i1__namespace.NgIf, ErrorMessageComponent, i2__namespace.ɵangular_packages_forms_forms_ba, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i2__namespace.RadioControlValueAccessor, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName], []);
|
|
30732
30557
|
|
|
30733
30558
|
var viewerRouting = [
|
|
30734
30559
|
{
|
|
@@ -30888,7 +30713,7 @@
|
|
|
30888
30713
|
this.sessionStorageService = sessionStorageService;
|
|
30889
30714
|
this.selectionSubmitted = new i0.EventEmitter();
|
|
30890
30715
|
this.selectionChanged = new i0.EventEmitter();
|
|
30891
|
-
this.formGroup = new
|
|
30716
|
+
this.formGroup = new i2.FormGroup({});
|
|
30892
30717
|
}
|
|
30893
30718
|
CreateCaseFiltersComponent.prototype.ngOnInit = function () {
|
|
30894
30719
|
var _this = this;
|
|
@@ -30946,11 +30771,11 @@
|
|
|
30946
30771
|
});
|
|
30947
30772
|
};
|
|
30948
30773
|
CreateCaseFiltersComponent.prototype.initControls = function () {
|
|
30949
|
-
this.filterJurisdictionControl = new
|
|
30774
|
+
this.filterJurisdictionControl = new i2.FormControl('');
|
|
30950
30775
|
this.formGroup.addControl('jurisdiction', this.filterJurisdictionControl);
|
|
30951
|
-
this.filterCaseTypeControl = new
|
|
30776
|
+
this.filterCaseTypeControl = new i2.FormControl({ value: '', disabled: true });
|
|
30952
30777
|
this.formGroup.addControl('caseType', this.filterCaseTypeControl);
|
|
30953
|
-
this.filterEventControl = new
|
|
30778
|
+
this.filterEventControl = new i2.FormControl({ value: '', disabled: true });
|
|
30954
30779
|
this.formGroup.addControl('event', this.filterEventControl);
|
|
30955
30780
|
};
|
|
30956
30781
|
CreateCaseFiltersComponent.prototype.emitChange = function () {
|
|
@@ -31086,7 +30911,7 @@
|
|
|
31086
30911
|
i0__namespace.ɵɵadvance(1);
|
|
31087
30912
|
i0__namespace.ɵɵtextInterpolate(ctx.startButtonText);
|
|
31088
30913
|
}
|
|
31089
|
-
}, directives: [
|
|
30914
|
+
}, directives: [i2__namespace.ɵangular_packages_forms_forms_ba, i2__namespace.NgControlStatusGroup, i2__namespace.NgForm, i2__namespace.SelectControlValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective, i2__namespace.NgSelectOption, i2__namespace.ɵangular_packages_forms_forms_z, i1__namespace.NgForOf], encapsulation: 2 });
|
|
31090
30915
|
(function () {
|
|
31091
30916
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CreateCaseFiltersComponent, [{
|
|
31092
30917
|
type: i0.Component,
|
|
@@ -31114,15 +30939,15 @@
|
|
|
31114
30939
|
CreateCaseFiltersModule.ɵmod = i0__namespace.ɵɵdefineNgModule({ type: CreateCaseFiltersModule });
|
|
31115
30940
|
CreateCaseFiltersModule.ɵinj = i0__namespace.ɵɵdefineInjector({ imports: [[
|
|
31116
30941
|
i1.CommonModule,
|
|
31117
|
-
|
|
31118
|
-
|
|
30942
|
+
i2.FormsModule,
|
|
30943
|
+
i2.ReactiveFormsModule,
|
|
31119
30944
|
DefinitionsModule,
|
|
31120
30945
|
ErrorsModule,
|
|
31121
30946
|
]] });
|
|
31122
30947
|
(function () {
|
|
31123
30948
|
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(CreateCaseFiltersModule, { declarations: [CreateCaseFiltersComponent], imports: [i1.CommonModule,
|
|
31124
|
-
|
|
31125
|
-
|
|
30949
|
+
i2.FormsModule,
|
|
30950
|
+
i2.ReactiveFormsModule,
|
|
31126
30951
|
DefinitionsModule,
|
|
31127
30952
|
ErrorsModule], exports: [CreateCaseFiltersComponent] });
|
|
31128
30953
|
})();
|
|
@@ -31132,8 +30957,8 @@
|
|
|
31132
30957
|
args: [{
|
|
31133
30958
|
imports: [
|
|
31134
30959
|
i1.CommonModule,
|
|
31135
|
-
|
|
31136
|
-
|
|
30960
|
+
i2.FormsModule,
|
|
30961
|
+
i2.ReactiveFormsModule,
|
|
31137
30962
|
DefinitionsModule,
|
|
31138
30963
|
ErrorsModule,
|
|
31139
30964
|
],
|
|
@@ -31240,7 +31065,7 @@
|
|
|
31240
31065
|
this.onApply = new i0.EventEmitter();
|
|
31241
31066
|
this.onReset = new i0.EventEmitter();
|
|
31242
31067
|
this.onJurisdiction = new i0.EventEmitter();
|
|
31243
|
-
this.formGroup = new
|
|
31068
|
+
this.formGroup = new i2.FormGroup({});
|
|
31244
31069
|
}
|
|
31245
31070
|
SearchFiltersComponent.prototype.ngOnInit = function () {
|
|
31246
31071
|
this.selected = {};
|
|
@@ -31317,7 +31142,7 @@
|
|
|
31317
31142
|
};
|
|
31318
31143
|
SearchFiltersComponent.prototype.onCaseTypeIdChange = function () {
|
|
31319
31144
|
var _this = this;
|
|
31320
|
-
this.formGroup = new
|
|
31145
|
+
this.formGroup = new i2.FormGroup({});
|
|
31321
31146
|
this.searchInputsReady = false;
|
|
31322
31147
|
this.searchInputs = [];
|
|
31323
31148
|
this.searchService.getSearchInputs(this.selected.jurisdiction.id, this.selected.caseType.id).pipe(operators.tap(function () { return _this.searchInputsReady = true; })).subscribe(function (searchInputs) {
|
|
@@ -31546,16 +31371,16 @@
|
|
|
31546
31371
|
WindowService
|
|
31547
31372
|
], imports: [[
|
|
31548
31373
|
i1.CommonModule,
|
|
31549
|
-
|
|
31550
|
-
|
|
31374
|
+
i2.FormsModule,
|
|
31375
|
+
i2.ReactiveFormsModule,
|
|
31551
31376
|
PaletteModule,
|
|
31552
31377
|
ConditionalShowModule
|
|
31553
31378
|
]] });
|
|
31554
31379
|
(function () {
|
|
31555
31380
|
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(SearchFiltersModule, { declarations: [SearchFiltersComponent,
|
|
31556
31381
|
SearchFiltersWrapperComponent], imports: [i1.CommonModule,
|
|
31557
|
-
|
|
31558
|
-
|
|
31382
|
+
i2.FormsModule,
|
|
31383
|
+
i2.ReactiveFormsModule,
|
|
31559
31384
|
PaletteModule,
|
|
31560
31385
|
ConditionalShowModule], exports: [SearchFiltersWrapperComponent] });
|
|
31561
31386
|
})();
|
|
@@ -31565,8 +31390,8 @@
|
|
|
31565
31390
|
args: [{
|
|
31566
31391
|
imports: [
|
|
31567
31392
|
i1.CommonModule,
|
|
31568
|
-
|
|
31569
|
-
|
|
31393
|
+
i2.FormsModule,
|
|
31394
|
+
i2.ReactiveFormsModule,
|
|
31570
31395
|
PaletteModule,
|
|
31571
31396
|
ConditionalShowModule
|
|
31572
31397
|
],
|
|
@@ -31587,7 +31412,7 @@
|
|
|
31587
31412
|
}]
|
|
31588
31413
|
}], null, null);
|
|
31589
31414
|
})();
|
|
31590
|
-
i0__namespace.ɵɵsetComponentScope(SearchFiltersComponent, [
|
|
31415
|
+
i0__namespace.ɵɵsetComponentScope(SearchFiltersComponent, [i2__namespace.ɵangular_packages_forms_forms_ba, i2__namespace.NgControlStatusGroup, i2__namespace.NgForm, i2__namespace.SelectControlValueAccessor, i2__namespace.NgControlStatus, i2__namespace.NgModel, i1__namespace.NgForOf, i2__namespace.NgSelectOption, i2__namespace.ɵangular_packages_forms_forms_z, i1__namespace.NgIf, ConditionalShowFormDirective, i2__namespace.FormGroupDirective, FieldWriteComponent], []);
|
|
31591
31416
|
i0__namespace.ɵɵsetComponentScope(SearchFiltersWrapperComponent, [i1__namespace.NgIf, SearchFiltersComponent], []);
|
|
31592
31417
|
|
|
31593
31418
|
function SearchResultComponent_table_0_div_4_Template(rf, ctx) {
|
|
@@ -32526,10 +32351,10 @@
|
|
|
32526
32351
|
BrowserService
|
|
32527
32352
|
], imports: [[
|
|
32528
32353
|
i1.CommonModule,
|
|
32529
|
-
i1$
|
|
32354
|
+
i1$6.NgxPaginationModule,
|
|
32530
32355
|
i1$1.RouterModule,
|
|
32531
|
-
|
|
32532
|
-
|
|
32356
|
+
i2.FormsModule,
|
|
32357
|
+
i2.ReactiveFormsModule,
|
|
32533
32358
|
LabelSubstitutorModule,
|
|
32534
32359
|
PipesModule,
|
|
32535
32360
|
ActivityModule,
|
|
@@ -32538,10 +32363,10 @@
|
|
|
32538
32363
|
]] });
|
|
32539
32364
|
(function () {
|
|
32540
32365
|
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(SearchResultModule, { declarations: [SearchResultComponent], imports: [i1.CommonModule,
|
|
32541
|
-
i1$
|
|
32366
|
+
i1$6.NgxPaginationModule,
|
|
32542
32367
|
i1$1.RouterModule,
|
|
32543
|
-
|
|
32544
|
-
|
|
32368
|
+
i2.FormsModule,
|
|
32369
|
+
i2.ReactiveFormsModule,
|
|
32545
32370
|
LabelSubstitutorModule,
|
|
32546
32371
|
PipesModule,
|
|
32547
32372
|
ActivityModule,
|
|
@@ -32554,10 +32379,10 @@
|
|
|
32554
32379
|
args: [{
|
|
32555
32380
|
imports: [
|
|
32556
32381
|
i1.CommonModule,
|
|
32557
|
-
i1$
|
|
32382
|
+
i1$6.NgxPaginationModule,
|
|
32558
32383
|
i1$1.RouterModule,
|
|
32559
|
-
|
|
32560
|
-
|
|
32384
|
+
i2.FormsModule,
|
|
32385
|
+
i2.ReactiveFormsModule,
|
|
32561
32386
|
LabelSubstitutorModule,
|
|
32562
32387
|
PipesModule,
|
|
32563
32388
|
ActivityModule,
|
|
@@ -32577,7 +32402,7 @@
|
|
|
32577
32402
|
}]
|
|
32578
32403
|
}], null, null);
|
|
32579
32404
|
})();
|
|
32580
|
-
i0__namespace.ɵɵsetComponentScope(SearchResultComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, FieldReadComponent, LabelSubstitutorDirective, ActivityComponent, PaginationComponent], [i1__namespace.DecimalPipe, i1__namespace$
|
|
32405
|
+
i0__namespace.ɵɵsetComponentScope(SearchResultComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, FieldReadComponent, LabelSubstitutorDirective, ActivityComponent, PaginationComponent], [i1__namespace.DecimalPipe, i1__namespace$6.PaginatePipe, CaseReferencePipe, SortSearchResultPipe]);
|
|
32581
32406
|
|
|
32582
32407
|
var ComplexFieldOverride = /** @class */ (function () {
|
|
32583
32408
|
function ComplexFieldOverride() {
|
|
@@ -32963,7 +32788,6 @@
|
|
|
32963
32788
|
exports.DynamicListPipe = DynamicListPipe;
|
|
32964
32789
|
exports.DynamicRadioListPipe = DynamicRadioListPipe;
|
|
32965
32790
|
exports.Embedded = Embedded;
|
|
32966
|
-
exports.EnumDisplayDescriptionPipe = EnumDisplayDescriptionPipe;
|
|
32967
32791
|
exports.ErrorMessageComponent = ErrorMessageComponent;
|
|
32968
32792
|
exports.ErrorNotifierService = ErrorNotifierService;
|
|
32969
32793
|
exports.EventCaseField = EventCaseField;
|