@hmcts/ccd-case-ui-toolkit 6.10.7-case-flags-multiple-case-flags-tabs-support-v2 → 6.10.7-case-flags-create-change-links-v2
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 +743 -549
- 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 +41 -31
- package/esm2015/lib/shared/components/case-editor/case-editor.module.js +6 -3
- package/esm2015/lib/shared/components/case-editor/services/case-flag-state.service.js +18 -0
- package/esm2015/lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.js +4 -2
- package/esm2015/lib/shared/components/palette/case-flag/components/case-flag-summary-list/case-flag-summary-list.component.js +69 -19
- package/esm2015/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter-control-names.enum.js +6 -0
- 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 +9 -5
- package/esm2015/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.js +119 -92
- package/esm2015/lib/shared/components/palette/case-flag/domain/case-flag-state.model.js +1 -1
- package/esm2015/lib/shared/components/palette/case-flag/read-case-flag-field.component.js +30 -13
- package/esm2015/lib/shared/components/palette/case-flag/write-case-flag-field.component.js +56 -68
- package/esm2015/lib/shared/domain/case-flag/flag-type.model.js +16 -1
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +468 -319
- 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/case-editor/services/case-flag-state.service.d.ts +10 -0
- package/lib/shared/components/case-editor/services/case-flag-state.service.d.ts.map +1 -0
- 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 +5 -3
- 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-control-names.enum.d.ts +5 -0
- package/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter-control-names.enum.d.ts.map +1 -0
- 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 +4 -3
- 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/domain/case-flag-state.model.d.ts +1 -10
- package/lib/shared/components/palette/case-flag/domain/case-flag-state.model.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/read-case-flag-field.component.d.ts +7 -2
- 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 +14 -22
- 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 +1 -0
- package/lib/shared/domain/case-flag/flag-type.model.d.ts.map +1 -1
- package/package.json +1 -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, i1$2, polling, rxjs, i1$3, operators, classTransformer, _, moment, util, fsm, i1$4, i4, i1$5, i7, i5, i6, i5$1, i6$1, i3$1, i3, i11, i2, i1$6, momentAdapter, i6$2, i1$7, 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 i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$2);
|
|
31
31
|
var polling__default = /*#__PURE__*/_interopDefaultLegacy(polling);
|
|
32
|
-
var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$
|
|
32
|
+
var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$3);
|
|
33
33
|
var ___namespace = /*#__PURE__*/_interopNamespace(_);
|
|
34
34
|
var moment__namespace = /*#__PURE__*/_interopNamespace(moment);
|
|
35
|
-
var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$3);
|
|
36
|
-
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
37
35
|
var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$4);
|
|
36
|
+
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
37
|
+
var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$5);
|
|
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
|
|
47
|
-
var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$5);
|
|
48
|
-
var i6__namespace$2 = /*#__PURE__*/_interopNamespace(i6$2);
|
|
46
|
+
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
49
47
|
var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1$6);
|
|
48
|
+
var i6__namespace$2 = /*#__PURE__*/_interopNamespace(i6$2);
|
|
49
|
+
var i1__namespace$7 = /*#__PURE__*/_interopNamespace(i1$7);
|
|
50
50
|
var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
|
|
51
51
|
|
|
52
52
|
function FooterComponent_div_2_Template(rf, ctx) {
|
|
@@ -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: i1$2.NG_VALUE_ACCESSOR,
|
|
1044
1044
|
useExisting: i0.forwardRef(function () { return DateInputComponent; }),
|
|
1045
1045
|
multi: true
|
|
1046
1046
|
},
|
|
1047
1047
|
{
|
|
1048
|
-
provide:
|
|
1048
|
+
provide: i1$2.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: i1$2.NG_VALUE_ACCESSOR,
|
|
1115
1115
|
useExisting: i0.forwardRef(function () { return DateInputComponent; }),
|
|
1116
1116
|
multi: true
|
|
1117
1117
|
},
|
|
1118
1118
|
{
|
|
1119
|
-
provide:
|
|
1119
|
+
provide: i1$2.NG_VALIDATORS,
|
|
1120
1120
|
useExisting: i0.forwardRef(function () { return DateInputComponent; }),
|
|
1121
1121
|
multi: true
|
|
1122
1122
|
}
|
|
@@ -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$3.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$3.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$3.HttpHeaders().set('Content-Type', 'application/json').set('Authorization', userDetails.token);
|
|
2084
2084
|
var options = {
|
|
2085
2085
|
headers: headers,
|
|
2086
2086
|
withCredentials: true,
|
|
@@ -4299,13 +4299,13 @@
|
|
|
4299
4299
|
return this.mergeFields(caseFields, formFields, FieldsUtils.LABEL_MERGE_FUNCTION);
|
|
4300
4300
|
};
|
|
4301
4301
|
FieldsUtils.prototype.controlIterator = function (aControl, formArrayFn, formGroupFn, controlFn) {
|
|
4302
|
-
if (aControl instanceof
|
|
4302
|
+
if (aControl instanceof i1$2.FormArray) { // We're in a collection
|
|
4303
4303
|
formArrayFn(aControl);
|
|
4304
4304
|
}
|
|
4305
|
-
else if (aControl instanceof
|
|
4305
|
+
else if (aControl instanceof i1$2.FormGroup) { // We're in a complex type.
|
|
4306
4306
|
formGroupFn(aControl);
|
|
4307
4307
|
}
|
|
4308
|
-
else if (aControl instanceof
|
|
4308
|
+
else if (aControl instanceof i1$2.FormControl) { // FormControl
|
|
4309
4309
|
controlFn(aControl);
|
|
4310
4310
|
}
|
|
4311
4311
|
};
|
|
@@ -4751,19 +4751,19 @@
|
|
|
4751
4751
|
FormValidatorsService.addValidators = function (caseField, control) {
|
|
4752
4752
|
if (caseField.display_context === Constants.MANDATORY &&
|
|
4753
4753
|
FormValidatorsService.CUSTOM_VALIDATED_TYPES.indexOf(caseField.field_type.type) === -1) {
|
|
4754
|
-
var validators = [
|
|
4754
|
+
var validators = [i1$2.Validators.required];
|
|
4755
4755
|
if (caseField.field_type.type === 'Text') {
|
|
4756
4756
|
if (caseField.field_type.regular_expression) {
|
|
4757
|
-
validators.push(
|
|
4757
|
+
validators.push(i1$2.Validators.pattern(caseField.field_type.regular_expression));
|
|
4758
4758
|
}
|
|
4759
4759
|
else {
|
|
4760
4760
|
validators.push(this.emptyValidator());
|
|
4761
4761
|
}
|
|
4762
4762
|
if (caseField.field_type.min && (typeof caseField.field_type.min === 'number')) {
|
|
4763
|
-
validators.push(
|
|
4763
|
+
validators.push(i1$2.Validators.minLength(caseField.field_type.min));
|
|
4764
4764
|
}
|
|
4765
4765
|
if (caseField.field_type.max && (typeof caseField.field_type.max === 'number')) {
|
|
4766
|
-
validators.push(
|
|
4766
|
+
validators.push(i1$2.Validators.maxLength(caseField.field_type.max));
|
|
4767
4767
|
}
|
|
4768
4768
|
}
|
|
4769
4769
|
if (control.validator) {
|
|
@@ -4833,7 +4833,7 @@
|
|
|
4833
4833
|
// No validators by default, override this method to add validators to the form control
|
|
4834
4834
|
};
|
|
4835
4835
|
AbstractFormFieldComponent.prototype.addControlToParent = function (control, parent, replace) {
|
|
4836
|
-
if (parent instanceof
|
|
4836
|
+
if (parent instanceof i1$2.FormArray) {
|
|
4837
4837
|
return this.addControlToFormArray(control, parent, replace);
|
|
4838
4838
|
}
|
|
4839
4839
|
return this.addControlToFormGroup(control, parent, replace);
|
|
@@ -4949,7 +4949,7 @@
|
|
|
4949
4949
|
this.handleFormGroup = function (formGroup) {
|
|
4950
4950
|
_this.evaluateControl(formGroup);
|
|
4951
4951
|
var groupControl = formGroup;
|
|
4952
|
-
if (formGroup.get('value') && formGroup.get('value') instanceof
|
|
4952
|
+
if (formGroup.get('value') && formGroup.get('value') instanceof i1$2.FormGroup) { // Complex Field
|
|
4953
4953
|
groupControl = formGroup.get('value');
|
|
4954
4954
|
}
|
|
4955
4955
|
else if (formGroup.controls) {
|
|
@@ -4971,7 +4971,7 @@
|
|
|
4971
4971
|
}
|
|
4972
4972
|
ConditionalShowFormDirective.prototype.ngOnInit = function () {
|
|
4973
4973
|
if (!this.formGroup) {
|
|
4974
|
-
this.formGroup = new
|
|
4974
|
+
this.formGroup = new i1$2.FormGroup({});
|
|
4975
4975
|
}
|
|
4976
4976
|
};
|
|
4977
4977
|
/**
|
|
@@ -6401,7 +6401,7 @@
|
|
|
6401
6401
|
LabelSubstitutorDirective.prototype.ngOnInit = function () {
|
|
6402
6402
|
this.initialLabel = this.caseField.label;
|
|
6403
6403
|
this.initialHintText = this.caseField.hint_text;
|
|
6404
|
-
this.formGroup = this.formGroup || new
|
|
6404
|
+
this.formGroup = this.formGroup || new i1$2.FormGroup({});
|
|
6405
6405
|
var fields = this.getReadOnlyAndFormFields();
|
|
6406
6406
|
if (this.shouldSubstitute('label')) {
|
|
6407
6407
|
this.caseField.label = this.resolvePlaceholders(fields, this.caseField.label);
|
|
@@ -6950,7 +6950,7 @@
|
|
|
6950
6950
|
// Do not set any headers, such as "Accept" or "Content-Type", with null values; this is not permitted with the
|
|
6951
6951
|
// Angular HttpClient in @angular/common/http. Just create and pass a new HttpHeaders object. Angular will add the
|
|
6952
6952
|
// correct headers and values automatically
|
|
6953
|
-
var headers = new i1$
|
|
6953
|
+
var headers = new i1$3.HttpHeaders();
|
|
6954
6954
|
return this.http
|
|
6955
6955
|
.post(url, formData, { headers: headers, observe: 'body' })
|
|
6956
6956
|
.pipe(operators.delay(DocumentManagementService.RESPONSE_DELAY));
|
|
@@ -7056,7 +7056,7 @@
|
|
|
7056
7056
|
DraftService.prototype.createDraft = function (ctid, eventData) {
|
|
7057
7057
|
var _this = this;
|
|
7058
7058
|
var saveDraftEndpoint = this.appConfig.getCreateOrUpdateDraftsUrl(ctid);
|
|
7059
|
-
var headers = new i1$
|
|
7059
|
+
var headers = new i1$3.HttpHeaders()
|
|
7060
7060
|
.set('experimental', 'true')
|
|
7061
7061
|
.set('Accept', DraftService.V2_MEDIATYPE_DRAFT_CREATE)
|
|
7062
7062
|
.set('Content-Type', 'application/json');
|
|
@@ -7070,7 +7070,7 @@
|
|
|
7070
7070
|
DraftService.prototype.updateDraft = function (ctid, draftId, eventData) {
|
|
7071
7071
|
var _this = this;
|
|
7072
7072
|
var saveDraftEndpoint = this.appConfig.getCreateOrUpdateDraftsUrl(ctid) + draftId;
|
|
7073
|
-
var headers = new i1$
|
|
7073
|
+
var headers = new i1$3.HttpHeaders()
|
|
7074
7074
|
.set('experimental', 'true')
|
|
7075
7075
|
.set('Accept', DraftService.V2_MEDIATYPE_DRAFT_UPDATE)
|
|
7076
7076
|
.set('Content-Type', 'application/json');
|
|
@@ -7084,7 +7084,7 @@
|
|
|
7084
7084
|
DraftService.prototype.getDraft = function (draftId) {
|
|
7085
7085
|
var _this = this;
|
|
7086
7086
|
var url = this.appConfig.getViewOrDeleteDraftsUrl(draftId.slice(DRAFT_PREFIX.length));
|
|
7087
|
-
var headers = new i1$
|
|
7087
|
+
var headers = new i1$3.HttpHeaders()
|
|
7088
7088
|
.set('experimental', 'true')
|
|
7089
7089
|
.set('Accept', DraftService.V2_MEDIATYPE_DRAFT_READ)
|
|
7090
7090
|
.set('Content-Type', 'application/json');
|
|
@@ -7098,7 +7098,7 @@
|
|
|
7098
7098
|
DraftService.prototype.deleteDraft = function (draftId) {
|
|
7099
7099
|
var _this = this;
|
|
7100
7100
|
var url = this.appConfig.getViewOrDeleteDraftsUrl(draftId.slice(DRAFT_PREFIX.length));
|
|
7101
|
-
var headers = new i1$
|
|
7101
|
+
var headers = new i1$3.HttpHeaders()
|
|
7102
7102
|
.set('experimental', 'true')
|
|
7103
7103
|
.set('Accept', DraftService.V2_MEDIATYPE_DRAFT_DELETE)
|
|
7104
7104
|
.set('Content-Type', 'application/json');
|
|
@@ -7201,7 +7201,7 @@
|
|
|
7201
7201
|
if (inArray && group.controls['value']) {
|
|
7202
7202
|
group = group.controls['value'];
|
|
7203
7203
|
}
|
|
7204
|
-
if (group && group.constructor &&
|
|
7204
|
+
if (group && group.constructor && i1$2.FormArray.name === group.constructor.name) {
|
|
7205
7205
|
inArray = true;
|
|
7206
7206
|
}
|
|
7207
7207
|
else {
|
|
@@ -7257,11 +7257,11 @@
|
|
|
7257
7257
|
}
|
|
7258
7258
|
BannersService.prototype.getBanners = function (jurisdictionReferences) {
|
|
7259
7259
|
var url = this.appConfig.getBannersUrl();
|
|
7260
|
-
var headers = new i1$
|
|
7260
|
+
var headers = new i1$3.HttpHeaders()
|
|
7261
7261
|
.set('experimental', 'true')
|
|
7262
7262
|
.set('Accept', BannersService.V2_MEDIATYPE_BANNERS)
|
|
7263
7263
|
.set('Content-Type', 'application/json');
|
|
7264
|
-
var params = new i1$
|
|
7264
|
+
var params = new i1$3.HttpParams();
|
|
7265
7265
|
jurisdictionReferences.forEach(function (reference) { return params = params.append('ids', reference); });
|
|
7266
7266
|
return this.httpService
|
|
7267
7267
|
.get(url, { params: params, headers: headers, observe: 'body' })
|
|
@@ -7353,7 +7353,7 @@
|
|
|
7353
7353
|
}
|
|
7354
7354
|
ProfileService.prototype.get = function () {
|
|
7355
7355
|
var url = this.appConfig.getCaseDataUrl() + ProfileService.URL;
|
|
7356
|
-
var headers = new i1$
|
|
7356
|
+
var headers = new i1$3.HttpHeaders()
|
|
7357
7357
|
.set('experimental', 'true')
|
|
7358
7358
|
.set('Accept', ProfileService.V2_MEDIATYPE_USER_PROFILE)
|
|
7359
7359
|
.set('Content-Type', 'application/json');
|
|
@@ -7413,7 +7413,7 @@
|
|
|
7413
7413
|
var e_1, _a, e_2, _b;
|
|
7414
7414
|
// TODO: This should probably be the now built-in URLSearchParams but it
|
|
7415
7415
|
// requires a bigger refactor and there are bigger fish to fry right now.
|
|
7416
|
-
var params = new i1$
|
|
7416
|
+
var params = new i1$3.HttpParams();
|
|
7417
7417
|
if (view) {
|
|
7418
7418
|
params = params.set('view', view);
|
|
7419
7419
|
}
|
|
@@ -7563,7 +7563,7 @@
|
|
|
7563
7563
|
SearchService.prototype.getSearchInputs = function (jurisdictionId, caseTypeId) {
|
|
7564
7564
|
var _this = this;
|
|
7565
7565
|
var url = this.getSearchInputUrl(caseTypeId);
|
|
7566
|
-
var headers = new i1$
|
|
7566
|
+
var headers = new i1$3.HttpHeaders()
|
|
7567
7567
|
.set('experimental', 'true')
|
|
7568
7568
|
.set('Accept', SearchService.V2_MEDIATYPE_SEARCH_INPUTS)
|
|
7569
7569
|
.set('Content-Type', 'application/json');
|
|
@@ -7679,7 +7679,7 @@
|
|
|
7679
7679
|
WorkbasketInputFilterService.prototype.getWorkbasketInputs = function (jurisdictionId, caseTypeId) {
|
|
7680
7680
|
var _this = this;
|
|
7681
7681
|
var url = this.getWorkbasketInputUrl(caseTypeId);
|
|
7682
|
-
var headers = new i1$
|
|
7682
|
+
var headers = new i1$3.HttpHeaders()
|
|
7683
7683
|
.set('experimental', 'true')
|
|
7684
7684
|
.set('Accept', WorkbasketInputFilterService.V2_MEDIATYPE_WORKBASKET_INPUT_DETAILS)
|
|
7685
7685
|
.set('Content-Type', 'application/json');
|
|
@@ -8431,7 +8431,7 @@
|
|
|
8431
8431
|
CasesService.prototype.getCaseViewV2 = function (caseId) {
|
|
8432
8432
|
var _this = this;
|
|
8433
8433
|
var url = this.appConfig.getCaseDataUrl() + "/internal/cases/" + caseId;
|
|
8434
|
-
var headers = new i1$
|
|
8434
|
+
var headers = new i1$3.HttpHeaders()
|
|
8435
8435
|
.set('experimental', 'true')
|
|
8436
8436
|
.set('Accept', CasesService.V2_MEDIATYPE_CASE_VIEW)
|
|
8437
8437
|
.set('Content-Type', 'application/json');
|
|
@@ -8447,7 +8447,7 @@
|
|
|
8447
8447
|
var _this = this;
|
|
8448
8448
|
ignoreWarning = undefined !== ignoreWarning ? ignoreWarning : 'false';
|
|
8449
8449
|
var url = this.buildEventTriggerUrl(caseTypeId, eventTriggerId, caseId, ignoreWarning);
|
|
8450
|
-
var headers = new i1$
|
|
8450
|
+
var headers = new i1$3.HttpHeaders();
|
|
8451
8451
|
headers = headers.set('experimental', 'true');
|
|
8452
8452
|
headers = headers.set('Content-Type', 'application/json');
|
|
8453
8453
|
if (Draft.isDraft(caseId)) {
|
|
@@ -8472,7 +8472,7 @@
|
|
|
8472
8472
|
var _this = this;
|
|
8473
8473
|
var caseId = caseDetails.case_id;
|
|
8474
8474
|
var url = this.appConfig.getCaseDataUrl() + ("/cases/" + caseId + "/events");
|
|
8475
|
-
var headers = new i1$
|
|
8475
|
+
var headers = new i1$3.HttpHeaders()
|
|
8476
8476
|
.set('experimental', 'true')
|
|
8477
8477
|
.set('Accept', CasesService.V2_MEDIATYPE_CREATE_EVENT)
|
|
8478
8478
|
.set('Content-Type', 'application/json');
|
|
@@ -8488,7 +8488,7 @@
|
|
|
8488
8488
|
var pageIdString = pageId ? '?pageId=' + pageId : '';
|
|
8489
8489
|
var url = this.appConfig.getCaseDataUrl()
|
|
8490
8490
|
+ ("/case-types/" + ctid + "/validate" + pageIdString);
|
|
8491
|
-
var headers = new i1$
|
|
8491
|
+
var headers = new i1$3.HttpHeaders()
|
|
8492
8492
|
.set('experimental', 'true')
|
|
8493
8493
|
.set('Accept', CasesService.V2_MEDIATYPE_CASE_DATA_VALIDATE)
|
|
8494
8494
|
.set('Content-Type', 'application/json');
|
|
@@ -8507,7 +8507,7 @@
|
|
|
8507
8507
|
}
|
|
8508
8508
|
var url = this.appConfig.getCaseDataUrl()
|
|
8509
8509
|
+ ("/case-types/" + ctid + "/cases?ignore-warning=" + ignoreWarning);
|
|
8510
|
-
var headers = new i1$
|
|
8510
|
+
var headers = new i1$3.HttpHeaders()
|
|
8511
8511
|
.set('experimental', 'true')
|
|
8512
8512
|
.set('Accept', CasesService.V2_MEDIATYPE_CREATE_CASE)
|
|
8513
8513
|
.set('Content-Type', 'application/json');
|
|
@@ -8523,7 +8523,7 @@
|
|
|
8523
8523
|
var url = this.appConfig.getCaseDataUrl()
|
|
8524
8524
|
+ ("/cases/" + caseId)
|
|
8525
8525
|
+ "/documents";
|
|
8526
|
-
var headers = new i1$
|
|
8526
|
+
var headers = new i1$3.HttpHeaders()
|
|
8527
8527
|
.set('experimental', 'true')
|
|
8528
8528
|
.set('Accept', CasesService.V2_MEDIATYPE_CASE_DOCUMENTS)
|
|
8529
8529
|
.set('Content-Type', 'application/json');
|
|
@@ -9308,9 +9308,9 @@
|
|
|
9308
9308
|
this.sessionStorageService.setItem('eventUrl', this.router.url);
|
|
9309
9309
|
}
|
|
9310
9310
|
this.form = this.fb.group({
|
|
9311
|
-
data: new
|
|
9311
|
+
data: new i1$2.FormGroup({}),
|
|
9312
9312
|
event: this.fb.group({
|
|
9313
|
-
id: [this.eventTrigger.id,
|
|
9313
|
+
id: [this.eventTrigger.id, i1$2.Validators.required],
|
|
9314
9314
|
summary: [''],
|
|
9315
9315
|
description: ['']
|
|
9316
9316
|
})
|
|
@@ -9376,7 +9376,7 @@
|
|
|
9376
9376
|
}());
|
|
9377
9377
|
CaseEditComponent.ORIGIN_QUERY_PARAM = 'origin';
|
|
9378
9378
|
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(
|
|
9379
|
+
CaseEditComponent.ɵfac = function CaseEditComponent_Factory(t) { return new (t || CaseEditComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$3.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
9380
|
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
9381
|
if (rf & 1) {
|
|
9382
9382
|
i0__namespace.ɵɵelement(0, "router-outlet");
|
|
@@ -9391,7 +9391,7 @@
|
|
|
9391
9391
|
styleUrls: ['../case-edit.scss'],
|
|
9392
9392
|
providers: [GreyBarService]
|
|
9393
9393
|
}]
|
|
9394
|
-
}], function () { return [{ type:
|
|
9394
|
+
}], function () { return [{ type: i1__namespace$3.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
9395
|
type: i0.Input
|
|
9396
9396
|
}], submit: [{
|
|
9397
9397
|
type: i0.Input
|
|
@@ -9474,7 +9474,7 @@
|
|
|
9474
9474
|
this.caseEdit = caseEdit;
|
|
9475
9475
|
this.router = router;
|
|
9476
9476
|
this.triggerText = 'Close and Return to case details';
|
|
9477
|
-
this.formGroup = new
|
|
9477
|
+
this.formGroup = new i1$2.FormControl();
|
|
9478
9478
|
this.eventTrigger = this.caseEdit.eventTrigger;
|
|
9479
9479
|
this.editForm = this.caseEdit.form;
|
|
9480
9480
|
this.caseFields = this.getCaseFields();
|
|
@@ -9721,7 +9721,7 @@
|
|
|
9721
9721
|
};
|
|
9722
9722
|
return SaveOrDiscardDialogComponent;
|
|
9723
9723
|
}());
|
|
9724
|
-
SaveOrDiscardDialogComponent.ɵfac = function SaveOrDiscardDialogComponent_Factory(t) { return new (t || SaveOrDiscardDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$
|
|
9724
|
+
SaveOrDiscardDialogComponent.ɵfac = function SaveOrDiscardDialogComponent_Factory(t) { return new (t || SaveOrDiscardDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$4.MatDialogRef)); };
|
|
9725
9725
|
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
9726
|
if (rf & 1) {
|
|
9727
9727
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
@@ -9762,11 +9762,11 @@
|
|
|
9762
9762
|
templateUrl: './save-or-discard-dialog.component.html',
|
|
9763
9763
|
styleUrls: ['../action-dialog.component.scss']
|
|
9764
9764
|
}]
|
|
9765
|
-
}], function () { return [{ type: i1__namespace$
|
|
9765
|
+
}], function () { return [{ type: i1__namespace$4.MatDialogRef }]; }, null);
|
|
9766
9766
|
})();
|
|
9767
9767
|
|
|
9768
9768
|
function initDialog() {
|
|
9769
|
-
var dialogConfig = new i1$
|
|
9769
|
+
var dialogConfig = new i1$4.MatDialogConfig();
|
|
9770
9770
|
dialogConfig.disableClose = true;
|
|
9771
9771
|
dialogConfig.autoFocus = true;
|
|
9772
9772
|
dialogConfig.ariaLabel = 'Label';
|
|
@@ -10516,7 +10516,7 @@
|
|
|
10516
10516
|
CaseEditPageComponent.TRIGGER_TEXT_START = 'Continue';
|
|
10517
10517
|
CaseEditPageComponent.TRIGGER_TEXT_SAVE = 'Save and continue';
|
|
10518
10518
|
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$
|
|
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$4.MatDialog), i0__namespace.ɵɵdirectiveInject(CaseFieldService), i0__namespace.ɵɵdirectiveInject(CaseEditDataService)); };
|
|
10520
10520
|
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
10521
|
if (rf & 1) {
|
|
10522
10522
|
i0__namespace.ɵɵtemplate(0, CaseEditPageComponent_ccd_loading_spinner_0_Template, 1, 0, "ccd-loading-spinner", 0);
|
|
@@ -10562,7 +10562,7 @@
|
|
|
10562
10562
|
templateUrl: 'case-edit-page.html',
|
|
10563
10563
|
styleUrls: ['./case-edit-page.scss']
|
|
10564
10564
|
}]
|
|
10565
|
-
}], function () { return [{ type: CaseEditComponent }, { type: i1__namespace$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0__namespace.ChangeDetectorRef }, { type: PageValidationService }, { type: i1__namespace$
|
|
10565
|
+
}], function () { return [{ type: CaseEditComponent }, { type: i1__namespace$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0__namespace.ChangeDetectorRef }, { type: PageValidationService }, { type: i1__namespace$4.MatDialog }, { type: CaseFieldService }, { type: CaseEditDataService }]; }, null);
|
|
10566
10566
|
})();
|
|
10567
10567
|
|
|
10568
10568
|
var CallbackErrorsContext = /** @class */ (function () {
|
|
@@ -11579,16 +11579,16 @@
|
|
|
11579
11579
|
function WriteAddressFieldComponent(addressesService, isCompoundPipe) {
|
|
11580
11580
|
var _this = _super.call(this) || this;
|
|
11581
11581
|
_this.isCompoundPipe = isCompoundPipe;
|
|
11582
|
-
_this.addressFormGroup = new
|
|
11582
|
+
_this.addressFormGroup = new i1$2.FormGroup({});
|
|
11583
11583
|
_this.missingPostcode = false;
|
|
11584
11584
|
_this.addressesService = addressesService;
|
|
11585
11585
|
return _this;
|
|
11586
11586
|
}
|
|
11587
11587
|
WriteAddressFieldComponent.prototype.ngOnInit = function () {
|
|
11588
11588
|
if (!this.isComplexWithHiddenFields()) {
|
|
11589
|
-
this.postcode = new
|
|
11589
|
+
this.postcode = new i1$2.FormControl('');
|
|
11590
11590
|
this.addressFormGroup.addControl('postcode', this.postcode);
|
|
11591
|
-
this.addressList = new
|
|
11591
|
+
this.addressList = new i1$2.FormControl('');
|
|
11592
11592
|
this.addressFormGroup.addControl('address', this.addressList);
|
|
11593
11593
|
}
|
|
11594
11594
|
};
|
|
@@ -11740,7 +11740,7 @@
|
|
|
11740
11740
|
}
|
|
11741
11741
|
AbstractFieldReadComponent.prototype.ngOnInit = function () {
|
|
11742
11742
|
if (!this.caseField.metadata) {
|
|
11743
|
-
this.registerControl(new
|
|
11743
|
+
this.registerControl(new i1$2.FormControl(this.caseField.value));
|
|
11744
11744
|
}
|
|
11745
11745
|
};
|
|
11746
11746
|
return AbstractFieldReadComponent;
|
|
@@ -12078,10 +12078,31 @@
|
|
|
12078
12078
|
UpdateFlagStep["STATUS_HINT_TEXT"] = "Describe reason for status change, if choosing 'not approved' provide name for person approving decision";
|
|
12079
12079
|
})(exports.UpdateFlagStep || (exports.UpdateFlagStep = {}));
|
|
12080
12080
|
|
|
12081
|
+
var CaseFlagStateService = /** @class */ (function () {
|
|
12082
|
+
function CaseFlagStateService() {
|
|
12083
|
+
this.formGroup = new i1$2.FormGroup({});
|
|
12084
|
+
}
|
|
12085
|
+
CaseFlagStateService.prototype.resetCache = function (pageLocation) {
|
|
12086
|
+
this.formGroup = new i1$2.FormGroup({});
|
|
12087
|
+
this.pageLocation = pageLocation;
|
|
12088
|
+
};
|
|
12089
|
+
return CaseFlagStateService;
|
|
12090
|
+
}());
|
|
12091
|
+
CaseFlagStateService.ɵfac = function CaseFlagStateService_Factory(t) { return new (t || CaseFlagStateService)(); };
|
|
12092
|
+
CaseFlagStateService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: CaseFlagStateService, factory: CaseFlagStateService.ɵfac });
|
|
12093
|
+
(function () {
|
|
12094
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFlagStateService, [{
|
|
12095
|
+
type: i0.Injectable
|
|
12096
|
+
}], null, null);
|
|
12097
|
+
})();
|
|
12098
|
+
|
|
12081
12099
|
function ReadCaseFlagFieldComponent_ng_container_1_Template(rf, ctx) {
|
|
12082
12100
|
if (rf & 1) {
|
|
12101
|
+
var _r3_1 = i0__namespace.ɵɵgetCurrentView();
|
|
12083
12102
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
12084
|
-
i0__namespace.ɵɵ
|
|
12103
|
+
i0__namespace.ɵɵelementStart(1, "ccd-case-flag-summary-list", 3);
|
|
12104
|
+
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); });
|
|
12105
|
+
i0__namespace.ɵɵelementEnd();
|
|
12085
12106
|
i0__namespace.ɵɵelementContainerEnd();
|
|
12086
12107
|
}
|
|
12087
12108
|
if (rf & 2) {
|
|
@@ -12095,8 +12116,8 @@
|
|
|
12095
12116
|
i0__namespace.ɵɵelement(0, "ccd-case-flag-table", 8);
|
|
12096
12117
|
}
|
|
12097
12118
|
if (rf & 2) {
|
|
12098
|
-
var
|
|
12099
|
-
i0__namespace.ɵɵproperty("tableCaption",
|
|
12119
|
+
var flagData_r6 = i0__namespace.ɵɵnextContext().$implicit;
|
|
12120
|
+
i0__namespace.ɵɵproperty("tableCaption", flagData_r6.flags.partyName)("flagData", flagData_r6)("firstColumnHeader", "Party level flags");
|
|
12100
12121
|
}
|
|
12101
12122
|
}
|
|
12102
12123
|
function ReadCaseFlagFieldComponent_ng_container_2_div_3_Template(rf, ctx) {
|
|
@@ -12106,9 +12127,9 @@
|
|
|
12106
12127
|
i0__namespace.ɵɵelementEnd();
|
|
12107
12128
|
}
|
|
12108
12129
|
if (rf & 2) {
|
|
12109
|
-
var
|
|
12130
|
+
var flagData_r6 = ctx.$implicit;
|
|
12110
12131
|
i0__namespace.ɵɵadvance(1);
|
|
12111
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
12132
|
+
i0__namespace.ɵɵproperty("ngIf", flagData_r6.flags.partyName);
|
|
12112
12133
|
}
|
|
12113
12134
|
}
|
|
12114
12135
|
function ReadCaseFlagFieldComponent_ng_container_2_div_4_Template(rf, ctx) {
|
|
@@ -12118,9 +12139,9 @@
|
|
|
12118
12139
|
i0__namespace.ɵɵelementEnd();
|
|
12119
12140
|
}
|
|
12120
12141
|
if (rf & 2) {
|
|
12121
|
-
var
|
|
12142
|
+
var ctx_r5 = i0__namespace.ɵɵnextContext(2);
|
|
12122
12143
|
i0__namespace.ɵɵadvance(1);
|
|
12123
|
-
i0__namespace.ɵɵproperty("tableCaption", "Case level flags")("flagData",
|
|
12144
|
+
i0__namespace.ɵɵproperty("tableCaption", "Case level flags")("flagData", ctx_r5.caseLevelCaseFlagData)("firstColumnHeader", "Case flags");
|
|
12124
12145
|
}
|
|
12125
12146
|
}
|
|
12126
12147
|
function ReadCaseFlagFieldComponent_ng_container_2_Template(rf, ctx) {
|
|
@@ -12143,9 +12164,11 @@
|
|
|
12143
12164
|
}
|
|
12144
12165
|
var ReadCaseFlagFieldComponent = /** @class */ (function (_super) {
|
|
12145
12166
|
__extends(ReadCaseFlagFieldComponent, _super);
|
|
12146
|
-
function ReadCaseFlagFieldComponent(route) {
|
|
12167
|
+
function ReadCaseFlagFieldComponent(route, router, caseFlagStateService) {
|
|
12147
12168
|
var _this = _super.call(this) || this;
|
|
12148
12169
|
_this.route = route;
|
|
12170
|
+
_this.router = router;
|
|
12171
|
+
_this.caseFlagStateService = caseFlagStateService;
|
|
12149
12172
|
_this.paletteContext = exports.PaletteContext;
|
|
12150
12173
|
_this.caseLevelCaseFlagsFieldId = 'caseFlags';
|
|
12151
12174
|
_this.caseNameMissing = 'Case name missing';
|
|
@@ -12186,6 +12209,8 @@
|
|
|
12186
12209
|
// which the new flag has been added
|
|
12187
12210
|
if (flagLauncherComponent.caseField.display_context_parameter === this.createMode &&
|
|
12188
12211
|
flagLauncherComponent.selectedFlagsLocation) {
|
|
12212
|
+
// this.flagLocation = flagLauncherComponent.selectedFlagsLocation;
|
|
12213
|
+
this.pathToFlagsFormGroup = flagLauncherComponent.selectedFlagsLocation.pathToFlagsFormGroup;
|
|
12189
12214
|
this.flagForSummaryDisplay = this.extractNewFlagToFlagDetailDisplayObject(flagLauncherComponent.selectedFlagsLocation);
|
|
12190
12215
|
// Set the display mode for the "Review flag details" summary page
|
|
12191
12216
|
this.summaryListDisplayMode = exports.CaseFlagSummaryListDisplayMode.CREATE;
|
|
@@ -12220,10 +12245,18 @@
|
|
|
12220
12245
|
}
|
|
12221
12246
|
return null;
|
|
12222
12247
|
};
|
|
12248
|
+
ReadCaseFlagFieldComponent.prototype.navigateBackToForm = function (fieldState) {
|
|
12249
|
+
this.router.navigate(["../" + this.caseFlagStateService.pageLocation], {
|
|
12250
|
+
relativeTo: this.route,
|
|
12251
|
+
state: {
|
|
12252
|
+
fieldState: fieldState,
|
|
12253
|
+
}
|
|
12254
|
+
});
|
|
12255
|
+
};
|
|
12223
12256
|
return ReadCaseFlagFieldComponent;
|
|
12224
12257
|
}(AbstractFieldReadComponent));
|
|
12225
|
-
ReadCaseFlagFieldComponent.ɵfac = function ReadCaseFlagFieldComponent_Factory(t) { return new (t || ReadCaseFlagFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute)); };
|
|
12226
|
-
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) {
|
|
12258
|
+
ReadCaseFlagFieldComponent.ɵfac = function ReadCaseFlagFieldComponent_Factory(t) { return new (t || ReadCaseFlagFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(CaseFlagStateService)); };
|
|
12259
|
+
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", "changeButtonEmitter"], [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) {
|
|
12227
12260
|
if (rf & 1) {
|
|
12228
12261
|
i0__namespace.ɵɵelementContainerStart(0, 0);
|
|
12229
12262
|
i0__namespace.ɵɵtemplate(1, ReadCaseFlagFieldComponent_ng_container_1_Template, 2, 2, "ng-container", 1);
|
|
@@ -12244,7 +12277,7 @@
|
|
|
12244
12277
|
templateUrl: './read-case-flag-field.component.html',
|
|
12245
12278
|
styleUrls: ['./read-case-flag-field.component.scss']
|
|
12246
12279
|
}]
|
|
12247
|
-
}], function () { return [{ type: i1__namespace$1.ActivatedRoute }]; }, null);
|
|
12280
|
+
}], function () { return [{ type: i1__namespace$1.ActivatedRoute }, { type: i1__namespace$1.Router }, { type: CaseFlagStateService }]; }, null);
|
|
12248
12281
|
})();
|
|
12249
12282
|
|
|
12250
12283
|
function WriteCaseFlagFieldComponent_div_0_div_3_Template(rf, ctx) {
|
|
@@ -12324,7 +12357,7 @@
|
|
|
12324
12357
|
if (rf & 2) {
|
|
12325
12358
|
var ctx_r9 = i0__namespace.ɵɵnextContext(2);
|
|
12326
12359
|
i0__namespace.ɵɵadvance(1);
|
|
12327
|
-
i0__namespace.ɵɵproperty("formGroup", ctx_r9.caseFlagParentFormGroup)("languages", ctx_r9.listOfValues)("flagCode", ctx_r9.flagCode);
|
|
12360
|
+
i0__namespace.ɵɵproperty("formGroup", ctx_r9.caseFlagParentFormGroup)("languages", ctx_r9.flagType.listOfValues)("flagCode", ctx_r9.flagType.flagCode);
|
|
12328
12361
|
}
|
|
12329
12362
|
}
|
|
12330
12363
|
function WriteCaseFlagFieldComponent_div_1_ng_container_7_Template(rf, ctx) {
|
|
@@ -12428,15 +12461,15 @@
|
|
|
12428
12461
|
}
|
|
12429
12462
|
var WriteCaseFlagFieldComponent = /** @class */ (function (_super) {
|
|
12430
12463
|
__extends(WriteCaseFlagFieldComponent, _super);
|
|
12431
|
-
function WriteCaseFlagFieldComponent(route, caseEditDataService) {
|
|
12464
|
+
function WriteCaseFlagFieldComponent(route, caseEditDataService, location, caseFlagStateService) {
|
|
12432
12465
|
var _this = _super.call(this) || this;
|
|
12433
12466
|
_this.route = route;
|
|
12434
12467
|
_this.caseEditDataService = caseEditDataService;
|
|
12468
|
+
_this.location = location;
|
|
12469
|
+
_this.caseFlagStateService = caseFlagStateService;
|
|
12435
12470
|
_this.caseFlagFieldState = exports.CaseFlagFieldState;
|
|
12436
12471
|
_this.errorMessages = [];
|
|
12437
|
-
_this.caseFlagParentFormGroup = new i2.FormGroup({});
|
|
12438
12472
|
_this.flagCommentsOptional = false;
|
|
12439
|
-
_this.listOfValues = null;
|
|
12440
12473
|
_this.allCaseFlagStagesCompleted = false;
|
|
12441
12474
|
_this.updateMode = '#ARGUMENT(UPDATE)';
|
|
12442
12475
|
// Code for "Other" flag type as defined in Reference Data
|
|
@@ -12444,8 +12477,30 @@
|
|
|
12444
12477
|
_this.caseNameMissing = 'Case name missing';
|
|
12445
12478
|
return _this;
|
|
12446
12479
|
}
|
|
12480
|
+
Object.defineProperty(WriteCaseFlagFieldComponent.prototype, "flagType", {
|
|
12481
|
+
get: function () {
|
|
12482
|
+
var _a;
|
|
12483
|
+
return (_a = this.caseFlagParentFormGroup) === null || _a === void 0 ? void 0 : _a.value.flagType;
|
|
12484
|
+
},
|
|
12485
|
+
enumerable: false,
|
|
12486
|
+
configurable: true
|
|
12487
|
+
});
|
|
12488
|
+
Object.defineProperty(WriteCaseFlagFieldComponent.prototype, "selectedFlagsLocation", {
|
|
12489
|
+
get: function () {
|
|
12490
|
+
var _a;
|
|
12491
|
+
return (_a = this.caseFlagParentFormGroup) === null || _a === void 0 ? void 0 : _a.value.selectedLocation;
|
|
12492
|
+
},
|
|
12493
|
+
enumerable: false,
|
|
12494
|
+
configurable: true
|
|
12495
|
+
});
|
|
12447
12496
|
WriteCaseFlagFieldComponent.prototype.ngOnInit = function () {
|
|
12448
12497
|
var _this = this;
|
|
12498
|
+
var _a, _b;
|
|
12499
|
+
if (!(((_a = this.location.getState()) === null || _a === void 0 ? void 0 : _a['fieldState']) >= 0)) {
|
|
12500
|
+
var params = this.route.snapshot.params;
|
|
12501
|
+
this.caseFlagStateService.resetCache("../" + params['eid'] + "/" + params['page']);
|
|
12502
|
+
}
|
|
12503
|
+
this.caseFlagParentFormGroup = this.caseFlagStateService.formGroup;
|
|
12449
12504
|
this.caseEditDataService.clearFormValidationErrors();
|
|
12450
12505
|
// Check for existing FlagLauncher control in parent and remove it - this is the only way to ensure its invalidity
|
|
12451
12506
|
// is set correctly at the start, when the component is reloaded and the control is re-registered. Otherwise, the
|
|
@@ -12454,7 +12509,7 @@
|
|
|
12454
12509
|
this.formGroup.removeControl(this.caseField.id);
|
|
12455
12510
|
}
|
|
12456
12511
|
// From this point, this.formGroup refers to the FormGroup for the FlagLauncher field, not the parent FormGroup
|
|
12457
|
-
this.formGroup = this.registerControl(new
|
|
12512
|
+
this.formGroup = this.registerControl(new i1$2.FormGroup({}, {
|
|
12458
12513
|
validators: function (_) {
|
|
12459
12514
|
if (!_this.allCaseFlagStagesCompleted) {
|
|
12460
12515
|
// Return an error to mark the FormGroup as invalid if not all Case Flag stages have been completed
|
|
@@ -12479,12 +12534,17 @@
|
|
|
12479
12534
|
// Set boolean indicating the display_context_parameter is "update"
|
|
12480
12535
|
this.isDisplayContextParameterUpdate =
|
|
12481
12536
|
this.setDisplayContextParameterUpdate((this.route.snapshot.data.eventTrigger.case_fields));
|
|
12482
|
-
// Set starting field state
|
|
12483
|
-
|
|
12537
|
+
// Set starting field state if fieldState not the right value
|
|
12538
|
+
if (!(((_b = this.location.getState()) === null || _b === void 0 ? void 0 : _b['fieldState']) >= 0)) {
|
|
12539
|
+
this.fieldState = this.isDisplayContextParameterUpdate ? exports.CaseFlagFieldState.FLAG_MANAGE_CASE_FLAGS : exports.CaseFlagFieldState.FLAG_LOCATION;
|
|
12540
|
+
}
|
|
12541
|
+
else {
|
|
12542
|
+
this.fieldState = this.location.getState()['fieldState'];
|
|
12543
|
+
}
|
|
12484
12544
|
// Get case title, to be used by child components
|
|
12485
|
-
this.caseEditDataService.caseTitle$.subscribe({
|
|
12545
|
+
this.caseTitleSubscription = this.caseEditDataService.caseTitle$.subscribe({
|
|
12486
12546
|
next: function (title) {
|
|
12487
|
-
_this.caseTitle = title.length > 0 ? title : _this.caseNameMissing;
|
|
12547
|
+
_this.caseTitle = (title === null || title === void 0 ? void 0 : title.length) > 0 ? title : _this.caseNameMissing;
|
|
12488
12548
|
}
|
|
12489
12549
|
});
|
|
12490
12550
|
}
|
|
@@ -12495,31 +12555,6 @@
|
|
|
12495
12555
|
};
|
|
12496
12556
|
WriteCaseFlagFieldComponent.prototype.onCaseFlagStateEmitted = function (caseFlagState) {
|
|
12497
12557
|
this.caseEditDataService.clearFormValidationErrors();
|
|
12498
|
-
// If the current state is CaseFlagFieldState.FLAG_LOCATION and a flag location (a Flags instance) has been selected,
|
|
12499
|
-
// set the parent Case Flag FormGroup for this component's children by using the provided pathToFlagsFormGroup, and
|
|
12500
|
-
// set the selected flag location on this component
|
|
12501
|
-
if (caseFlagState.currentCaseFlagFieldState === exports.CaseFlagFieldState.FLAG_LOCATION
|
|
12502
|
-
&& caseFlagState.selectedFlagsLocation
|
|
12503
|
-
&& caseFlagState.selectedFlagsLocation.pathToFlagsFormGroup) {
|
|
12504
|
-
this.setCaseFlagParentFormGroup(caseFlagState.selectedFlagsLocation.pathToFlagsFormGroup);
|
|
12505
|
-
this.selectedFlagsLocation = caseFlagState.selectedFlagsLocation;
|
|
12506
|
-
}
|
|
12507
|
-
// If the current state is CaseFlagFieldState.FLAG_TYPE, cache the flag name, path, hearing relevant indicator, code,
|
|
12508
|
-
// and "list of values" (currently applicable to language flag types)
|
|
12509
|
-
if (caseFlagState.currentCaseFlagFieldState === exports.CaseFlagFieldState.FLAG_TYPE) {
|
|
12510
|
-
this.flagName = caseFlagState.flagName;
|
|
12511
|
-
this.flagPath = caseFlagState.flagPath;
|
|
12512
|
-
this.hearingRelevantFlag = caseFlagState.hearingRelevantFlag;
|
|
12513
|
-
this.flagCode = caseFlagState.flagCode;
|
|
12514
|
-
this.listOfValues = caseFlagState.listOfValues;
|
|
12515
|
-
}
|
|
12516
|
-
// If the current state is CaseFlagFieldState.FLAG_MANAGE_CASE_FLAGS and a flag has been selected, set the parent
|
|
12517
|
-
// Case Flag FormGroup for this component's children by using the provided pathToFlagsFormGroup
|
|
12518
|
-
if (caseFlagState.currentCaseFlagFieldState === exports.CaseFlagFieldState.FLAG_MANAGE_CASE_FLAGS
|
|
12519
|
-
&& caseFlagState.selectedFlag
|
|
12520
|
-
&& caseFlagState.selectedFlag.pathToFlagsFormGroup) {
|
|
12521
|
-
this.setCaseFlagParentFormGroup(caseFlagState.selectedFlag.pathToFlagsFormGroup);
|
|
12522
|
-
}
|
|
12523
12558
|
this.errorMessages = caseFlagState.errorMessages;
|
|
12524
12559
|
this.selectedFlag = caseFlagState.selectedFlag;
|
|
12525
12560
|
// Validation succeeded; proceed to next state or final review stage ("Check your answers")
|
|
@@ -12539,11 +12574,12 @@
|
|
|
12539
12574
|
}
|
|
12540
12575
|
};
|
|
12541
12576
|
WriteCaseFlagFieldComponent.prototype.proceedToNextState = function () {
|
|
12577
|
+
var _a;
|
|
12542
12578
|
if (!this.isAtFinalState()) {
|
|
12543
12579
|
// Skip the "language interpreter" state if current state is CaseFlagFieldState.FLAG_TYPE and the flag type doesn't
|
|
12544
12580
|
// have a "list of values" - currently, this is present only for those flag types that require language interpreter
|
|
12545
12581
|
// selection
|
|
12546
|
-
if (this.fieldState === exports.CaseFlagFieldState.FLAG_TYPE && !this.listOfValues) {
|
|
12582
|
+
if (this.fieldState === exports.CaseFlagFieldState.FLAG_TYPE && !((_a = this.flagType) === null || _a === void 0 ? void 0 : _a.listOfValues)) {
|
|
12547
12583
|
this.fieldState = exports.CaseFlagFieldState.FLAG_COMMENTS;
|
|
12548
12584
|
}
|
|
12549
12585
|
else {
|
|
@@ -12583,10 +12619,11 @@
|
|
|
12583
12619
|
}
|
|
12584
12620
|
}
|
|
12585
12621
|
});
|
|
12586
|
-
var
|
|
12622
|
+
var path = this.selectedFlagsLocation.pathToFlagsFormGroup;
|
|
12623
|
+
var flagDataRef = this.flagsData.find(function (item) { return item.pathToFlagsFormGroup === path; });
|
|
12624
|
+
var flagsCaseFieldValue = flagDataRef.caseField.value;
|
|
12587
12625
|
// Use the pathToFlagsFormGroup property from the selected flag location to drill down to the correct part of the
|
|
12588
12626
|
// CaseField value to apply changes to
|
|
12589
|
-
var path = this.selectedFlagsLocation.pathToFlagsFormGroup;
|
|
12590
12627
|
// Root-level Flags CaseFields don't have a dot-delimited path - just the CaseField ID itself - so don't drill down
|
|
12591
12628
|
if (path.indexOf('.') > -1) {
|
|
12592
12629
|
path.slice(path.indexOf('.') + 1).split('.').forEach(function (part) { return flagsCaseFieldValue = flagsCaseFieldValue[part]; });
|
|
@@ -12594,8 +12631,8 @@
|
|
|
12594
12631
|
// If the CaseField for the selected flags location has no value, set it to an empty object so it can be populated
|
|
12595
12632
|
// with flag details
|
|
12596
12633
|
if (!flagsCaseFieldValue) {
|
|
12597
|
-
|
|
12598
|
-
flagsCaseFieldValue =
|
|
12634
|
+
flagDataRef.caseField.value = {};
|
|
12635
|
+
flagsCaseFieldValue = flagDataRef.caseField.value;
|
|
12599
12636
|
}
|
|
12600
12637
|
// Create a details array if one does not exist
|
|
12601
12638
|
if (!flagsCaseFieldValue.hasOwnProperty('details')) {
|
|
@@ -12677,38 +12714,22 @@
|
|
|
12677
12714
|
WriteCaseFlagFieldComponent.prototype.onFlagCommentsOptionalEmitted = function (_) {
|
|
12678
12715
|
this.flagCommentsOptional = true;
|
|
12679
12716
|
};
|
|
12680
|
-
/**
|
|
12681
|
-
* Set the parent {@link FormGroup} for this component's children, depending on the `Flags` {@link CaseField} instance
|
|
12682
|
-
* to which data should be attached. **Note:** The parent is not _this_ component's `FormGroup` (as might otherwise be
|
|
12683
|
-
* expected) because this component is not expected to have a value, given it is used for the empty `FlagLauncher` base
|
|
12684
|
-
* field type.
|
|
12685
|
-
*
|
|
12686
|
-
* @param pathToFlagsFormGroup The dot-delimited string that is the path to the `FormGroup` for a `Flags` instance
|
|
12687
|
-
*/
|
|
12688
|
-
WriteCaseFlagFieldComponent.prototype.setCaseFlagParentFormGroup = function (pathToFlagsFormGroup) {
|
|
12689
|
-
this.caseFlagParentFormGroup = this.formGroup.parent.get(pathToFlagsFormGroup);
|
|
12690
|
-
};
|
|
12691
12717
|
WriteCaseFlagFieldComponent.prototype.populateNewFlagDetailInstance = function () {
|
|
12718
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
12719
|
+
var formValues = (_a = this.caseFlagParentFormGroup) === null || _a === void 0 ? void 0 : _a.value;
|
|
12692
12720
|
return {
|
|
12693
|
-
name:
|
|
12721
|
+
name: (_b = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _b === void 0 ? void 0 : _b.name,
|
|
12694
12722
|
// Currently, subTypeValue and subTypeKey are applicable only to language flag types
|
|
12695
|
-
subTypeValue:
|
|
12696
|
-
? this.caseFlagParentFormGroup.value.languageSearchTerm.value
|
|
12697
|
-
: this.caseFlagParentFormGroup.value.manualLanguageEntry
|
|
12698
|
-
? this.caseFlagParentFormGroup.value.manualLanguageEntry
|
|
12699
|
-
: null,
|
|
12723
|
+
subTypeValue: (formValues === null || formValues === void 0 ? void 0 : formValues.languageSearchTerm) ? formValues === null || formValues === void 0 ? void 0 : formValues.languageSearchTerm.value : (formValues === null || formValues === void 0 ? void 0 : formValues.manualLanguageEntry) ? formValues === null || formValues === void 0 ? void 0 : formValues.manualLanguageEntry : null,
|
|
12700
12724
|
// For user-entered (i.e. non-Reference Data) languages, there is no key
|
|
12701
|
-
subTypeKey:
|
|
12702
|
-
|
|
12703
|
-
: null,
|
|
12704
|
-
|
|
12705
|
-
? this.caseFlagParentFormGroup.value.otherFlagTypeDescription
|
|
12706
|
-
: null,
|
|
12707
|
-
flagComment: this.caseFlagParentFormGroup.value.flagComments ? this.caseFlagParentFormGroup.value.flagComments : null,
|
|
12725
|
+
subTypeKey: (formValues === null || formValues === void 0 ? void 0 : formValues.languageSearchTerm) ? formValues === null || formValues === void 0 ? void 0 : formValues.languageSearchTerm.key : null,
|
|
12726
|
+
otherDescription: ((_c = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _c === void 0 ? void 0 : _c.flagCode) === this.otherFlagTypeCode && (formValues === null || formValues === void 0 ? void 0 : formValues.otherFlagTypeDescription)
|
|
12727
|
+
? formValues === null || formValues === void 0 ? void 0 : formValues.otherFlagTypeDescription : null,
|
|
12728
|
+
flagComment: formValues === null || formValues === void 0 ? void 0 : formValues.flagComments,
|
|
12708
12729
|
dateTimeCreated: new Date().toISOString(),
|
|
12709
|
-
path:
|
|
12710
|
-
hearingRelevant:
|
|
12711
|
-
flagCode:
|
|
12730
|
+
path: ((_d = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _d === void 0 ? void 0 : _d.Path) && ((_e = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _e === void 0 ? void 0 : _e.Path.map(function (pathValue) { return Object.assign({ id: null, value: pathValue }); })),
|
|
12731
|
+
hearingRelevant: ((_f = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _f === void 0 ? void 0 : _f.hearingRelevantFlag) ? 'Yes' : 'No',
|
|
12732
|
+
flagCode: (_g = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _g === void 0 ? void 0 : _g.flagCode,
|
|
12712
12733
|
status: exports.CaseFlagStatus.ACTIVE
|
|
12713
12734
|
};
|
|
12714
12735
|
};
|
|
@@ -12719,9 +12740,13 @@
|
|
|
12719
12740
|
this.formGroup.updateValueAndValidity();
|
|
12720
12741
|
this.caseEditDataService.setTriggerSubmitEvent(true);
|
|
12721
12742
|
};
|
|
12743
|
+
WriteCaseFlagFieldComponent.prototype.ngOnDestroy = function () {
|
|
12744
|
+
var _a;
|
|
12745
|
+
(_a = this.caseTitleSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
12746
|
+
};
|
|
12722
12747
|
return WriteCaseFlagFieldComponent;
|
|
12723
12748
|
}(AbstractFieldWriteComponent));
|
|
12724
|
-
WriteCaseFlagFieldComponent.ɵfac = function WriteCaseFlagFieldComponent_Factory(t) { return new (t || WriteCaseFlagFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(CaseEditDataService)); };
|
|
12749
|
+
WriteCaseFlagFieldComponent.ɵfac = function WriteCaseFlagFieldComponent_Factory(t) { return new (t || WriteCaseFlagFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(CaseEditDataService), i0__namespace.ɵɵdirectiveInject(i1__namespace.Location), i0__namespace.ɵɵdirectiveInject(CaseFlagStateService)); };
|
|
12725
12750
|
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) {
|
|
12726
12751
|
if (rf & 1) {
|
|
12727
12752
|
i0__namespace.ɵɵtemplate(0, WriteCaseFlagFieldComponent_div_0_Template, 4, 1, "div", 0);
|
|
@@ -12744,7 +12769,7 @@
|
|
|
12744
12769
|
templateUrl: './write-case-flag-field.component.html',
|
|
12745
12770
|
styleUrls: ['./write-case-flag-field.component.scss']
|
|
12746
12771
|
}]
|
|
12747
|
-
}], function () { return [{ type: i1__namespace$1.ActivatedRoute }, { type: CaseEditDataService }]; }, null);
|
|
12772
|
+
}], function () { return [{ type: i1__namespace$1.ActivatedRoute }, { type: CaseEditDataService }, { type: i1__namespace.Location }, { type: CaseFlagStateService }]; }, null);
|
|
12748
12773
|
})();
|
|
12749
12774
|
|
|
12750
12775
|
function ReadCaseLinkFieldComponent_a_0_Template(rf, ctx) {
|
|
@@ -12841,13 +12866,13 @@
|
|
|
12841
12866
|
WriteCaseLinkFieldComponent.prototype.ngOnInit = function () {
|
|
12842
12867
|
var e_1, _a;
|
|
12843
12868
|
if (this.caseField.value) {
|
|
12844
|
-
this.caseLinkGroup = this.registerControl(new
|
|
12845
|
-
CaseReference: new
|
|
12869
|
+
this.caseLinkGroup = this.registerControl(new i1$2.FormGroup({
|
|
12870
|
+
CaseReference: new i1$2.FormControl(this.caseField.value.CaseReference, i1$2.Validators.required),
|
|
12846
12871
|
}), true);
|
|
12847
12872
|
}
|
|
12848
12873
|
else {
|
|
12849
|
-
this.caseLinkGroup = this.registerControl(new
|
|
12850
|
-
CaseReference: new
|
|
12874
|
+
this.caseLinkGroup = this.registerControl(new i1$2.FormGroup({
|
|
12875
|
+
CaseReference: new i1$2.FormControl(null, i1$2.Validators.required),
|
|
12851
12876
|
}), true);
|
|
12852
12877
|
}
|
|
12853
12878
|
this.caseReferenceControl = this.caseLinkGroup.controls['CaseReference'];
|
|
@@ -12928,7 +12953,7 @@
|
|
|
12928
12953
|
i0__namespace.ɵɵadvance(1);
|
|
12929
12954
|
i0__namespace.ɵɵproperty("id", ctx.id())("formControl", ctx.caseReferenceControl);
|
|
12930
12955
|
}
|
|
12931
|
-
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf,
|
|
12956
|
+
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
12932
12957
|
var ɵWriteCaseLinkFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteCaseLinkFieldComponent);
|
|
12933
12958
|
(function () {
|
|
12934
12959
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteCaseLinkFieldComponent, [{
|
|
@@ -13065,7 +13090,7 @@
|
|
|
13065
13090
|
};
|
|
13066
13091
|
return RemoveDialogComponent;
|
|
13067
13092
|
}());
|
|
13068
|
-
RemoveDialogComponent.ɵfac = function RemoveDialogComponent_Factory(t) { return new (t || RemoveDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$
|
|
13093
|
+
RemoveDialogComponent.ɵfac = function RemoveDialogComponent_Factory(t) { return new (t || RemoveDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$4.MatDialogRef)); };
|
|
13069
13094
|
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) {
|
|
13070
13095
|
if (rf & 1) {
|
|
13071
13096
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
@@ -13106,7 +13131,7 @@
|
|
|
13106
13131
|
templateUrl: './remove-dialog.component.html',
|
|
13107
13132
|
styleUrls: ['../action-dialog.component.scss']
|
|
13108
13133
|
}]
|
|
13109
|
-
}], function () { return [{ type: i1__namespace$
|
|
13134
|
+
}], function () { return [{ type: i1__namespace$4.MatDialogRef }]; }, null);
|
|
13110
13135
|
})();
|
|
13111
13136
|
|
|
13112
13137
|
var _c0$L = ["collectionItem"];
|
|
@@ -13230,7 +13255,7 @@
|
|
|
13230
13255
|
this.profileSubscription = this.profileNotifier.profile.subscribe(function (_) { return _this.profile = _; });
|
|
13231
13256
|
}
|
|
13232
13257
|
this.caseField.value = this.caseField.value || [];
|
|
13233
|
-
this.formArray = this.registerControl(new
|
|
13258
|
+
this.formArray = this.registerControl(new i1$2.FormArray([]), true);
|
|
13234
13259
|
this.formArray['caseField'] = this.caseField;
|
|
13235
13260
|
this.caseField.value.forEach(function (item, index) {
|
|
13236
13261
|
var prefix = _this.buildIdPrefix(index);
|
|
@@ -13268,13 +13293,13 @@
|
|
|
13268
13293
|
group = this.formArray.at(index);
|
|
13269
13294
|
}
|
|
13270
13295
|
else {
|
|
13271
|
-
group = new
|
|
13296
|
+
group = new i1$2.FormGroup({});
|
|
13272
13297
|
}
|
|
13273
13298
|
var value;
|
|
13274
13299
|
if (this.isCollectionOfSimpleType(this.caseField)) {
|
|
13275
13300
|
value = group.get('value');
|
|
13276
13301
|
if (!value) {
|
|
13277
|
-
value = new
|
|
13302
|
+
value = new i1$2.FormControl(item.value);
|
|
13278
13303
|
// Now add the value FormControl to the outer group.
|
|
13279
13304
|
group.addControl('value', value);
|
|
13280
13305
|
}
|
|
@@ -13282,7 +13307,7 @@
|
|
|
13282
13307
|
else {
|
|
13283
13308
|
value = group.get('value');
|
|
13284
13309
|
if (!value) {
|
|
13285
|
-
value = new
|
|
13310
|
+
value = new i1$2.FormGroup({});
|
|
13286
13311
|
try {
|
|
13287
13312
|
for (var _b = __values(Object.keys(group.controls)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
13288
13313
|
var key = _c.value;
|
|
@@ -13308,7 +13333,7 @@
|
|
|
13308
13333
|
// and set up the id and value controls.
|
|
13309
13334
|
// Also set up an id control if it doesn't yet exist.
|
|
13310
13335
|
if (!id) {
|
|
13311
|
-
id = new
|
|
13336
|
+
id = new i1$2.FormControl(item.id);
|
|
13312
13337
|
group.addControl('id', id);
|
|
13313
13338
|
}
|
|
13314
13339
|
/**
|
|
@@ -13324,7 +13349,7 @@
|
|
|
13324
13349
|
}
|
|
13325
13350
|
// Now set up the CaseField and validation.
|
|
13326
13351
|
var cfid;
|
|
13327
|
-
if (value instanceof
|
|
13352
|
+
if (value instanceof i1$2.FormControl) {
|
|
13328
13353
|
cfid = 'value';
|
|
13329
13354
|
}
|
|
13330
13355
|
else {
|
|
@@ -13395,7 +13420,7 @@
|
|
|
13395
13420
|
};
|
|
13396
13421
|
WriteCollectionFieldComponent.prototype.getContainer = function (index) {
|
|
13397
13422
|
var value = this.formArray.at(index).get('value');
|
|
13398
|
-
if (value instanceof
|
|
13423
|
+
if (value instanceof i1$2.FormGroup) {
|
|
13399
13424
|
return value;
|
|
13400
13425
|
}
|
|
13401
13426
|
else {
|
|
@@ -13485,7 +13510,7 @@
|
|
|
13485
13510
|
};
|
|
13486
13511
|
WriteCollectionFieldComponent.prototype.openModal = function (i) {
|
|
13487
13512
|
var _this = this;
|
|
13488
|
-
var dialogConfig = new i1$
|
|
13513
|
+
var dialogConfig = new i1$4.MatDialogConfig();
|
|
13489
13514
|
dialogConfig.disableClose = true;
|
|
13490
13515
|
dialogConfig.autoFocus = true;
|
|
13491
13516
|
dialogConfig.ariaLabel = 'Label';
|
|
@@ -13519,7 +13544,7 @@
|
|
|
13519
13544
|
};
|
|
13520
13545
|
return WriteCollectionFieldComponent;
|
|
13521
13546
|
}(AbstractFieldWriteComponent));
|
|
13522
|
-
WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$
|
|
13547
|
+
WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$4.MatDialog), i0__namespace.ɵɵdirectiveInject(i2__namespace.ScrollToService), i0__namespace.ɵɵdirectiveInject(ProfileNotifier)); };
|
|
13523
13548
|
WriteCollectionFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) {
|
|
13524
13549
|
if (rf & 1) {
|
|
13525
13550
|
i0__namespace.ɵɵviewQuery(_c0$L, 1);
|
|
@@ -13568,7 +13593,7 @@
|
|
|
13568
13593
|
templateUrl: './write-collection-field.html',
|
|
13569
13594
|
styleUrls: ['./collection-field.scss']
|
|
13570
13595
|
}]
|
|
13571
|
-
}], function () { return [{ type: i1__namespace$
|
|
13596
|
+
}], function () { return [{ type: i1__namespace$4.MatDialog }, { type: i2__namespace.ScrollToService }, { type: ProfileNotifier }]; }, { caseFields: [{
|
|
13572
13597
|
type: i0.Input
|
|
13573
13598
|
}], formGroup: [{
|
|
13574
13599
|
type: i0.Input
|
|
@@ -13731,7 +13756,7 @@
|
|
|
13731
13756
|
_this.caseFields = [];
|
|
13732
13757
|
_this.renderLabel = true;
|
|
13733
13758
|
_this.ignoreMandatory = false;
|
|
13734
|
-
_this.complexGroup = new
|
|
13759
|
+
_this.complexGroup = new i1$2.FormGroup({});
|
|
13735
13760
|
return _this;
|
|
13736
13761
|
}
|
|
13737
13762
|
WriteComplexFieldComponent.prototype.ngOnInit = function () {
|
|
@@ -13752,7 +13777,7 @@
|
|
|
13752
13777
|
var e_1, _a;
|
|
13753
13778
|
var control = this.complexGroup.get(caseField.id);
|
|
13754
13779
|
if (!control) {
|
|
13755
|
-
control = new
|
|
13780
|
+
control = new i1$2.FormControl(caseField.value);
|
|
13756
13781
|
this.complexGroup.addControl(caseField.id, control);
|
|
13757
13782
|
}
|
|
13758
13783
|
// Add validators for addresses, if appropriate.
|
|
@@ -14047,7 +14072,7 @@
|
|
|
14047
14072
|
};
|
|
14048
14073
|
return DocumentDialogComponent;
|
|
14049
14074
|
}());
|
|
14050
|
-
DocumentDialogComponent.ɵfac = function DocumentDialogComponent_Factory(t) { return new (t || DocumentDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$
|
|
14075
|
+
DocumentDialogComponent.ɵfac = function DocumentDialogComponent_Factory(t) { return new (t || DocumentDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$4.MatDialogRef)); };
|
|
14051
14076
|
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) {
|
|
14052
14077
|
if (rf & 1) {
|
|
14053
14078
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
@@ -14088,7 +14113,7 @@
|
|
|
14088
14113
|
templateUrl: './document-dialog.component.html',
|
|
14089
14114
|
styleUrls: ['../action-dialog.component.scss']
|
|
14090
14115
|
}]
|
|
14091
|
-
}], function () { return [{ type: i1__namespace$
|
|
14116
|
+
}], function () { return [{ type: i1__namespace$4.MatDialogRef }]; }, null);
|
|
14092
14117
|
})();
|
|
14093
14118
|
|
|
14094
14119
|
var FileUploadStateService = /** @class */ (function () {
|
|
@@ -14319,21 +14344,21 @@
|
|
|
14319
14344
|
};
|
|
14320
14345
|
WriteDocumentFieldComponent.prototype.createDocumentFormWithValidator = function (document) {
|
|
14321
14346
|
var documentFormGroup = {
|
|
14322
|
-
document_url: new
|
|
14323
|
-
document_binary_url: new
|
|
14324
|
-
document_filename: new
|
|
14347
|
+
document_url: new i1$2.FormControl(document.document_url, i1$2.Validators.required),
|
|
14348
|
+
document_binary_url: new i1$2.FormControl(document.document_binary_url, i1$2.Validators.required),
|
|
14349
|
+
document_filename: new i1$2.FormControl(document.document_filename, i1$2.Validators.required)
|
|
14325
14350
|
};
|
|
14326
|
-
documentFormGroup = this.secureModeOn ? Object.assign(Object.assign({}, documentFormGroup), { document_hash: new
|
|
14327
|
-
this.uploadedDocument = this.registerControl(new
|
|
14351
|
+
documentFormGroup = this.secureModeOn ? Object.assign(Object.assign({}, documentFormGroup), { document_hash: new i1$2.FormControl(document.document_hash) }) : documentFormGroup;
|
|
14352
|
+
this.uploadedDocument = this.registerControl(new i1$2.FormGroup(documentFormGroup), true);
|
|
14328
14353
|
};
|
|
14329
14354
|
WriteDocumentFieldComponent.prototype.createDocumentForm = function (document) {
|
|
14330
14355
|
var documentFormGroup = {
|
|
14331
|
-
document_url: new
|
|
14332
|
-
document_binary_url: new
|
|
14333
|
-
document_filename: new
|
|
14356
|
+
document_url: new i1$2.FormControl(document.document_url),
|
|
14357
|
+
document_binary_url: new i1$2.FormControl(document.document_binary_url),
|
|
14358
|
+
document_filename: new i1$2.FormControl(document.document_filename)
|
|
14334
14359
|
};
|
|
14335
|
-
documentFormGroup = this.secureModeOn ? Object.assign(Object.assign({}, documentFormGroup), { document_hash: new
|
|
14336
|
-
this.uploadedDocument = this.registerControl(new
|
|
14360
|
+
documentFormGroup = this.secureModeOn ? Object.assign(Object.assign({}, documentFormGroup), { document_hash: new i1$2.FormControl(document.document_hash) }) : documentFormGroup;
|
|
14361
|
+
this.uploadedDocument = this.registerControl(new i1$2.FormGroup(documentFormGroup), true);
|
|
14337
14362
|
};
|
|
14338
14363
|
WriteDocumentFieldComponent.prototype.getErrorMessage = function (error) {
|
|
14339
14364
|
// Document Management unavailable
|
|
@@ -14401,7 +14426,7 @@
|
|
|
14401
14426
|
WriteDocumentFieldComponent.UPLOAD_ERROR_FILE_REQUIRED = 'File required';
|
|
14402
14427
|
WriteDocumentFieldComponent.UPLOAD_ERROR_NOT_AVAILABLE = 'Document upload facility is not available at the moment';
|
|
14403
14428
|
WriteDocumentFieldComponent.UPLOAD_WAITING_FILE_STATUS = 'Uploading...';
|
|
14404
|
-
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$
|
|
14429
|
+
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$4.MatDialog), i0__namespace.ɵɵdirectiveInject(FileUploadStateService)); };
|
|
14405
14430
|
WriteDocumentFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) {
|
|
14406
14431
|
if (rf & 1) {
|
|
14407
14432
|
i0__namespace.ɵɵviewQuery(_c0$K, 1);
|
|
@@ -14475,7 +14500,7 @@
|
|
|
14475
14500
|
selector: 'ccd-write-document-field',
|
|
14476
14501
|
templateUrl: './write-document-field.html'
|
|
14477
14502
|
}]
|
|
14478
|
-
}], function () { return [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1__namespace$
|
|
14503
|
+
}], function () { return [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1__namespace$4.MatDialog }, { type: FileUploadStateService }]; }, { fileInput: [{
|
|
14479
14504
|
type: i0.ViewChild,
|
|
14480
14505
|
args: ['fileInput', { static: false }]
|
|
14481
14506
|
}], clickout: [{
|
|
@@ -14629,7 +14654,7 @@
|
|
|
14629
14654
|
if (isNull || typeof this.caseField.value === 'object') {
|
|
14630
14655
|
this.caseField.value = null;
|
|
14631
14656
|
}
|
|
14632
|
-
this.dynamicListFormControl = this.registerControl(new
|
|
14657
|
+
this.dynamicListFormControl = this.registerControl(new i1$2.FormControl(this.caseField.value));
|
|
14633
14658
|
this.dynamicListFormControl.setValue(this.caseField.value);
|
|
14634
14659
|
};
|
|
14635
14660
|
return WriteDynamicListFieldComponent;
|
|
@@ -14671,7 +14696,7 @@
|
|
|
14671
14696
|
i0__namespace.ɵɵadvance(2);
|
|
14672
14697
|
i0__namespace.ɵɵproperty("ngForOf", ctx.caseField.list_items);
|
|
14673
14698
|
}
|
|
14674
|
-
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf,
|
|
14699
|
+
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace$3.SelectControlValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective, i1__namespace$3.NgSelectOption, i1__namespace$3.ɵangular_packages_forms_forms_z, i1__namespace.NgForOf], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
14675
14700
|
var ɵWriteDynamicListFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteDynamicListFieldComponent);
|
|
14676
14701
|
(function () {
|
|
14677
14702
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteDynamicListFieldComponent, [{
|
|
@@ -14847,7 +14872,7 @@
|
|
|
14847
14872
|
if (isNull || typeof this.caseField.value === 'object') {
|
|
14848
14873
|
this.caseField.value = [];
|
|
14849
14874
|
}
|
|
14850
|
-
this.dynamicRadioListControl = this.registerControl(new
|
|
14875
|
+
this.dynamicRadioListControl = this.registerControl(new i1$2.FormControl(this.caseField.value));
|
|
14851
14876
|
this.dynamicRadioListControl.setValue(this.caseField.value);
|
|
14852
14877
|
};
|
|
14853
14878
|
WriteDynamicRadioListFieldComponent.prototype.buildElementId = function (name) {
|
|
@@ -14888,7 +14913,7 @@
|
|
|
14888
14913
|
i0__namespace.ɵɵadvance(2);
|
|
14889
14914
|
i0__namespace.ɵɵproperty("ngForOf", ctx.caseField.list_items);
|
|
14890
14915
|
}
|
|
14891
|
-
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf,
|
|
14916
|
+
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$3.RadioControlValueAccessor, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
14892
14917
|
var ɵWriteDynamicRadioListFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteDynamicRadioListFieldComponent);
|
|
14893
14918
|
(function () {
|
|
14894
14919
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteDynamicRadioListFieldComponent, [{
|
|
@@ -14989,7 +15014,7 @@
|
|
|
14989
15014
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
14990
15015
|
}
|
|
14991
15016
|
WriteEmailFieldComponent.prototype.ngOnInit = function () {
|
|
14992
|
-
this.emailControl = this.registerControl(new
|
|
15017
|
+
this.emailControl = this.registerControl(new i1$2.FormControl(this.caseField.value));
|
|
14993
15018
|
};
|
|
14994
15019
|
return WriteEmailFieldComponent;
|
|
14995
15020
|
}(AbstractFieldWriteComponent));
|
|
@@ -15018,7 +15043,7 @@
|
|
|
15018
15043
|
i0__namespace.ɵɵadvance(1);
|
|
15019
15044
|
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$f, ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched)))("id", ctx.id())("formControl", ctx.emailControl);
|
|
15020
15045
|
}
|
|
15021
|
-
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf,
|
|
15046
|
+
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
15022
15047
|
var ɵWriteEmailFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteEmailFieldComponent);
|
|
15023
15048
|
(function () {
|
|
15024
15049
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteEmailFieldComponent, [{
|
|
@@ -15164,7 +15189,7 @@
|
|
|
15164
15189
|
if (isNull) {
|
|
15165
15190
|
this.caseField.value = null;
|
|
15166
15191
|
}
|
|
15167
|
-
this.fixedListFormControl = this.registerControl(new
|
|
15192
|
+
this.fixedListFormControl = this.registerControl(new i1$2.FormControl(this.caseField.value));
|
|
15168
15193
|
this.fixedListFormControl.setValue(this.caseField.value);
|
|
15169
15194
|
};
|
|
15170
15195
|
return WriteFixedListFieldComponent;
|
|
@@ -15203,7 +15228,7 @@
|
|
|
15203
15228
|
i0__namespace.ɵɵadvance(2);
|
|
15204
15229
|
i0__namespace.ɵɵproperty("ngForOf", ctx.listItems);
|
|
15205
15230
|
}
|
|
15206
|
-
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf,
|
|
15231
|
+
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace$3.SelectControlValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective, i1__namespace$3.NgSelectOption, i1__namespace$3.ɵangular_packages_forms_forms_z, i1__namespace.NgForOf], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
15207
15232
|
var ɵWriteFixedListFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteFixedListFieldComponent);
|
|
15208
15233
|
(function () {
|
|
15209
15234
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteFixedListFieldComponent, [{
|
|
@@ -15335,7 +15360,7 @@
|
|
|
15335
15360
|
}
|
|
15336
15361
|
WriteFixedRadioListFieldComponent.prototype.ngOnInit = function () {
|
|
15337
15362
|
var notEmpty = this.caseField.value !== null && this.caseField.value !== undefined;
|
|
15338
|
-
this.fixedRadioListControl = this.registerControl(new
|
|
15363
|
+
this.fixedRadioListControl = this.registerControl(new i1$2.FormControl(notEmpty ? this.caseField.value : null));
|
|
15339
15364
|
};
|
|
15340
15365
|
return WriteFixedRadioListFieldComponent;
|
|
15341
15366
|
}(AbstractFieldWriteComponent));
|
|
@@ -15370,7 +15395,7 @@
|
|
|
15370
15395
|
i0__namespace.ɵɵadvance(2);
|
|
15371
15396
|
i0__namespace.ɵɵproperty("ngForOf", ctx.caseField.field_type.fixed_list_items);
|
|
15372
15397
|
}
|
|
15373
|
-
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf,
|
|
15398
|
+
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$3.RadioControlValueAccessor, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
15374
15399
|
var ɵWriteFixedRadioListFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteFixedRadioListFieldComponent);
|
|
15375
15400
|
(function () {
|
|
15376
15401
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteFixedRadioListFieldComponent, [{
|
|
@@ -15530,10 +15555,10 @@
|
|
|
15530
15555
|
WriteJudicialUserFieldComponent.prototype.ngOnInit = function () {
|
|
15531
15556
|
var _this = this;
|
|
15532
15557
|
this.jurisdictionId = this.route.snapshot.params[this.JURISDICTION_ID];
|
|
15533
|
-
this.judicialUserFormGroup = this.registerControl(new
|
|
15534
|
-
this.idamIdFormControl = new
|
|
15558
|
+
this.judicialUserFormGroup = this.registerControl(new i1$2.FormGroup({}), true);
|
|
15559
|
+
this.idamIdFormControl = new i1$2.FormControl('');
|
|
15535
15560
|
this.judicialUserFormGroup.addControl(this.IDAM_ID, this.idamIdFormControl);
|
|
15536
|
-
this.personalCodeFormControl = new
|
|
15561
|
+
this.personalCodeFormControl = new i1$2.FormControl('');
|
|
15537
15562
|
this.judicialUserFormGroup.addControl(this.PERSONAL_CODE, this.personalCodeFormControl);
|
|
15538
15563
|
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) {
|
|
15539
15564
|
_this.filteredJudicialUsers = judicialUsers;
|
|
@@ -15584,7 +15609,7 @@
|
|
|
15584
15609
|
i0__namespace.ɵɵadvance(1);
|
|
15585
15610
|
i0__namespace.ɵɵproperty("ngIf", !(ctx.filteredJudicialUsers == null ? null : ctx.filteredJudicialUsers.length) && ctx.showAutocomplete);
|
|
15586
15611
|
}
|
|
15587
|
-
}, directives: [
|
|
15612
|
+
}, directives: [i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, i1__namespace.NgIf, i1__namespace$3.DefaultValueAccessor, i5__namespace.MatAutocompleteTrigger, i1__namespace$3.NgControlStatus, i1__namespace$3.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}"] });
|
|
15588
15613
|
(function () {
|
|
15589
15614
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteJudicialUserFieldComponent, [{
|
|
15590
15615
|
type: i0.Component,
|
|
@@ -15659,7 +15684,7 @@
|
|
|
15659
15684
|
this.value = this.amount;
|
|
15660
15685
|
}
|
|
15661
15686
|
else if (this.caseField) {
|
|
15662
|
-
this.registerControl(new
|
|
15687
|
+
this.registerControl(new i1$2.FormControl(this.caseField.value));
|
|
15663
15688
|
this.value = this.caseField.value;
|
|
15664
15689
|
}
|
|
15665
15690
|
};
|
|
@@ -15760,12 +15785,12 @@
|
|
|
15760
15785
|
MoneyGbpInputComponent.ɵfac = function MoneyGbpInputComponent_Factory(t) { return new (t || MoneyGbpInputComponent)(); };
|
|
15761
15786
|
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([
|
|
15762
15787
|
{
|
|
15763
|
-
provide:
|
|
15788
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
15764
15789
|
useExisting: i0.forwardRef(function () { return MoneyGbpInputComponent; }),
|
|
15765
15790
|
multi: true,
|
|
15766
15791
|
},
|
|
15767
15792
|
{
|
|
15768
|
-
provide:
|
|
15793
|
+
provide: i1$2.NG_VALIDATORS,
|
|
15769
15794
|
useExisting: i0.forwardRef(function () { return MoneyGbpInputComponent; }),
|
|
15770
15795
|
multi: true,
|
|
15771
15796
|
}
|
|
@@ -15787,12 +15812,12 @@
|
|
|
15787
15812
|
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\"/>",
|
|
15788
15813
|
providers: [
|
|
15789
15814
|
{
|
|
15790
|
-
provide:
|
|
15815
|
+
provide: i1$2.NG_VALUE_ACCESSOR,
|
|
15791
15816
|
useExisting: i0.forwardRef(function () { return MoneyGbpInputComponent; }),
|
|
15792
15817
|
multi: true,
|
|
15793
15818
|
},
|
|
15794
15819
|
{
|
|
15795
|
-
provide:
|
|
15820
|
+
provide: i1$2.NG_VALIDATORS,
|
|
15796
15821
|
useExisting: i0.forwardRef(function () { return MoneyGbpInputComponent; }),
|
|
15797
15822
|
multi: true,
|
|
15798
15823
|
}
|
|
@@ -15854,7 +15879,7 @@
|
|
|
15854
15879
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
15855
15880
|
}
|
|
15856
15881
|
WriteMoneyGbpFieldComponent.prototype.ngOnInit = function () {
|
|
15857
|
-
this.moneyGbpControl = this.registerControl(new
|
|
15882
|
+
this.moneyGbpControl = this.registerControl(new i1$2.FormControl(this.caseField.value));
|
|
15858
15883
|
};
|
|
15859
15884
|
return WriteMoneyGbpFieldComponent;
|
|
15860
15885
|
}(AbstractFieldWriteComponent));
|
|
@@ -15889,7 +15914,7 @@
|
|
|
15889
15914
|
i0__namespace.ɵɵadvance(4);
|
|
15890
15915
|
i0__namespace.ɵɵproperty("id", ctx.id())("name", ctx.id())("mandatory", i0__namespace.ɵɵpipeBind1(9, 9, ctx.caseField))("formControl", ctx.moneyGbpControl);
|
|
15891
15916
|
}
|
|
15892
|
-
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, MoneyGbpInputComponent,
|
|
15917
|
+
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, MoneyGbpInputComponent, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective], pipes: [IsMandatoryPipe, FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
15893
15918
|
var ɵWriteMoneyGbpFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteMoneyGbpFieldComponent);
|
|
15894
15919
|
(function () {
|
|
15895
15920
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteMoneyGbpFieldComponent, [{
|
|
@@ -16033,12 +16058,12 @@
|
|
|
16033
16058
|
}
|
|
16034
16059
|
WriteMultiSelectListFieldComponent.prototype.ngOnInit = function () {
|
|
16035
16060
|
var _this = this;
|
|
16036
|
-
this.checkboxes = new
|
|
16061
|
+
this.checkboxes = new i1$2.FormArray([]);
|
|
16037
16062
|
// Initialise array with existing values
|
|
16038
16063
|
if (this.caseField.value && Array.isArray(this.caseField.value)) {
|
|
16039
16064
|
var values = this.caseField.value;
|
|
16040
16065
|
values.forEach(function (value) {
|
|
16041
|
-
_this.checkboxes.push(new
|
|
16066
|
+
_this.checkboxes.push(new i1$2.FormControl(value));
|
|
16042
16067
|
});
|
|
16043
16068
|
}
|
|
16044
16069
|
this.registerControl(this.checkboxes, true);
|
|
@@ -16046,7 +16071,7 @@
|
|
|
16046
16071
|
&& this.caseField.field_type.type === 'MultiSelectList' && this.caseField.field_type.fixed_list_items.length > 0
|
|
16047
16072
|
&& this.checkboxes.controls.length === 0) {
|
|
16048
16073
|
if (this.caseField.field_type.fixed_list_items[0].code) {
|
|
16049
|
-
this.checkboxes.push(new
|
|
16074
|
+
this.checkboxes.push(new i1$2.FormControl(this.caseField.field_type.fixed_list_items[0].code));
|
|
16050
16075
|
this.checkboxes.removeAt(0);
|
|
16051
16076
|
}
|
|
16052
16077
|
}
|
|
@@ -16055,7 +16080,7 @@
|
|
|
16055
16080
|
var _this = this;
|
|
16056
16081
|
if (!this.isSelected(event.target.value)) {
|
|
16057
16082
|
// Add a new control in the FormArray
|
|
16058
|
-
this.checkboxes.push(new
|
|
16083
|
+
this.checkboxes.push(new i1$2.FormControl(event.target.value));
|
|
16059
16084
|
}
|
|
16060
16085
|
else {
|
|
16061
16086
|
// Remove the control form the FormArray
|
|
@@ -16188,7 +16213,7 @@
|
|
|
16188
16213
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
16189
16214
|
}
|
|
16190
16215
|
WriteNumberFieldComponent.prototype.ngOnInit = function () {
|
|
16191
|
-
this.numberControl = this.registerControl(new
|
|
16216
|
+
this.numberControl = this.registerControl(new i1$2.FormControl(this.caseField.value));
|
|
16192
16217
|
};
|
|
16193
16218
|
return WriteNumberFieldComponent;
|
|
16194
16219
|
}(AbstractFieldWriteComponent));
|
|
@@ -16217,7 +16242,7 @@
|
|
|
16217
16242
|
i0__namespace.ɵɵadvance(1);
|
|
16218
16243
|
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$d, ctx.numberControl.errors && ctx.numberControl.dirty))("id", ctx.id())("formControl", ctx.numberControl);
|
|
16219
16244
|
}
|
|
16220
|
-
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf,
|
|
16245
|
+
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace$3.NumberValueAccessor, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
16221
16246
|
var ɵWriteNumberFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteNumberFieldComponent);
|
|
16222
16247
|
(function () {
|
|
16223
16248
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteNumberFieldComponent, [{
|
|
@@ -16319,24 +16344,24 @@
|
|
|
16319
16344
|
*/
|
|
16320
16345
|
WriteOrderSummaryFieldComponent.prototype.ngOnInit = function () {
|
|
16321
16346
|
var _this = this;
|
|
16322
|
-
var orderSummaryGroup = this.registerControl(new
|
|
16323
|
-
var paymentReference = new
|
|
16347
|
+
var orderSummaryGroup = this.registerControl(new i1$2.FormGroup({}), true);
|
|
16348
|
+
var paymentReference = new i1$2.FormControl(this.caseField.value.PaymentReference);
|
|
16324
16349
|
orderSummaryGroup.addControl('PaymentReference', paymentReference);
|
|
16325
|
-
var paymentTotal = new
|
|
16350
|
+
var paymentTotal = new i1$2.FormControl(this.caseField.value.PaymentTotal);
|
|
16326
16351
|
orderSummaryGroup.addControl('PaymentTotal', paymentTotal);
|
|
16327
|
-
var feesArray = new
|
|
16352
|
+
var feesArray = new i1$2.FormArray([]);
|
|
16328
16353
|
this.caseField.value.Fees.forEach(function (fee) {
|
|
16329
16354
|
feesArray.push(_this.getFeeValue(fee.value));
|
|
16330
16355
|
});
|
|
16331
16356
|
orderSummaryGroup.addControl('Fees', feesArray);
|
|
16332
16357
|
};
|
|
16333
16358
|
WriteOrderSummaryFieldComponent.prototype.getFeeValue = function (feeValue) {
|
|
16334
|
-
var feeGroup = new
|
|
16335
|
-
feeGroup.addControl('FeeCode', new
|
|
16336
|
-
feeGroup.addControl('FeeAmount', new
|
|
16337
|
-
feeGroup.addControl('FeeDescription', new
|
|
16338
|
-
feeGroup.addControl('FeeVersion', new
|
|
16339
|
-
var feeValueGroup = new
|
|
16359
|
+
var feeGroup = new i1$2.FormGroup({});
|
|
16360
|
+
feeGroup.addControl('FeeCode', new i1$2.FormControl(feeValue.FeeCode));
|
|
16361
|
+
feeGroup.addControl('FeeAmount', new i1$2.FormControl(feeValue.FeeAmount));
|
|
16362
|
+
feeGroup.addControl('FeeDescription', new i1$2.FormControl(feeValue.FeeDescription));
|
|
16363
|
+
feeGroup.addControl('FeeVersion', new i1$2.FormControl(feeValue.FeeVersion));
|
|
16364
|
+
var feeValueGroup = new i1$2.FormGroup({});
|
|
16340
16365
|
feeValueGroup.addControl('value', feeGroup);
|
|
16341
16366
|
return feeValueGroup;
|
|
16342
16367
|
};
|
|
@@ -16640,10 +16665,10 @@
|
|
|
16640
16665
|
var e_1, _a;
|
|
16641
16666
|
var _this = this;
|
|
16642
16667
|
this.organisations$ = this.organisationService.getActiveOrganisations();
|
|
16643
|
-
this.searchOrgTextFormControl = new
|
|
16668
|
+
this.searchOrgTextFormControl = new i1$2.FormControl('');
|
|
16644
16669
|
this.searchOrgValue$ = this.searchOrgTextFormControl.valueChanges;
|
|
16645
16670
|
this.searchOrgValue$.subscribe(function (value) { return _this.onSearchOrg(value); });
|
|
16646
|
-
this.organisationFormGroup = this.registerControl(new
|
|
16671
|
+
this.organisationFormGroup = this.registerControl(new i1$2.FormGroup({}), true);
|
|
16647
16672
|
if (this.parent && this.parent.controls && this.parent.controls.hasOwnProperty(WriteOrganisationFieldComponent.PRE_POPULATE_TO_USERS_ORGANISATION)
|
|
16648
16673
|
&& this.parent.controls[WriteOrganisationFieldComponent.PRE_POPULATE_TO_USERS_ORGANISATION].value
|
|
16649
16674
|
&& this.parent.controls[WriteOrganisationFieldComponent.PRE_POPULATE_TO_USERS_ORGANISATION].value.toUpperCase()
|
|
@@ -16759,10 +16784,10 @@
|
|
|
16759
16784
|
this.selectedOrg$ = rxjs.of(WriteOrganisationFieldComponent.EMPTY_SIMPLE_ORG);
|
|
16760
16785
|
};
|
|
16761
16786
|
WriteOrganisationFieldComponent.prototype.instantiateOrganisationFormGroup = function (orgIDState, orgNameState) {
|
|
16762
|
-
this.organisationIDFormControl = new
|
|
16787
|
+
this.organisationIDFormControl = new i1$2.FormControl(orgIDState);
|
|
16763
16788
|
this.addOrganisationValidators(this.caseField, this.organisationIDFormControl);
|
|
16764
16789
|
this.organisationFormGroup.addControl(WriteOrganisationFieldComponent.ORGANISATION_ID, this.organisationIDFormControl);
|
|
16765
|
-
this.organisationNameFormControl = new
|
|
16790
|
+
this.organisationNameFormControl = new i1$2.FormControl(orgNameState);
|
|
16766
16791
|
this.organisationFormGroup.addControl(WriteOrganisationFieldComponent.ORGANISATION_NAME, this.organisationNameFormControl);
|
|
16767
16792
|
};
|
|
16768
16793
|
WriteOrganisationFieldComponent.prototype.addOrganisationValidators = function (caseField, control) {
|
|
@@ -17002,7 +17027,7 @@
|
|
|
17002
17027
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
17003
17028
|
}
|
|
17004
17029
|
WritePhoneUKFieldComponent.prototype.ngOnInit = function () {
|
|
17005
|
-
this.phoneUkControl = this.registerControl(new
|
|
17030
|
+
this.phoneUkControl = this.registerControl(new i1$2.FormControl(this.caseField.value));
|
|
17006
17031
|
};
|
|
17007
17032
|
return WritePhoneUKFieldComponent;
|
|
17008
17033
|
}(AbstractFieldWriteComponent));
|
|
@@ -17031,7 +17056,7 @@
|
|
|
17031
17056
|
i0__namespace.ɵɵadvance(1);
|
|
17032
17057
|
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$c, ctx.phoneUkControl.errors && ctx.phoneUkControl.dirty))("id", ctx.id())("formControl", ctx.phoneUkControl);
|
|
17033
17058
|
}
|
|
17034
|
-
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf,
|
|
17059
|
+
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
17035
17060
|
var ɵWritePhoneUKFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WritePhoneUKFieldComponent);
|
|
17036
17061
|
(function () {
|
|
17037
17062
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WritePhoneUKFieldComponent, [{
|
|
@@ -17121,7 +17146,7 @@
|
|
|
17121
17146
|
return _this;
|
|
17122
17147
|
}
|
|
17123
17148
|
WriteTextAreaFieldComponent.prototype.ngOnInit = function () {
|
|
17124
|
-
this.textareaControl = this.registerControl(new
|
|
17149
|
+
this.textareaControl = this.registerControl(new i1$2.FormControl(this.caseField.value));
|
|
17125
17150
|
};
|
|
17126
17151
|
WriteTextAreaFieldComponent.prototype.autoGrow = function (event) {
|
|
17127
17152
|
if (this.browserService.isIEOrEdge()) {
|
|
@@ -17159,7 +17184,7 @@
|
|
|
17159
17184
|
i0__namespace.ɵɵadvance(1);
|
|
17160
17185
|
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$b, ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched)))("id", ctx.id())("formControl", ctx.textareaControl);
|
|
17161
17186
|
}
|
|
17162
|
-
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf,
|
|
17187
|
+
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
17163
17188
|
(function () {
|
|
17164
17189
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteTextAreaFieldComponent, [{
|
|
17165
17190
|
type: i0.Component,
|
|
@@ -17247,7 +17272,7 @@
|
|
|
17247
17272
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
17248
17273
|
}
|
|
17249
17274
|
WriteTextFieldComponent.prototype.ngOnInit = function () {
|
|
17250
|
-
this.textControl = this.registerControl(new
|
|
17275
|
+
this.textControl = this.registerControl(new i1$2.FormControl(this.caseField.value));
|
|
17251
17276
|
};
|
|
17252
17277
|
WriteTextFieldComponent.prototype.onBlur = function ($event) {
|
|
17253
17278
|
$event.target.value = $event.target.value.trim();
|
|
@@ -17281,7 +17306,7 @@
|
|
|
17281
17306
|
i0__namespace.ɵɵadvance(1);
|
|
17282
17307
|
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$a, (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched)))("id", ctx.id())("formControl", ctx.textControl);
|
|
17283
17308
|
}
|
|
17284
|
-
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf,
|
|
17309
|
+
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
17285
17310
|
var ɵWriteTextFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteTextFieldComponent);
|
|
17286
17311
|
(function () {
|
|
17287
17312
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteTextFieldComponent, [{
|
|
@@ -17510,7 +17535,7 @@
|
|
|
17510
17535
|
return _this;
|
|
17511
17536
|
}
|
|
17512
17537
|
WriteYesNoFieldComponent.prototype.ngOnInit = function () {
|
|
17513
|
-
this.yesNoControl = this.registerControl(new
|
|
17538
|
+
this.yesNoControl = this.registerControl(new i1$2.FormControl(this.yesNoService.format(this.caseField.value)));
|
|
17514
17539
|
};
|
|
17515
17540
|
return WriteYesNoFieldComponent;
|
|
17516
17541
|
}(AbstractFieldWriteComponent));
|
|
@@ -17543,7 +17568,7 @@
|
|
|
17543
17568
|
i0__namespace.ɵɵadvance(1);
|
|
17544
17569
|
i0__namespace.ɵɵproperty("ngForOf", ctx.yesNoValues);
|
|
17545
17570
|
}
|
|
17546
|
-
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf,
|
|
17571
|
+
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$3.RadioControlValueAccessor, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
17547
17572
|
(function () {
|
|
17548
17573
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteYesNoFieldComponent, [{
|
|
17549
17574
|
type: i0.Component,
|
|
@@ -17654,7 +17679,7 @@
|
|
|
17654
17679
|
_this.resolver = resolver;
|
|
17655
17680
|
_this.paletteService = paletteService;
|
|
17656
17681
|
_this.withLabel = false;
|
|
17657
|
-
_this.formGroup = new
|
|
17682
|
+
_this.formGroup = new i1$2.FormGroup({});
|
|
17658
17683
|
_this.caseFields = [];
|
|
17659
17684
|
return _this;
|
|
17660
17685
|
}
|
|
@@ -18065,7 +18090,7 @@
|
|
|
18065
18090
|
};
|
|
18066
18091
|
return CaseFileViewFolderSelectorComponent;
|
|
18067
18092
|
}());
|
|
18068
|
-
CaseFileViewFolderSelectorComponent.ɵfac = function CaseFileViewFolderSelectorComponent_Factory(t) { return new (t || CaseFileViewFolderSelectorComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$
|
|
18093
|
+
CaseFileViewFolderSelectorComponent.ɵfac = function CaseFileViewFolderSelectorComponent_Factory(t) { return new (t || CaseFileViewFolderSelectorComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$4.MatDialogRef), i0__namespace.ɵɵdirectiveInject(i1$4.MAT_DIALOG_DATA)); };
|
|
18069
18094
|
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) {
|
|
18070
18095
|
if (rf & 1) {
|
|
18071
18096
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
@@ -18109,9 +18134,9 @@
|
|
|
18109
18134
|
encapsulation: i0.ViewEncapsulation.None
|
|
18110
18135
|
}]
|
|
18111
18136
|
}], function () {
|
|
18112
|
-
return [{ type: i1__namespace$
|
|
18137
|
+
return [{ type: i1__namespace$4.MatDialogRef }, { type: undefined, decorators: [{
|
|
18113
18138
|
type: i0.Inject,
|
|
18114
|
-
args: [i1$
|
|
18139
|
+
args: [i1$4.MAT_DIALOG_DATA]
|
|
18115
18140
|
}] }];
|
|
18116
18141
|
}, null);
|
|
18117
18142
|
})();
|
|
@@ -18210,7 +18235,7 @@
|
|
|
18210
18235
|
i0__namespace.ɵɵadvance(4);
|
|
18211
18236
|
i0__namespace.ɵɵproperty("cdkConnectedOverlayOrigin", _r0)("cdkConnectedOverlayOpen", ctx.isOpen)("cdkConnectedOverlayHasBackdrop", true)("cdkConnectedOverlayBackdropClass", "cdk-overlay-transparent-backdrop");
|
|
18212
18237
|
}
|
|
18213
|
-
}, directives: [i1__namespace$
|
|
18238
|
+
}, directives: [i1__namespace$5.CdkOverlayOrigin, i1__namespace$5.CdkConnectedOverlay, i1__namespace.NgIf, i1__namespace.NgForOf], styles: [".overlay-toggle[_ngcontent-%COMP%]{display:block;background:none;border:0;padding:0 6px;margin-right:-6px;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}"] });
|
|
18214
18239
|
(function () {
|
|
18215
18240
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewOverlayMenuComponent, [{
|
|
18216
18241
|
type: i0.Component,
|
|
@@ -18582,8 +18607,8 @@
|
|
|
18582
18607
|
});
|
|
18583
18608
|
CaseFileViewFolderComponent.prototype.ngOnInit = function () {
|
|
18584
18609
|
var _this = this;
|
|
18585
|
-
this.documentFilterFormGroup = new
|
|
18586
|
-
this.documentSearchFormControl = new
|
|
18610
|
+
this.documentFilterFormGroup = new i1$2.FormGroup({});
|
|
18611
|
+
this.documentSearchFormControl = new i1$2.FormControl('');
|
|
18587
18612
|
this.documentFilterFormGroup.addControl(CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME, this.documentSearchFormControl);
|
|
18588
18613
|
// Listen to search input and initiate filter documents if at least three characters entered
|
|
18589
18614
|
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) {
|
|
@@ -18766,7 +18791,7 @@
|
|
|
18766
18791
|
CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised documents';
|
|
18767
18792
|
CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME = 'documentSearchFormControl';
|
|
18768
18793
|
CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 1;
|
|
18769
|
-
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$
|
|
18794
|
+
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$4.MatDialog)); };
|
|
18770
18795
|
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) {
|
|
18771
18796
|
if (rf & 1) {
|
|
18772
18797
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
@@ -18794,7 +18819,7 @@
|
|
|
18794
18819
|
i0__namespace.ɵɵadvance(3);
|
|
18795
18820
|
i0__namespace.ɵɵproperty("ngIf", ctx.documentTreeData);
|
|
18796
18821
|
}
|
|
18797
|
-
}, directives: [
|
|
18822
|
+
}, directives: [i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.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}"] });
|
|
18798
18823
|
(function () {
|
|
18799
18824
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderComponent, [{
|
|
18800
18825
|
type: i0.Component,
|
|
@@ -18803,7 +18828,7 @@
|
|
|
18803
18828
|
templateUrl: './case-file-view-folder.component.html',
|
|
18804
18829
|
styleUrls: ['./case-file-view-folder.component.scss'],
|
|
18805
18830
|
}]
|
|
18806
|
-
}], function () { return [{ type: WindowService }, { type: i1__namespace$1.Router }, { type: DocumentManagementService }, { type: i1__namespace$
|
|
18831
|
+
}], function () { return [{ type: WindowService }, { type: i1__namespace$1.Router }, { type: DocumentManagementService }, { type: i1__namespace$4.MatDialog }]; }, { categoriesAndDocuments: [{
|
|
18807
18832
|
type: i0.Input
|
|
18808
18833
|
}], allowMoving: [{
|
|
18809
18834
|
type: i0.Input
|
|
@@ -18997,96 +19022,187 @@
|
|
|
18997
19022
|
}] });
|
|
18998
19023
|
})();
|
|
18999
19024
|
|
|
19000
|
-
|
|
19025
|
+
/**
|
|
19026
|
+
* DTO to provide typing of the response from the Reference Data Common API for Case Flags data.
|
|
19027
|
+
*
|
|
19028
|
+
* @see {@link https://tools.hmcts.net/confluence/pages/viewpage.action?pageId=1525476616#CaseFlagsHLDVersion1.0-Output}
|
|
19029
|
+
* for full details
|
|
19030
|
+
*/
|
|
19031
|
+
var FlagType = /** @class */ (function () {
|
|
19032
|
+
function FlagType() {
|
|
19033
|
+
this.listOfValuesLength = 0;
|
|
19034
|
+
this.listOfValues = [];
|
|
19035
|
+
}
|
|
19036
|
+
FlagType.searchPathByFlagTypeObject = function (singleFlag, flags, path) {
|
|
19037
|
+
var e_1, _b;
|
|
19038
|
+
if (path === void 0) { path = []; }
|
|
19039
|
+
var _a;
|
|
19040
|
+
try {
|
|
19041
|
+
for (var flags_1 = __values(flags), flags_1_1 = flags_1.next(); !flags_1_1.done; flags_1_1 = flags_1.next()) {
|
|
19042
|
+
var flag = flags_1_1.value;
|
|
19043
|
+
if (flag.flagCode === singleFlag.flagCode && flag.Path.join(',') === singleFlag.Path.join(',')) {
|
|
19044
|
+
return [flag, path];
|
|
19045
|
+
}
|
|
19046
|
+
if ((_a = flag.childFlags) === null || _a === void 0 ? void 0 : _a.length) {
|
|
19047
|
+
var _c = __read(FlagType.searchPathByFlagTypeObject(singleFlag, flag.childFlags, __spread(path, [flag])), 2), result = _c[0], childPath = _c[1];
|
|
19048
|
+
if (result) {
|
|
19049
|
+
return [result, childPath];
|
|
19050
|
+
}
|
|
19051
|
+
}
|
|
19052
|
+
}
|
|
19053
|
+
}
|
|
19054
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
19055
|
+
finally {
|
|
19056
|
+
try {
|
|
19057
|
+
if (flags_1_1 && !flags_1_1.done && (_b = flags_1.return)) _b.call(flags_1);
|
|
19058
|
+
}
|
|
19059
|
+
finally { if (e_1) throw e_1.error; }
|
|
19060
|
+
}
|
|
19061
|
+
return [false, []];
|
|
19062
|
+
};
|
|
19063
|
+
return FlagType;
|
|
19064
|
+
}());
|
|
19065
|
+
|
|
19066
|
+
/**
|
|
19067
|
+
* DTO to provide typing of the response from the Reference Data Location API for HMCTS service details.
|
|
19068
|
+
*/
|
|
19069
|
+
var HmctsServiceDetail = /** @class */ (function () {
|
|
19070
|
+
function HmctsServiceDetail() {
|
|
19071
|
+
this.service_id = 0;
|
|
19072
|
+
}
|
|
19073
|
+
return HmctsServiceDetail;
|
|
19074
|
+
}());
|
|
19075
|
+
|
|
19076
|
+
var SearchLanguageInterpreterControlNames;
|
|
19077
|
+
(function (SearchLanguageInterpreterControlNames) {
|
|
19078
|
+
SearchLanguageInterpreterControlNames["LANGUAGE_SEARCH_TERM"] = "languageSearchTerm";
|
|
19079
|
+
SearchLanguageInterpreterControlNames["MANUAL_LANGUAGE_ENTRY"] = "manualLanguageEntry";
|
|
19080
|
+
})(SearchLanguageInterpreterControlNames || (SearchLanguageInterpreterControlNames = {}));
|
|
19081
|
+
|
|
19082
|
+
function SelectFlagTypeComponent_div_0_div_6_Template(rf, ctx) {
|
|
19001
19083
|
if (rf & 1) {
|
|
19002
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
19003
|
-
i0__namespace.ɵɵelementStart(1, "span",
|
|
19084
|
+
i0__namespace.ɵɵelementStart(0, "div", 11);
|
|
19085
|
+
i0__namespace.ɵɵelementStart(1, "span", 12);
|
|
19004
19086
|
i0__namespace.ɵɵtext(2, "Error:");
|
|
19005
19087
|
i0__namespace.ɵɵelementEnd();
|
|
19006
19088
|
i0__namespace.ɵɵtext(3);
|
|
19007
19089
|
i0__namespace.ɵɵelementEnd();
|
|
19008
19090
|
}
|
|
19009
19091
|
if (rf & 2) {
|
|
19010
|
-
var
|
|
19092
|
+
var ctx_r1 = i0__namespace.ɵɵnextContext(2);
|
|
19011
19093
|
i0__namespace.ɵɵadvance(3);
|
|
19012
|
-
i0__namespace.ɵɵtextInterpolate1(" ",
|
|
19094
|
+
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.flagTypeNotSelectedErrorMessage, " ");
|
|
19013
19095
|
}
|
|
19014
19096
|
}
|
|
19015
|
-
function
|
|
19097
|
+
function SelectFlagTypeComponent_div_0_div_8_Template(rf, ctx) {
|
|
19016
19098
|
if (rf & 1) {
|
|
19017
|
-
|
|
19018
|
-
i0__namespace.ɵɵ
|
|
19019
|
-
i0__namespace.ɵɵelementStart(
|
|
19020
|
-
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); });
|
|
19021
|
-
i0__namespace.ɵɵelementEnd();
|
|
19022
|
-
i0__namespace.ɵɵelementStart(2, "label", 14);
|
|
19099
|
+
i0__namespace.ɵɵelementStart(0, "div", 13);
|
|
19100
|
+
i0__namespace.ɵɵelement(1, "input", 14);
|
|
19101
|
+
i0__namespace.ɵɵelementStart(2, "label", 15);
|
|
19023
19102
|
i0__namespace.ɵɵtext(3);
|
|
19024
19103
|
i0__namespace.ɵɵelementEnd();
|
|
19025
19104
|
i0__namespace.ɵɵelementEnd();
|
|
19026
19105
|
}
|
|
19027
19106
|
if (rf & 2) {
|
|
19028
|
-
var
|
|
19029
|
-
var
|
|
19030
|
-
var
|
|
19107
|
+
var flagType_r5 = ctx.$implicit;
|
|
19108
|
+
var i_r6 = ctx.index;
|
|
19109
|
+
var ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
19031
19110
|
i0__namespace.ɵɵadvance(1);
|
|
19032
|
-
i0__namespace.ɵɵpropertyInterpolate1("id", "flag-type-",
|
|
19033
|
-
i0__namespace.ɵɵproperty("name",
|
|
19111
|
+
i0__namespace.ɵɵpropertyInterpolate1("id", "flag-type-", i_r6, "");
|
|
19112
|
+
i0__namespace.ɵɵproperty("name", ctx_r2.flagTypeControlName)("value", flagType_r5)("formControlName", ctx_r2.flagTypeControlName);
|
|
19034
19113
|
i0__namespace.ɵɵadvance(1);
|
|
19035
|
-
i0__namespace.ɵɵpropertyInterpolate1("for", "flag-type-",
|
|
19114
|
+
i0__namespace.ɵɵpropertyInterpolate1("for", "flag-type-", i_r6, "");
|
|
19036
19115
|
i0__namespace.ɵɵadvance(1);
|
|
19037
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
19116
|
+
i0__namespace.ɵɵtextInterpolate(flagType_r5.name);
|
|
19038
19117
|
}
|
|
19039
19118
|
}
|
|
19040
|
-
function
|
|
19119
|
+
function SelectFlagTypeComponent_div_0_div_9_div_4_Template(rf, ctx) {
|
|
19041
19120
|
if (rf & 1) {
|
|
19042
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
19043
|
-
i0__namespace.ɵɵelementStart(1, "span",
|
|
19121
|
+
i0__namespace.ɵɵelementStart(0, "div", 20);
|
|
19122
|
+
i0__namespace.ɵɵelementStart(1, "span", 12);
|
|
19044
19123
|
i0__namespace.ɵɵtext(2, "Error:");
|
|
19045
19124
|
i0__namespace.ɵɵelementEnd();
|
|
19046
19125
|
i0__namespace.ɵɵtext(3);
|
|
19047
19126
|
i0__namespace.ɵɵelementEnd();
|
|
19048
19127
|
}
|
|
19049
19128
|
if (rf & 2) {
|
|
19050
|
-
var
|
|
19129
|
+
var ctx_r7 = i0__namespace.ɵɵnextContext(3);
|
|
19051
19130
|
i0__namespace.ɵɵadvance(3);
|
|
19052
|
-
i0__namespace.ɵɵtextInterpolate1(" ",
|
|
19131
|
+
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r7.flagTypeErrorMessage, " ");
|
|
19053
19132
|
}
|
|
19054
19133
|
}
|
|
19055
19134
|
var _c0$q = function (a0) { return { "form-group-error": a0 }; };
|
|
19056
19135
|
var _c1$6 = function (a0) { return { "govuk-input--error": a0 }; };
|
|
19057
|
-
function
|
|
19136
|
+
function SelectFlagTypeComponent_div_0_div_9_Template(rf, ctx) {
|
|
19058
19137
|
if (rf & 1) {
|
|
19059
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
19060
|
-
i0__namespace.ɵɵelementStart(1, "div",
|
|
19061
|
-
i0__namespace.ɵɵelementStart(2, "label",
|
|
19138
|
+
i0__namespace.ɵɵelementStart(0, "div", 16);
|
|
19139
|
+
i0__namespace.ɵɵelementStart(1, "div", 2);
|
|
19140
|
+
i0__namespace.ɵɵelementStart(2, "label", 17);
|
|
19062
19141
|
i0__namespace.ɵɵtext(3, "Enter a flag type");
|
|
19063
19142
|
i0__namespace.ɵɵelementEnd();
|
|
19064
|
-
i0__namespace.ɵɵtemplate(4,
|
|
19065
|
-
i0__namespace.ɵɵelement(5, "input",
|
|
19143
|
+
i0__namespace.ɵɵtemplate(4, SelectFlagTypeComponent_div_0_div_9_div_4_Template, 4, 1, "div", 18);
|
|
19144
|
+
i0__namespace.ɵɵelement(5, "input", 19);
|
|
19066
19145
|
i0__namespace.ɵɵelementEnd();
|
|
19067
19146
|
i0__namespace.ɵɵelementEnd();
|
|
19068
19147
|
}
|
|
19069
19148
|
if (rf & 2) {
|
|
19070
|
-
var
|
|
19149
|
+
var ctx_r3 = i0__namespace.ɵɵnextContext(2);
|
|
19071
19150
|
i0__namespace.ɵɵadvance(1);
|
|
19072
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$q,
|
|
19151
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$q, ctx_r3.flagTypeErrorMessage.length > 0));
|
|
19073
19152
|
i0__namespace.ɵɵadvance(3);
|
|
19074
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
19153
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r3.flagTypeErrorMessage.length > 0);
|
|
19075
19154
|
i0__namespace.ɵɵadvance(1);
|
|
19076
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$6,
|
|
19155
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$6, ctx_r3.flagTypeErrorMessage.length > 0))("name", ctx_r3.descriptionControlName)("formControlName", ctx_r3.descriptionControlName);
|
|
19077
19156
|
}
|
|
19078
19157
|
}
|
|
19079
|
-
function
|
|
19158
|
+
function SelectFlagTypeComponent_div_0_div_10_Template(rf, ctx) {
|
|
19080
19159
|
if (rf & 1) {
|
|
19081
|
-
var
|
|
19082
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
19083
|
-
i0__namespace.ɵɵelementStart(1, "button",
|
|
19084
|
-
i0__namespace.ɵɵlistener("click", function
|
|
19160
|
+
var _r9_1 = i0__namespace.ɵɵgetCurrentView();
|
|
19161
|
+
i0__namespace.ɵɵelementStart(0, "div", 21);
|
|
19162
|
+
i0__namespace.ɵɵelementStart(1, "button", 22);
|
|
19163
|
+
i0__namespace.ɵɵlistener("click", function SelectFlagTypeComponent_div_0_div_10_Template_button_click_1_listener() { i0__namespace.ɵɵrestoreView(_r9_1); var ctx_r8 = i0__namespace.ɵɵnextContext(2); return ctx_r8.onNext(); });
|
|
19085
19164
|
i0__namespace.ɵɵtext(2, "Next");
|
|
19086
19165
|
i0__namespace.ɵɵelementEnd();
|
|
19087
19166
|
i0__namespace.ɵɵelementEnd();
|
|
19088
19167
|
}
|
|
19089
19168
|
}
|
|
19169
|
+
function SelectFlagTypeComponent_div_0_Template(rf, ctx) {
|
|
19170
|
+
if (rf & 1) {
|
|
19171
|
+
i0__namespace.ɵɵelementStart(0, "div", 1);
|
|
19172
|
+
i0__namespace.ɵɵelementStart(1, "div", 2);
|
|
19173
|
+
i0__namespace.ɵɵelementStart(2, "fieldset", 3);
|
|
19174
|
+
i0__namespace.ɵɵelementStart(3, "legend", 4);
|
|
19175
|
+
i0__namespace.ɵɵelementStart(4, "h1", 5);
|
|
19176
|
+
i0__namespace.ɵɵtext(5);
|
|
19177
|
+
i0__namespace.ɵɵelementEnd();
|
|
19178
|
+
i0__namespace.ɵɵelementEnd();
|
|
19179
|
+
i0__namespace.ɵɵtemplate(6, SelectFlagTypeComponent_div_0_div_6_Template, 4, 1, "div", 6);
|
|
19180
|
+
i0__namespace.ɵɵelementStart(7, "div", 7);
|
|
19181
|
+
i0__namespace.ɵɵtemplate(8, SelectFlagTypeComponent_div_0_div_8_Template, 4, 6, "div", 8);
|
|
19182
|
+
i0__namespace.ɵɵtemplate(9, SelectFlagTypeComponent_div_0_div_9_Template, 6, 9, "div", 9);
|
|
19183
|
+
i0__namespace.ɵɵelementEnd();
|
|
19184
|
+
i0__namespace.ɵɵelementEnd();
|
|
19185
|
+
i0__namespace.ɵɵelementEnd();
|
|
19186
|
+
i0__namespace.ɵɵtemplate(10, SelectFlagTypeComponent_div_0_div_10_Template, 3, 0, "div", 10);
|
|
19187
|
+
i0__namespace.ɵɵelementEnd();
|
|
19188
|
+
}
|
|
19189
|
+
if (rf & 2) {
|
|
19190
|
+
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
19191
|
+
i0__namespace.ɵɵproperty("formGroup", ctx_r0.formGroup);
|
|
19192
|
+
i0__namespace.ɵɵadvance(1);
|
|
19193
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$q, ctx_r0.flagTypeNotSelectedErrorMessage.length > 0));
|
|
19194
|
+
i0__namespace.ɵɵadvance(4);
|
|
19195
|
+
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r0.caseFlagWizardStepTitle.SELECT_CASE_FLAG, " ");
|
|
19196
|
+
i0__namespace.ɵɵadvance(1);
|
|
19197
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r0.flagTypeNotSelectedErrorMessage.length > 0);
|
|
19198
|
+
i0__namespace.ɵɵadvance(2);
|
|
19199
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r0.flagTypes);
|
|
19200
|
+
i0__namespace.ɵɵadvance(1);
|
|
19201
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r0.otherFlagTypeSelected);
|
|
19202
|
+
i0__namespace.ɵɵadvance(1);
|
|
19203
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx_r0.refdataError);
|
|
19204
|
+
}
|
|
19205
|
+
}
|
|
19090
19206
|
var SelectFlagTypeComponent = /** @class */ (function () {
|
|
19091
19207
|
function SelectFlagTypeComponent(caseFlagRefdataService) {
|
|
19092
19208
|
this.caseFlagRefdataService = caseFlagRefdataService;
|
|
@@ -19094,7 +19210,6 @@
|
|
|
19094
19210
|
this.flagCommentsOptionalEmitter = new i0.EventEmitter();
|
|
19095
19211
|
this.flagTypeNotSelectedErrorMessage = '';
|
|
19096
19212
|
this.flagTypeErrorMessage = '';
|
|
19097
|
-
this.otherFlagTypeSelected = false;
|
|
19098
19213
|
this.refdataError = false;
|
|
19099
19214
|
this.flagTypeControlName = 'flagType';
|
|
19100
19215
|
this.descriptionControlName = 'otherFlagTypeDescription';
|
|
@@ -19110,16 +19225,48 @@
|
|
|
19110
19225
|
enumerable: false,
|
|
19111
19226
|
configurable: true
|
|
19112
19227
|
});
|
|
19228
|
+
Object.defineProperty(SelectFlagTypeComponent.prototype, "selectedFlagType", {
|
|
19229
|
+
get: function () {
|
|
19230
|
+
var _a;
|
|
19231
|
+
return (_a = this.formGroup.get(this.flagTypeControlName)) === null || _a === void 0 ? void 0 : _a.value;
|
|
19232
|
+
},
|
|
19233
|
+
enumerable: false,
|
|
19234
|
+
configurable: true
|
|
19235
|
+
});
|
|
19236
|
+
Object.defineProperty(SelectFlagTypeComponent.prototype, "otherFlagTypeSelected", {
|
|
19237
|
+
get: function () {
|
|
19238
|
+
var _a, _b;
|
|
19239
|
+
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;
|
|
19240
|
+
},
|
|
19241
|
+
enumerable: false,
|
|
19242
|
+
configurable: true
|
|
19243
|
+
});
|
|
19113
19244
|
SelectFlagTypeComponent.prototype.ngOnInit = function () {
|
|
19114
19245
|
var _this = this;
|
|
19115
19246
|
this.flagTypes = [];
|
|
19116
|
-
this.formGroup.addControl(this.flagTypeControlName, new i2.FormControl(''));
|
|
19117
|
-
this.formGroup.addControl(this.descriptionControlName, new i2.FormControl(''));
|
|
19118
19247
|
var flagType = this.formGroup['caseField']
|
|
19119
19248
|
&& this.formGroup['caseField'].id
|
|
19120
19249
|
&& this.formGroup['caseField'].id === this.caseLevelCaseFlagsFieldId
|
|
19121
19250
|
? exports.RefdataCaseFlagType.CASE
|
|
19122
19251
|
: exports.RefdataCaseFlagType.PARTY;
|
|
19252
|
+
if (!this.formGroup.get(this.flagTypeControlName)) {
|
|
19253
|
+
this.formGroup.addControl(this.flagTypeControlName, new i1$2.FormControl(''));
|
|
19254
|
+
}
|
|
19255
|
+
if (!this.formGroup.get(this.descriptionControlName)) {
|
|
19256
|
+
this.formGroup.addControl(this.descriptionControlName, new i1$2.FormControl(''));
|
|
19257
|
+
}
|
|
19258
|
+
// Should clear descriptionControlName if flagTypeControlName is changed
|
|
19259
|
+
this.flagTypeControlChangesSubscription = this.formGroup.get(this.flagTypeControlName).valueChanges
|
|
19260
|
+
.subscribe(function (value) {
|
|
19261
|
+
var _c;
|
|
19262
|
+
_this.formGroup.get(_this.descriptionControlName).setValue('');
|
|
19263
|
+
_this.cachedPath = [];
|
|
19264
|
+
// required to clear language interpreter
|
|
19265
|
+
_this.formGroup.patchValue((_c = {},
|
|
19266
|
+
_c[SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM] = '',
|
|
19267
|
+
_c[SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY] = '',
|
|
19268
|
+
_c));
|
|
19269
|
+
});
|
|
19123
19270
|
// HMCTS service code for a given jurisdiction is required to retrieve the relevant list of flag types
|
|
19124
19271
|
this.flagRefdata$ = this.caseFlagRefdataService.getHmctsServiceDetails(this.jurisdiction)
|
|
19125
19272
|
.pipe(
|
|
@@ -19132,6 +19279,15 @@
|
|
|
19132
19279
|
next: function (flagTypes) {
|
|
19133
19280
|
// First (and only) object in the returned array should be the top-level "Party" flag type
|
|
19134
19281
|
_this.flagTypes = flagTypes[0].childFlags;
|
|
19282
|
+
var formControl = _this.formGroup.get(_this.flagTypeControlName);
|
|
19283
|
+
if (formControl === null || formControl === void 0 ? void 0 : formControl.value) {
|
|
19284
|
+
// Cache Path based on existing flagCode -- needed for nested choices
|
|
19285
|
+
var _c = __read(FlagType.searchPathByFlagTypeObject(formControl.value, _this.flagTypes), 2), foundFlagType = _c[0], path = _c[1];
|
|
19286
|
+
_this.cachedPath = __spread(path, [
|
|
19287
|
+
foundFlagType
|
|
19288
|
+
]);
|
|
19289
|
+
formControl.setValue(_this.cachedPath[0], { emitEvent: false });
|
|
19290
|
+
}
|
|
19135
19291
|
},
|
|
19136
19292
|
error: function (error) {
|
|
19137
19293
|
_this.onRefdataError(error);
|
|
@@ -19139,16 +19295,14 @@
|
|
|
19139
19295
|
});
|
|
19140
19296
|
};
|
|
19141
19297
|
SelectFlagTypeComponent.prototype.ngOnDestroy = function () {
|
|
19298
|
+
var _a;
|
|
19142
19299
|
if (this.flagRefdata$) {
|
|
19143
19300
|
this.flagRefdata$.unsubscribe();
|
|
19144
19301
|
}
|
|
19145
|
-
|
|
19146
|
-
SelectFlagTypeComponent.prototype.onFlagTypeChanged = function (flagType) {
|
|
19147
|
-
this.selectedFlagType = flagType;
|
|
19148
|
-
// Display description textbox if 'Other' flag type is selected
|
|
19149
|
-
this.otherFlagTypeSelected = this.selectedFlagType.flagCode === this.otherFlagTypeCode;
|
|
19302
|
+
(_a = this.flagTypeControlChangesSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
19150
19303
|
};
|
|
19151
19304
|
SelectFlagTypeComponent.prototype.onNext = function () {
|
|
19305
|
+
var _a, _b;
|
|
19152
19306
|
// Validate form
|
|
19153
19307
|
this.validateForm();
|
|
19154
19308
|
// Return case flag field state, whether the selected flag type (if any) is a parent or not, error messages,
|
|
@@ -19157,14 +19311,6 @@
|
|
|
19157
19311
|
currentCaseFlagFieldState: exports.CaseFlagFieldState.FLAG_TYPE,
|
|
19158
19312
|
isParentFlagType: this.selectedFlagType ? this.selectedFlagType.isParent : null,
|
|
19159
19313
|
errorMessages: this.errorMessages,
|
|
19160
|
-
flagName: this.selectedFlagType ? this.selectedFlagType.name : null,
|
|
19161
|
-
flagPath: this.selectedFlagType ? this.selectedFlagType.Path.map(function (pathValue) { return Object.assign({ id: null, value: pathValue }); }) : null,
|
|
19162
|
-
hearingRelevantFlag: this.selectedFlagType ? this.selectedFlagType.hearingRelevant : null,
|
|
19163
|
-
flagCode: this.selectedFlagType ? this.selectedFlagType.flagCode : null,
|
|
19164
|
-
// Include the "list of values" (if any); currently applicable to language flag types
|
|
19165
|
-
listOfValues: this.selectedFlagType && this.selectedFlagType.listOfValues && this.selectedFlagType.listOfValues.length > 0
|
|
19166
|
-
? this.selectedFlagType.listOfValues
|
|
19167
|
-
: null
|
|
19168
19314
|
});
|
|
19169
19315
|
// Emit "flag comments optional" event if the user selects a flag type where comments are not mandatory
|
|
19170
19316
|
if (this.selectedFlagType && !this.selectedFlagType.flagComment) {
|
|
@@ -19173,8 +19319,8 @@
|
|
|
19173
19319
|
// If the selected flag type is a parent, load the list of child flag types and reset the current selection
|
|
19174
19320
|
if (this.selectedFlagType && this.selectedFlagType.isParent) {
|
|
19175
19321
|
this.flagTypes = this.selectedFlagType.childFlags;
|
|
19176
|
-
|
|
19177
|
-
this.
|
|
19322
|
+
(_a = this.cachedPath) === null || _a === void 0 ? void 0 : _a.shift();
|
|
19323
|
+
this.formGroup.get(this.flagTypeControlName).setValue(((_b = this.cachedPath) === null || _b === void 0 ? void 0 : _b.length) ? this.cachedPath[0] : null, { emitEvent: false });
|
|
19178
19324
|
}
|
|
19179
19325
|
};
|
|
19180
19326
|
SelectFlagTypeComponent.prototype.validateForm = function () {
|
|
@@ -19208,42 +19354,14 @@
|
|
|
19208
19354
|
return SelectFlagTypeComponent;
|
|
19209
19355
|
}());
|
|
19210
19356
|
SelectFlagTypeComponent.ɵfac = function SelectFlagTypeComponent_Factory(t) { return new (t || SelectFlagTypeComponent)(i0__namespace.ɵɵdirectiveInject(CaseFlagRefdataService)); };
|
|
19211
|
-
SelectFlagTypeComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: SelectFlagTypeComponent, selectors: [["ccd-select-flag-type"]], inputs: { formGroup: "formGroup", jurisdiction: "jurisdiction" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter", flagCommentsOptionalEmitter: "flagCommentsOptionalEmitter" }, decls:
|
|
19357
|
+
SelectFlagTypeComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: SelectFlagTypeComponent, selectors: [["ccd-select-flag-type"]], inputs: { formGroup: "formGroup", jurisdiction: "jurisdiction" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter", flagCommentsOptionalEmitter: "flagCommentsOptionalEmitter" }, decls: 1, vars: 1, consts: [["class", "form-group", 3, "formGroup", 4, "ngIf"], [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"], [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) {
|
|
19212
19358
|
if (rf & 1) {
|
|
19213
|
-
i0__namespace.ɵɵ
|
|
19214
|
-
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
19215
|
-
i0__namespace.ɵɵelementStart(2, "fieldset", 2);
|
|
19216
|
-
i0__namespace.ɵɵelementStart(3, "legend", 3);
|
|
19217
|
-
i0__namespace.ɵɵelementStart(4, "h1", 4);
|
|
19218
|
-
i0__namespace.ɵɵtext(5);
|
|
19219
|
-
i0__namespace.ɵɵelementEnd();
|
|
19220
|
-
i0__namespace.ɵɵelementEnd();
|
|
19221
|
-
i0__namespace.ɵɵtemplate(6, SelectFlagTypeComponent_div_6_Template, 4, 1, "div", 5);
|
|
19222
|
-
i0__namespace.ɵɵelementStart(7, "div", 6);
|
|
19223
|
-
i0__namespace.ɵɵtemplate(8, SelectFlagTypeComponent_div_8_Template, 4, 6, "div", 7);
|
|
19224
|
-
i0__namespace.ɵɵtemplate(9, SelectFlagTypeComponent_div_9_Template, 6, 9, "div", 8);
|
|
19225
|
-
i0__namespace.ɵɵelementEnd();
|
|
19226
|
-
i0__namespace.ɵɵelementEnd();
|
|
19227
|
-
i0__namespace.ɵɵelementEnd();
|
|
19228
|
-
i0__namespace.ɵɵtemplate(10, SelectFlagTypeComponent_div_10_Template, 3, 0, "div", 9);
|
|
19229
|
-
i0__namespace.ɵɵelementEnd();
|
|
19359
|
+
i0__namespace.ɵɵtemplate(0, SelectFlagTypeComponent_div_0_Template, 11, 9, "div", 0);
|
|
19230
19360
|
}
|
|
19231
19361
|
if (rf & 2) {
|
|
19232
|
-
i0__namespace.ɵɵproperty("
|
|
19233
|
-
i0__namespace.ɵɵadvance(1);
|
|
19234
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$q, ctx.flagTypeNotSelectedErrorMessage.length > 0));
|
|
19235
|
-
i0__namespace.ɵɵadvance(4);
|
|
19236
|
-
i0__namespace.ɵɵtextInterpolate1(" ", ctx.caseFlagWizardStepTitle.SELECT_CASE_FLAG, " ");
|
|
19237
|
-
i0__namespace.ɵɵadvance(1);
|
|
19238
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.flagTypeNotSelectedErrorMessage.length > 0);
|
|
19239
|
-
i0__namespace.ɵɵadvance(2);
|
|
19240
|
-
i0__namespace.ɵɵproperty("ngForOf", ctx.flagTypes);
|
|
19241
|
-
i0__namespace.ɵɵadvance(1);
|
|
19242
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.otherFlagTypeSelected);
|
|
19243
|
-
i0__namespace.ɵɵadvance(1);
|
|
19244
|
-
i0__namespace.ɵɵproperty("ngIf", !ctx.refdataError);
|
|
19362
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.flagTypes == null ? null : ctx.flagTypes.length);
|
|
19245
19363
|
}
|
|
19246
|
-
}, directives: [
|
|
19364
|
+
}, directives: [i1__namespace.NgIf, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgForOf, i1__namespace$3.RadioControlValueAccessor, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlName], styles: [".hidden[_ngcontent-%COMP%]{display:none}.validation-error[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:#d4351c}"] });
|
|
19247
19365
|
(function () {
|
|
19248
19366
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SelectFlagTypeComponent, [{
|
|
19249
19367
|
type: i0.Component,
|
|
@@ -19368,15 +19486,14 @@
|
|
|
19368
19486
|
i0__namespace.ɵɵadvance(1);
|
|
19369
19487
|
i0__namespace.ɵɵproperty("ngIf", ctx_r5.languageCharLimitErrorMessage);
|
|
19370
19488
|
i0__namespace.ɵɵadvance(1);
|
|
19371
|
-
i0__namespace.ɵɵproperty("name", ctx_r5.
|
|
19489
|
+
i0__namespace.ɵɵproperty("name", ctx_r5.SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY)("formControlName", ctx_r5.SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY);
|
|
19372
19490
|
}
|
|
19373
19491
|
}
|
|
19374
19492
|
var SearchLanguageInterpreterComponent = /** @class */ (function () {
|
|
19375
19493
|
function SearchLanguageInterpreterComponent() {
|
|
19494
|
+
this.SearchLanguageInterpreterControlNames = SearchLanguageInterpreterControlNames;
|
|
19376
19495
|
this.caseFlagStateEmitter = new i0.EventEmitter();
|
|
19377
19496
|
this.minSearchCharacters = 3;
|
|
19378
|
-
this.languageSearchTermControlName = 'languageSearchTerm';
|
|
19379
|
-
this.manualLanguageEntryControlName = 'manualLanguageEntry';
|
|
19380
19497
|
this.searchTerm = '';
|
|
19381
19498
|
this.isCheckboxEnabled = false;
|
|
19382
19499
|
this.errorMessages = [];
|
|
@@ -19403,9 +19520,9 @@
|
|
|
19403
19520
|
this.searchLanguageInterpreterHint = this.flagCode === this.signLanguageFlagCode
|
|
19404
19521
|
? exports.SearchLanguageInterpreterStep.SIGN_HINT_TEXT
|
|
19405
19522
|
: exports.SearchLanguageInterpreterStep.HINT_TEXT;
|
|
19406
|
-
this.formGroup.addControl(
|
|
19407
|
-
this.formGroup.addControl(
|
|
19408
|
-
this.filteredLanguages$ = this.formGroup.get(
|
|
19523
|
+
this.formGroup.addControl(SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM, new i1$2.FormControl());
|
|
19524
|
+
this.formGroup.addControl(SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY, new i1$2.FormControl());
|
|
19525
|
+
this.filteredLanguages$ = this.formGroup.get(SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM).valueChanges.pipe(
|
|
19409
19526
|
// Need to check type of input because it changes to object (i.e. Language) when a value is selected from the
|
|
19410
19527
|
// autocomplete panel, instead of string when a value is being typed in
|
|
19411
19528
|
operators.map(function (input) { return typeof input === 'string' ? input : input.value; }), operators.map(function (searchTerm) {
|
|
@@ -19428,7 +19545,7 @@
|
|
|
19428
19545
|
// If the checkbox is disabled, i.e. unchecked, then clear the manual language entry FormControl of any value to
|
|
19429
19546
|
// prevent it being retained even when the field itself is hidden
|
|
19430
19547
|
if (!this.isCheckboxEnabled) {
|
|
19431
|
-
this.formGroup.get(
|
|
19548
|
+
this.formGroup.get(SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY).setValue(null);
|
|
19432
19549
|
}
|
|
19433
19550
|
};
|
|
19434
19551
|
SearchLanguageInterpreterComponent.prototype.displayLanguage = function (language) {
|
|
@@ -19441,39 +19558,39 @@
|
|
|
19441
19558
|
this.languageEnteredInBothFieldsErrorMessage = null;
|
|
19442
19559
|
this.errorMessages = [];
|
|
19443
19560
|
// Checkbox not enabled means the user has opted to search for and select the language
|
|
19444
|
-
if (!this.isCheckboxEnabled && !this.formGroup.get(
|
|
19561
|
+
if (!this.isCheckboxEnabled && !this.formGroup.get(SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM).value) {
|
|
19445
19562
|
this.languageNotSelectedErrorMessage = exports.SearchLanguageInterpreterErrorMessage.LANGUAGE_NOT_ENTERED;
|
|
19446
19563
|
this.errorMessages.push({
|
|
19447
19564
|
title: '',
|
|
19448
19565
|
description: exports.SearchLanguageInterpreterErrorMessage.LANGUAGE_NOT_ENTERED,
|
|
19449
|
-
fieldId:
|
|
19566
|
+
fieldId: SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM
|
|
19450
19567
|
});
|
|
19451
19568
|
}
|
|
19452
19569
|
// Checkbox enabled means the user has opted to enter the language manually
|
|
19453
19570
|
if (this.isCheckboxEnabled) {
|
|
19454
|
-
if (!this.formGroup.get(
|
|
19571
|
+
if (!this.formGroup.get(SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY).value) {
|
|
19455
19572
|
this.languageNotEnteredErrorMessage = exports.SearchLanguageInterpreterErrorMessage.LANGUAGE_NOT_ENTERED;
|
|
19456
19573
|
this.errorMessages.push({
|
|
19457
19574
|
title: '',
|
|
19458
19575
|
description: exports.SearchLanguageInterpreterErrorMessage.LANGUAGE_NOT_ENTERED,
|
|
19459
|
-
fieldId:
|
|
19576
|
+
fieldId: SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY
|
|
19460
19577
|
});
|
|
19461
19578
|
}
|
|
19462
|
-
else if (this.formGroup.get(
|
|
19579
|
+
else if (this.formGroup.get(SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY).value.length > this.languageMaxCharLimit) {
|
|
19463
19580
|
this.languageCharLimitErrorMessage = exports.SearchLanguageInterpreterErrorMessage.LANGUAGE_CHAR_LIMIT_EXCEEDED;
|
|
19464
19581
|
this.errorMessages.push({
|
|
19465
19582
|
title: '',
|
|
19466
19583
|
description: exports.SearchLanguageInterpreterErrorMessage.LANGUAGE_CHAR_LIMIT_EXCEEDED,
|
|
19467
|
-
fieldId:
|
|
19584
|
+
fieldId: SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY
|
|
19468
19585
|
});
|
|
19469
19586
|
}
|
|
19470
|
-
else if (this.formGroup.get(
|
|
19587
|
+
else if (this.formGroup.get(SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM).value) {
|
|
19471
19588
|
// Language entry is permitted in only one field at a time
|
|
19472
19589
|
this.languageEnteredInBothFieldsErrorMessage = exports.SearchLanguageInterpreterErrorMessage.LANGUAGE_ENTERED_IN_BOTH_FIELDS;
|
|
19473
19590
|
this.errorMessages.push({
|
|
19474
19591
|
title: '',
|
|
19475
19592
|
description: exports.SearchLanguageInterpreterErrorMessage.LANGUAGE_ENTERED_IN_BOTH_FIELDS,
|
|
19476
|
-
fieldId:
|
|
19593
|
+
fieldId: SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM
|
|
19477
19594
|
});
|
|
19478
19595
|
}
|
|
19479
19596
|
}
|
|
@@ -19537,7 +19654,7 @@
|
|
|
19537
19654
|
i0__namespace.ɵɵadvance(1);
|
|
19538
19655
|
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(16, _c0$p, ctx.languageNotSelectedErrorMessage || ctx.languageEnteredInBothFieldsErrorMessage));
|
|
19539
19656
|
i0__namespace.ɵɵadvance(2);
|
|
19540
|
-
i0__namespace.ɵɵproperty("for", ctx.
|
|
19657
|
+
i0__namespace.ɵɵproperty("for", ctx.SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM);
|
|
19541
19658
|
i0__namespace.ɵɵadvance(1);
|
|
19542
19659
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx.searchLanguageInterpreterTitle, " ");
|
|
19543
19660
|
i0__namespace.ɵɵadvance(2);
|
|
@@ -19547,7 +19664,7 @@
|
|
|
19547
19664
|
i0__namespace.ɵɵadvance(1);
|
|
19548
19665
|
i0__namespace.ɵɵproperty("ngIf", ctx.languageEnteredInBothFieldsErrorMessage);
|
|
19549
19666
|
i0__namespace.ɵɵadvance(1);
|
|
19550
|
-
i0__namespace.ɵɵproperty("formControlName", ctx.
|
|
19667
|
+
i0__namespace.ɵɵproperty("formControlName", ctx.SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM)("matAutocomplete", _r2);
|
|
19551
19668
|
i0__namespace.ɵɵadvance(1);
|
|
19552
19669
|
i0__namespace.ɵɵproperty("displayWith", ctx.displayLanguage);
|
|
19553
19670
|
i0__namespace.ɵɵadvance(2);
|
|
@@ -19559,7 +19676,7 @@
|
|
|
19559
19676
|
i0__namespace.ɵɵadvance(1);
|
|
19560
19677
|
i0__namespace.ɵɵproperty("ngIf", ctx.isCheckboxEnabled);
|
|
19561
19678
|
}
|
|
19562
|
-
}, directives: [
|
|
19679
|
+
}, directives: [i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgIf, i3__namespace$1.MatInput, i1__namespace$3.DefaultValueAccessor, i5__namespace.MatAutocompleteTrigger, i1__namespace$3.NgControlStatus, i1__namespace$3.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}"] });
|
|
19563
19680
|
(function () {
|
|
19564
19681
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SearchLanguageInterpreterComponent, [{
|
|
19565
19682
|
type: i0.Component,
|
|
@@ -19691,7 +19808,14 @@
|
|
|
19691
19808
|
}
|
|
19692
19809
|
// Add a FormControl for the selected flag location if there is at least one flags instance remaining after filtering
|
|
19693
19810
|
if (this.filteredFlagsData && this.filteredFlagsData.length > 0) {
|
|
19694
|
-
this.formGroup.
|
|
19811
|
+
var formControl_1 = this.formGroup.get(this.selectedLocationControlName);
|
|
19812
|
+
if (!formControl_1) {
|
|
19813
|
+
this.formGroup.addControl(this.selectedLocationControlName, new i1$2.FormControl(null));
|
|
19814
|
+
}
|
|
19815
|
+
else {
|
|
19816
|
+
// Needs to be setValue as they have different object references -- we use the pathToFlagsFormGroup key
|
|
19817
|
+
formControl_1.setValue(this.filteredFlagsData.find(function (item) { return item.pathToFlagsFormGroup === formControl_1.value.pathToFlagsFormGroup; }));
|
|
19818
|
+
}
|
|
19695
19819
|
}
|
|
19696
19820
|
else {
|
|
19697
19821
|
// No filtered flags instances mean there are no parties to select from. The case has not been configured properly
|
|
@@ -19708,9 +19832,6 @@
|
|
|
19708
19832
|
this.caseFlagStateEmitter.emit({
|
|
19709
19833
|
currentCaseFlagFieldState: exports.CaseFlagFieldState.FLAG_LOCATION,
|
|
19710
19834
|
errorMessages: this.errorMessages,
|
|
19711
|
-
selectedFlagsLocation: this.formGroup.get(this.selectedLocationControlName).value
|
|
19712
|
-
? this.formGroup.get(this.selectedLocationControlName).value
|
|
19713
|
-
: null
|
|
19714
19835
|
});
|
|
19715
19836
|
};
|
|
19716
19837
|
SelectFlagLocationComponent.prototype.validateSelection = function () {
|
|
@@ -19768,7 +19889,7 @@
|
|
|
19768
19889
|
i0__namespace.ɵɵadvance(1);
|
|
19769
19890
|
i0__namespace.ɵɵproperty("ngIf", !ctx.caseFlagsConfigError);
|
|
19770
19891
|
}
|
|
19771
|
-
}, directives: [
|
|
19892
|
+
}, directives: [i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$3.RadioControlValueAccessor, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlName], encapsulation: 2 });
|
|
19772
19893
|
(function () {
|
|
19773
19894
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SelectFlagLocationComponent, [{
|
|
19774
19895
|
type: i0.Component,
|
|
@@ -19837,7 +19958,9 @@
|
|
|
19837
19958
|
this.addCommentsTitle = exports.CaseFlagWizardStepTitle.ADD_FLAG_COMMENTS;
|
|
19838
19959
|
this.addCommentsHint = exports.AddCommentsStep.HINT_TEXT;
|
|
19839
19960
|
this.addCommentsCharLimitInfo = exports.AddCommentsStep.CHARACTER_LIMIT_INFO;
|
|
19840
|
-
this.formGroup.
|
|
19961
|
+
if (!this.formGroup.get(this.flagCommentsControlName)) {
|
|
19962
|
+
this.formGroup.addControl(this.flagCommentsControlName, new i1$2.FormControl(''));
|
|
19963
|
+
}
|
|
19841
19964
|
};
|
|
19842
19965
|
AddCommentsComponent.prototype.onNext = function () {
|
|
19843
19966
|
// Validate flag comments entry
|
|
@@ -19921,7 +20044,7 @@
|
|
|
19921
20044
|
i0__namespace.ɵɵadvance(2);
|
|
19922
20045
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx.addCommentsCharLimitInfo, " ");
|
|
19923
20046
|
}
|
|
19924
|
-
}, directives: [
|
|
20047
|
+
}, directives: [i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlName], encapsulation: 2 });
|
|
19925
20048
|
(function () {
|
|
19926
20049
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(AddCommentsComponent, [{
|
|
19927
20050
|
type: i0.Component,
|
|
@@ -20009,7 +20132,7 @@
|
|
|
20009
20132
|
}
|
|
20010
20133
|
// Add a FormControl for the selected case flag if there is at least one flags instance remaining after mapping
|
|
20011
20134
|
if (this.flagsDisplayData && this.flagsDisplayData.length > 0) {
|
|
20012
|
-
this.formGroup.addControl(this.selectedControlName, new
|
|
20135
|
+
this.formGroup.addControl(this.selectedControlName, new i1$2.FormControl(null));
|
|
20013
20136
|
}
|
|
20014
20137
|
else {
|
|
20015
20138
|
// No flags display data means there are no flags to select from. The user cannot proceed with a flag update.
|
|
@@ -20153,7 +20276,7 @@
|
|
|
20153
20276
|
i0__namespace.ɵɵadvance(1);
|
|
20154
20277
|
i0__namespace.ɵɵproperty("ngIf", !ctx.noFlagsError);
|
|
20155
20278
|
}
|
|
20156
|
-
}, directives: [
|
|
20279
|
+
}, directives: [i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$3.RadioControlValueAccessor, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlName], styles: [".flag-name-and-description{font-weight:700}"], encapsulation: 2 });
|
|
20157
20280
|
(function () {
|
|
20158
20281
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ManageCaseFlagsComponent, [{
|
|
20159
20282
|
type: i0.Component,
|
|
@@ -20244,11 +20367,11 @@
|
|
|
20244
20367
|
UpdateFlagComponent.prototype.ngOnInit = function () {
|
|
20245
20368
|
if (this.selectedFlag && this.selectedFlag.flagDetailDisplay && this.selectedFlag.flagDetailDisplay.flagDetail) {
|
|
20246
20369
|
var flagDetail = this.selectedFlag.flagDetailDisplay.flagDetail;
|
|
20247
|
-
this.formGroup.addControl(this.FLAG_STATUS_CONTROL_NAME, new
|
|
20248
|
-
this.formGroup.addControl(this.FLAG_STATUS_CHANGE_REASON_CONTROL_NAME, new
|
|
20249
|
-
this.formGroup.addControl(this.FLAG_WELSH_TRANSLATION_CONTROL_NAME, new
|
|
20370
|
+
this.formGroup.addControl(this.FLAG_STATUS_CONTROL_NAME, new i1$2.FormControl(flagDetail.status));
|
|
20371
|
+
this.formGroup.addControl(this.FLAG_STATUS_CHANGE_REASON_CONTROL_NAME, new i1$2.FormControl(''));
|
|
20372
|
+
this.formGroup.addControl(this.FLAG_WELSH_TRANSLATION_CONTROL_NAME, new i1$2.FormControl(false));
|
|
20250
20373
|
// Populate flag comments text area with existing comments
|
|
20251
|
-
this.formGroup.addControl(this.FLAG_COMMENTS_CONTROL_NAME, new
|
|
20374
|
+
this.formGroup.addControl(this.FLAG_COMMENTS_CONTROL_NAME, new i1$2.FormControl(flagDetail.flagComment));
|
|
20252
20375
|
if (flagDetail.name) {
|
|
20253
20376
|
this.updateFlagTitle =
|
|
20254
20377
|
exports.CaseFlagWizardStepTitle.UPDATE_FLAG_TITLE + " \"" + flagDetail.name + (flagDetail.subTypeValue ? ", " + flagDetail.subTypeValue + "\"" : '"');
|
|
@@ -20399,7 +20522,7 @@
|
|
|
20399
20522
|
i0__namespace.ɵɵadvance(1);
|
|
20400
20523
|
i0__namespace.ɵɵproperty("for", ctx.FLAG_WELSH_TRANSLATION_CONTROL_NAME);
|
|
20401
20524
|
}
|
|
20402
|
-
}, directives: [
|
|
20525
|
+
}, directives: [i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlName, i1__namespace.NgForOf], pipes: [EnumDisplayDescriptionPipe, i1__namespace.LowerCasePipe], encapsulation: 2 });
|
|
20403
20526
|
(function () {
|
|
20404
20527
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(UpdateFlagComponent, [{
|
|
20405
20528
|
type: i0.Component,
|
|
@@ -20416,7 +20539,49 @@
|
|
|
20416
20539
|
}] });
|
|
20417
20540
|
})();
|
|
20418
20541
|
|
|
20419
|
-
function
|
|
20542
|
+
function CaseFlagSummaryListComponent_dl_0_dd_6_Template(rf, ctx) {
|
|
20543
|
+
if (rf & 1) {
|
|
20544
|
+
var _r6_1 = i0__namespace.ɵɵgetCurrentView();
|
|
20545
|
+
i0__namespace.ɵɵelementStart(0, "dd", 7);
|
|
20546
|
+
i0__namespace.ɵɵelementStart(1, "a", 8);
|
|
20547
|
+
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); });
|
|
20548
|
+
i0__namespace.ɵɵtext(2, " Change");
|
|
20549
|
+
i0__namespace.ɵɵelementStart(3, "span", 9);
|
|
20550
|
+
i0__namespace.ɵɵtext(4, " party name");
|
|
20551
|
+
i0__namespace.ɵɵelementEnd();
|
|
20552
|
+
i0__namespace.ɵɵelementEnd();
|
|
20553
|
+
i0__namespace.ɵɵelementEnd();
|
|
20554
|
+
}
|
|
20555
|
+
}
|
|
20556
|
+
function CaseFlagSummaryListComponent_dl_0_dd_12_Template(rf, ctx) {
|
|
20557
|
+
if (rf & 1) {
|
|
20558
|
+
var _r8_1 = i0__namespace.ɵɵgetCurrentView();
|
|
20559
|
+
i0__namespace.ɵɵelementStart(0, "dd", 7);
|
|
20560
|
+
i0__namespace.ɵɵelementStart(1, "a", 8);
|
|
20561
|
+
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); });
|
|
20562
|
+
i0__namespace.ɵɵtext(2, " Change");
|
|
20563
|
+
i0__namespace.ɵɵelementStart(3, "span", 9);
|
|
20564
|
+
i0__namespace.ɵɵtext(4, " description");
|
|
20565
|
+
i0__namespace.ɵɵelementEnd();
|
|
20566
|
+
i0__namespace.ɵɵelementEnd();
|
|
20567
|
+
i0__namespace.ɵɵelementEnd();
|
|
20568
|
+
}
|
|
20569
|
+
}
|
|
20570
|
+
function CaseFlagSummaryListComponent_dl_0_dd_18_Template(rf, ctx) {
|
|
20571
|
+
if (rf & 1) {
|
|
20572
|
+
var _r10_1 = i0__namespace.ɵɵgetCurrentView();
|
|
20573
|
+
i0__namespace.ɵɵelementStart(0, "dd", 7);
|
|
20574
|
+
i0__namespace.ɵɵelementStart(1, "a", 8);
|
|
20575
|
+
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); });
|
|
20576
|
+
i0__namespace.ɵɵtext(2, " Change");
|
|
20577
|
+
i0__namespace.ɵɵelementStart(3, "span", 9);
|
|
20578
|
+
i0__namespace.ɵɵtext(4, " comments");
|
|
20579
|
+
i0__namespace.ɵɵelementEnd();
|
|
20580
|
+
i0__namespace.ɵɵelementEnd();
|
|
20581
|
+
i0__namespace.ɵɵelementEnd();
|
|
20582
|
+
}
|
|
20583
|
+
}
|
|
20584
|
+
function CaseFlagSummaryListComponent_dl_0_div_19_Template(rf, ctx) {
|
|
20420
20585
|
if (rf & 1) {
|
|
20421
20586
|
i0__namespace.ɵɵelementStart(0, "div", 2);
|
|
20422
20587
|
i0__namespace.ɵɵelementStart(1, "dt", 3);
|
|
@@ -20425,12 +20590,13 @@
|
|
|
20425
20590
|
i0__namespace.ɵɵelementStart(3, "dd", 4);
|
|
20426
20591
|
i0__namespace.ɵɵtext(4);
|
|
20427
20592
|
i0__namespace.ɵɵelementEnd();
|
|
20593
|
+
i0__namespace.ɵɵelement(5, "dd", 7);
|
|
20428
20594
|
i0__namespace.ɵɵelementEnd();
|
|
20429
20595
|
}
|
|
20430
20596
|
if (rf & 2) {
|
|
20431
|
-
var
|
|
20597
|
+
var ctx_r4 = i0__namespace.ɵɵnextContext(2);
|
|
20432
20598
|
i0__namespace.ɵɵadvance(4);
|
|
20433
|
-
i0__namespace.ɵɵtextInterpolate1(" ",
|
|
20599
|
+
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r4.flagStatus, " ");
|
|
20434
20600
|
}
|
|
20435
20601
|
}
|
|
20436
20602
|
function CaseFlagSummaryListComponent_dl_0_Template(rf, ctx) {
|
|
@@ -20443,24 +20609,27 @@
|
|
|
20443
20609
|
i0__namespace.ɵɵelementStart(4, "dd", 4);
|
|
20444
20610
|
i0__namespace.ɵɵtext(5);
|
|
20445
20611
|
i0__namespace.ɵɵelementEnd();
|
|
20612
|
+
i0__namespace.ɵɵtemplate(6, CaseFlagSummaryListComponent_dl_0_dd_6_Template, 5, 0, "dd", 5);
|
|
20446
20613
|
i0__namespace.ɵɵelementEnd();
|
|
20447
|
-
i0__namespace.ɵɵelementStart(
|
|
20448
|
-
i0__namespace.ɵɵelementStart(
|
|
20449
|
-
i0__namespace.ɵɵtext(
|
|
20614
|
+
i0__namespace.ɵɵelementStart(7, "div", 2);
|
|
20615
|
+
i0__namespace.ɵɵelementStart(8, "dt", 3);
|
|
20616
|
+
i0__namespace.ɵɵtext(9, " Flag type ");
|
|
20450
20617
|
i0__namespace.ɵɵelementEnd();
|
|
20451
|
-
i0__namespace.ɵɵelementStart(
|
|
20452
|
-
i0__namespace.ɵɵtext(
|
|
20618
|
+
i0__namespace.ɵɵelementStart(10, "dd", 4);
|
|
20619
|
+
i0__namespace.ɵɵtext(11);
|
|
20453
20620
|
i0__namespace.ɵɵelementEnd();
|
|
20621
|
+
i0__namespace.ɵɵtemplate(12, CaseFlagSummaryListComponent_dl_0_dd_12_Template, 5, 0, "dd", 5);
|
|
20454
20622
|
i0__namespace.ɵɵelementEnd();
|
|
20455
|
-
i0__namespace.ɵɵelementStart(
|
|
20456
|
-
i0__namespace.ɵɵelementStart(
|
|
20457
|
-
i0__namespace.ɵɵtext(
|
|
20623
|
+
i0__namespace.ɵɵelementStart(13, "div", 2);
|
|
20624
|
+
i0__namespace.ɵɵelementStart(14, "dt", 3);
|
|
20625
|
+
i0__namespace.ɵɵtext(15, " Comments ");
|
|
20458
20626
|
i0__namespace.ɵɵelementEnd();
|
|
20459
|
-
i0__namespace.ɵɵelementStart(
|
|
20460
|
-
i0__namespace.ɵɵtext(
|
|
20627
|
+
i0__namespace.ɵɵelementStart(16, "dd", 4);
|
|
20628
|
+
i0__namespace.ɵɵtext(17);
|
|
20461
20629
|
i0__namespace.ɵɵelementEnd();
|
|
20630
|
+
i0__namespace.ɵɵtemplate(18, CaseFlagSummaryListComponent_dl_0_dd_18_Template, 5, 0, "dd", 5);
|
|
20462
20631
|
i0__namespace.ɵɵelementEnd();
|
|
20463
|
-
i0__namespace.ɵɵtemplate(
|
|
20632
|
+
i0__namespace.ɵɵtemplate(19, CaseFlagSummaryListComponent_dl_0_div_19_Template, 6, 1, "div", 6);
|
|
20464
20633
|
i0__namespace.ɵɵelementEnd();
|
|
20465
20634
|
}
|
|
20466
20635
|
if (rf & 2) {
|
|
@@ -20469,17 +20638,25 @@
|
|
|
20469
20638
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r0.addUpdateFlagHeaderText, " ");
|
|
20470
20639
|
i0__namespace.ɵɵadvance(2);
|
|
20471
20640
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r0.flagForSummaryDisplay.partyName || ctx_r0.caseLevelLocation, " ");
|
|
20641
|
+
i0__namespace.ɵɵadvance(1);
|
|
20642
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r0.summaryListDisplayMode === ctx_r0.displayMode.CREATE);
|
|
20472
20643
|
i0__namespace.ɵɵadvance(5);
|
|
20473
20644
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r0.flagDescription, " ");
|
|
20645
|
+
i0__namespace.ɵɵadvance(1);
|
|
20646
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r0.summaryListDisplayMode === ctx_r0.displayMode.CREATE);
|
|
20474
20647
|
i0__namespace.ɵɵadvance(5);
|
|
20475
20648
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r0.flagComments, " ");
|
|
20476
20649
|
i0__namespace.ɵɵadvance(1);
|
|
20650
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r0.summaryListDisplayMode === ctx_r0.displayMode.CREATE);
|
|
20651
|
+
i0__namespace.ɵɵadvance(1);
|
|
20477
20652
|
i0__namespace.ɵɵproperty("ngIf", ctx_r0.summaryListDisplayMode === ctx_r0.displayMode.MANAGE);
|
|
20478
20653
|
}
|
|
20479
20654
|
}
|
|
20480
20655
|
var CaseFlagSummaryListComponent = /** @class */ (function () {
|
|
20481
20656
|
function CaseFlagSummaryListComponent() {
|
|
20657
|
+
this.changeButtonEmitter = new i0.EventEmitter();
|
|
20482
20658
|
this.displayMode = exports.CaseFlagSummaryListDisplayMode;
|
|
20659
|
+
this.CaseFlagFieldState = exports.CaseFlagFieldState;
|
|
20483
20660
|
this.caseLevelLocation = 'Case level';
|
|
20484
20661
|
this.updateFlagHeaderText = 'Update flag for';
|
|
20485
20662
|
this.addFlagHeaderText = 'Add flag to';
|
|
@@ -20499,9 +20676,9 @@
|
|
|
20499
20676
|
return CaseFlagSummaryListComponent;
|
|
20500
20677
|
}());
|
|
20501
20678
|
CaseFlagSummaryListComponent.ɵfac = function CaseFlagSummaryListComponent_Factory(t) { return new (t || CaseFlagSummaryListComponent)(); };
|
|
20502
|
-
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) {
|
|
20679
|
+
CaseFlagSummaryListComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFlagSummaryListComponent, selectors: [["ccd-case-flag-summary-list"]], inputs: { flagForSummaryDisplay: "flagForSummaryDisplay", summaryListDisplayMode: "summaryListDisplayMode" }, outputs: { changeButtonEmitter: "changeButtonEmitter" }, 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__actions", 4, "ngIf"], ["class", "govuk-summary-list__row", 4, "ngIf"], [1, "govuk-summary-list__actions"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "govuk-visually-hidden"]], template: function CaseFlagSummaryListComponent_Template(rf, ctx) {
|
|
20503
20680
|
if (rf & 1) {
|
|
20504
|
-
i0__namespace.ɵɵtemplate(0, CaseFlagSummaryListComponent_dl_0_Template,
|
|
20681
|
+
i0__namespace.ɵɵtemplate(0, CaseFlagSummaryListComponent_dl_0_Template, 20, 8, "dl", 0);
|
|
20505
20682
|
}
|
|
20506
20683
|
if (rf & 2) {
|
|
20507
20684
|
i0__namespace.ɵɵproperty("ngIf", ctx.flagForSummaryDisplay);
|
|
@@ -20518,6 +20695,8 @@
|
|
|
20518
20695
|
type: i0.Input
|
|
20519
20696
|
}], summaryListDisplayMode: [{
|
|
20520
20697
|
type: i0.Input
|
|
20698
|
+
}], changeButtonEmitter: [{
|
|
20699
|
+
type: i0.Output
|
|
20521
20700
|
}] });
|
|
20522
20701
|
})();
|
|
20523
20702
|
|
|
@@ -21282,7 +21461,7 @@
|
|
|
21282
21461
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
21283
21462
|
}
|
|
21284
21463
|
WriteDateFieldComponent.prototype.ngOnInit = function () {
|
|
21285
|
-
this.dateControl = this.registerControl(new
|
|
21464
|
+
this.dateControl = this.registerControl(new i1$2.FormControl(this.caseField.value));
|
|
21286
21465
|
};
|
|
21287
21466
|
WriteDateFieldComponent.prototype.isDateTime = function () {
|
|
21288
21467
|
return this.caseField.field_type.id === 'DateTime';
|
|
@@ -21315,7 +21494,7 @@
|
|
|
21315
21494
|
i0__namespace.ɵɵadvance(1);
|
|
21316
21495
|
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);
|
|
21317
21496
|
}
|
|
21318
|
-
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, DateInputComponent,
|
|
21497
|
+
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, DateInputComponent, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective], pipes: [IsMandatoryPipe, FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
21319
21498
|
var ɵWriteDateFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteDateFieldComponent);
|
|
21320
21499
|
(function () {
|
|
21321
21500
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteDateFieldComponent, [{
|
|
@@ -21417,7 +21596,7 @@
|
|
|
21417
21596
|
_this.stringEdited = false;
|
|
21418
21597
|
_this.minError = false;
|
|
21419
21598
|
_this.maxError = false;
|
|
21420
|
-
_this.dateControl = new
|
|
21599
|
+
_this.dateControl = new i1$2.FormControl(new Date());
|
|
21421
21600
|
_this.minimumDate = new Date('01/01/1800');
|
|
21422
21601
|
_this.maximumDate = null;
|
|
21423
21602
|
_this.momentFormat = 'YYYY-MM-DDTHH:mm:ss.SSS';
|
|
@@ -21429,8 +21608,8 @@
|
|
|
21429
21608
|
this.configureDatePicker(this.dateTimeEntryFormat);
|
|
21430
21609
|
// set date control based on mandatory field
|
|
21431
21610
|
this.dateControl = (this.caseField.isMandatory ?
|
|
21432
|
-
this.registerControl(new
|
|
21433
|
-
: this.registerControl(new
|
|
21611
|
+
this.registerControl(new i1$2.FormControl(this.caseField.value || '', [i1$2.Validators.required]))
|
|
21612
|
+
: this.registerControl(new i1$2.FormControl(this.caseField.value)));
|
|
21434
21613
|
// in resetting the format just after the page initialises, the input can be reformatted
|
|
21435
21614
|
// otherwise the last format given will be how the text shown will be displayed
|
|
21436
21615
|
setTimeout(function () {
|
|
@@ -21618,7 +21797,7 @@
|
|
|
21618
21797
|
i0__namespace.ɵɵadvance(1);
|
|
21619
21798
|
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);
|
|
21620
21799
|
}
|
|
21621
|
-
}, 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 });
|
|
21800
|
+
}, 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 });
|
|
21622
21801
|
(function () {
|
|
21623
21802
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(DatetimePickerComponent, [{
|
|
21624
21803
|
type: i0.Component,
|
|
@@ -22198,7 +22377,7 @@
|
|
|
22198
22377
|
i0__namespace.ɵɵadvance(1);
|
|
22199
22378
|
i0__namespace.ɵɵproperty("innerHTML", i0__namespace.ɵɵpipeBind1(2, 1, ctx.content), i0__namespace.ɵɵsanitizeHtml);
|
|
22200
22379
|
}
|
|
22201
|
-
}, directives: [i1__namespace$
|
|
22380
|
+
}, directives: [i1__namespace$6.NgxMdComponent], pipes: [CaseReferencePipe], encapsulation: 2 });
|
|
22202
22381
|
(function () {
|
|
22203
22382
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(MarkdownComponent, [{
|
|
22204
22383
|
type: i0.Component,
|
|
@@ -22625,8 +22804,8 @@
|
|
|
22625
22804
|
], imports: [[
|
|
22626
22805
|
i1.CommonModule,
|
|
22627
22806
|
i1$1.RouterModule,
|
|
22628
|
-
|
|
22629
|
-
|
|
22807
|
+
i1$2.FormsModule,
|
|
22808
|
+
i1$2.ReactiveFormsModule,
|
|
22630
22809
|
CaseEditDataModule,
|
|
22631
22810
|
PaletteUtilsModule,
|
|
22632
22811
|
PipesModule,
|
|
@@ -22637,7 +22816,7 @@
|
|
|
22637
22816
|
FormModule,
|
|
22638
22817
|
TabsModule,
|
|
22639
22818
|
LabelSubstitutorModule,
|
|
22640
|
-
i1$
|
|
22819
|
+
i1$6.NgxMdModule,
|
|
22641
22820
|
i4.NgxMatDatetimePickerModule,
|
|
22642
22821
|
i4.NgxMatTimepickerModule,
|
|
22643
22822
|
i4.NgxMatNativeDateModule,
|
|
@@ -22646,10 +22825,10 @@
|
|
|
22646
22825
|
i5$1.MatDatepickerModule,
|
|
22647
22826
|
i5.MatAutocompleteModule,
|
|
22648
22827
|
i7.CdkTreeModule,
|
|
22649
|
-
i1$
|
|
22828
|
+
i1$5.OverlayModule,
|
|
22650
22829
|
i3.PaymentLibModule,
|
|
22651
|
-
i2
|
|
22652
|
-
i1$
|
|
22830
|
+
i2.ScrollToModule.forRoot(),
|
|
22831
|
+
i1$4.MatDialogModule,
|
|
22653
22832
|
i11.MediaViewerModule,
|
|
22654
22833
|
LoadingModule
|
|
22655
22834
|
], i4.NgxMatDatetimePickerModule,
|
|
@@ -22751,8 +22930,8 @@
|
|
|
22751
22930
|
CaseFileViewFolderDocumentActionsComponent,
|
|
22752
22931
|
CaseFileViewFolderSelectorComponent], imports: [i1.CommonModule,
|
|
22753
22932
|
i1$1.RouterModule,
|
|
22754
|
-
|
|
22755
|
-
|
|
22933
|
+
i1$2.FormsModule,
|
|
22934
|
+
i1$2.ReactiveFormsModule,
|
|
22756
22935
|
CaseEditDataModule,
|
|
22757
22936
|
PaletteUtilsModule,
|
|
22758
22937
|
PipesModule,
|
|
@@ -22763,7 +22942,7 @@
|
|
|
22763
22942
|
FormModule,
|
|
22764
22943
|
TabsModule,
|
|
22765
22944
|
LabelSubstitutorModule,
|
|
22766
|
-
i1$
|
|
22945
|
+
i1$6.NgxMdModule,
|
|
22767
22946
|
i4.NgxMatDatetimePickerModule,
|
|
22768
22947
|
i4.NgxMatTimepickerModule,
|
|
22769
22948
|
i4.NgxMatNativeDateModule,
|
|
@@ -22772,8 +22951,8 @@
|
|
|
22772
22951
|
i5$1.MatDatepickerModule,
|
|
22773
22952
|
i5.MatAutocompleteModule,
|
|
22774
22953
|
i7.CdkTreeModule,
|
|
22775
|
-
i1$
|
|
22776
|
-
i3.PaymentLibModule, i2__namespace
|
|
22954
|
+
i1$5.OverlayModule,
|
|
22955
|
+
i3.PaymentLibModule, i2__namespace.ScrollToModule, i1$4.MatDialogModule,
|
|
22777
22956
|
i11.MediaViewerModule,
|
|
22778
22957
|
LoadingModule], exports: [i4.NgxMatDatetimePickerModule,
|
|
22779
22958
|
i4.NgxMatNativeDateModule,
|
|
@@ -22867,8 +23046,8 @@
|
|
|
22867
23046
|
imports: [
|
|
22868
23047
|
i1.CommonModule,
|
|
22869
23048
|
i1$1.RouterModule,
|
|
22870
|
-
|
|
22871
|
-
|
|
23049
|
+
i1$2.FormsModule,
|
|
23050
|
+
i1$2.ReactiveFormsModule,
|
|
22872
23051
|
CaseEditDataModule,
|
|
22873
23052
|
PaletteUtilsModule,
|
|
22874
23053
|
PipesModule,
|
|
@@ -22879,7 +23058,7 @@
|
|
|
22879
23058
|
FormModule,
|
|
22880
23059
|
TabsModule,
|
|
22881
23060
|
LabelSubstitutorModule,
|
|
22882
|
-
i1$
|
|
23061
|
+
i1$6.NgxMdModule,
|
|
22883
23062
|
i4.NgxMatDatetimePickerModule,
|
|
22884
23063
|
i4.NgxMatTimepickerModule,
|
|
22885
23064
|
i4.NgxMatNativeDateModule,
|
|
@@ -22888,10 +23067,10 @@
|
|
|
22888
23067
|
i5$1.MatDatepickerModule,
|
|
22889
23068
|
i5.MatAutocompleteModule,
|
|
22890
23069
|
i7.CdkTreeModule,
|
|
22891
|
-
i1$
|
|
23070
|
+
i1$5.OverlayModule,
|
|
22892
23071
|
i3.PaymentLibModule,
|
|
22893
|
-
i2
|
|
22894
|
-
i1$
|
|
23072
|
+
i2.ScrollToModule.forRoot(),
|
|
23073
|
+
i1$4.MatDialogModule,
|
|
22895
23074
|
i11.MediaViewerModule,
|
|
22896
23075
|
LoadingModule
|
|
22897
23076
|
],
|
|
@@ -22936,7 +23115,7 @@
|
|
|
22936
23115
|
}]
|
|
22937
23116
|
}], null, null);
|
|
22938
23117
|
})();
|
|
22939
|
-
i0__namespace.ɵɵsetComponentScope(FieldReadComponent, [FieldReadLabelComponent,
|
|
23118
|
+
i0__namespace.ɵɵsetComponentScope(FieldReadComponent, [FieldReadLabelComponent, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective], []);
|
|
22940
23119
|
i0__namespace.ɵɵsetComponentScope(LabelFieldComponent, [LabelSubstitutorDirective, MarkdownComponent], []);
|
|
22941
23120
|
i0__namespace.ɵɵsetComponentScope(CaseHistoryViewerFieldComponent, [EventLogComponent], []);
|
|
22942
23121
|
i0__namespace.ɵɵsetComponentScope(EventLogComponent, [i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, EventLogTableComponent, i1__namespace.NgIf, EventLogDetailsComponent], []);
|
|
@@ -22953,21 +23132,21 @@
|
|
|
22953
23132
|
i0__namespace.ɵɵsetComponentScope(ReadComplexFieldCollectionTableComponent, [i1__namespace.NgForOf, i1__namespace.NgIf, FieldReadComponent,
|
|
22954
23133
|
ReadCaseLinkFieldComponent], [ReadFieldsFilterPipe, CcdCollectionTableCaseFieldsFilterPipe, i1__namespace.KeyValuePipe, IsCompoundPipe]);
|
|
22955
23134
|
i0__namespace.ɵɵsetComponentScope(ReadCaseFlagFieldComponent, [i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, CaseFlagSummaryListComponent, i1__namespace.NgSwitchDefault, i1__namespace.NgForOf, i1__namespace.NgIf, CaseFlagTableComponent], []);
|
|
22956
|
-
i0__namespace.ɵɵsetComponentScope(WriteAddressFieldComponent, [i1__namespace.NgIf, i1__namespace.NgClass,
|
|
22957
|
-
i0__namespace.ɵɵsetComponentScope(WriteComplexFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, FieldReadComponent, LabelSubstitutorDirective,
|
|
23135
|
+
i0__namespace.ɵɵsetComponentScope(WriteAddressFieldComponent, [i1__namespace.NgIf, i1__namespace.NgClass, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective, i1__namespace$3.SelectControlValueAccessor, i1__namespace.NgForOf, i1__namespace$3.NgSelectOption, i1__namespace$3.ɵangular_packages_forms_forms_z, WriteComplexFieldComponent, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective], [FieldLabelPipe]);
|
|
23136
|
+
i0__namespace.ɵɵsetComponentScope(WriteComplexFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, FieldReadComponent, LabelSubstitutorDirective, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, FieldWriteComponent], [FieldLabelPipe, IsReadOnlyPipe]);
|
|
22958
23137
|
i0__namespace.ɵɵsetComponentScope(WriteDocumentFieldComponent, [i1__namespace.NgClass, i1__namespace.NgIf, ReadDocumentFieldComponent], [FieldLabelPipe]);
|
|
22959
|
-
i0__namespace.ɵɵsetComponentScope(WriteDateContainerFieldComponent, [i1__namespace.NgIf, DatetimePickerComponent,
|
|
22960
|
-
i0__namespace.ɵɵsetComponentScope(WriteCaseFlagFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf,
|
|
23138
|
+
i0__namespace.ɵɵsetComponentScope(WriteDateContainerFieldComponent, [i1__namespace.NgIf, DatetimePickerComponent, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, WriteDateFieldComponent], []);
|
|
23139
|
+
i0__namespace.ɵɵsetComponentScope(WriteCaseFlagFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, i1__namespace.NgSwitch, i1__namespace.NgClass, i1__namespace.NgSwitchCase, SelectFlagLocationComponent,
|
|
22961
23140
|
SelectFlagTypeComponent,
|
|
22962
23141
|
SearchLanguageInterpreterComponent,
|
|
22963
23142
|
AddCommentsComponent,
|
|
22964
23143
|
ManageCaseFlagsComponent,
|
|
22965
23144
|
UpdateFlagComponent], []);
|
|
22966
|
-
i0__namespace.ɵɵsetComponentScope(WriteOrganisationFieldComponent, [
|
|
23145
|
+
i0__namespace.ɵɵsetComponentScope(WriteOrganisationFieldComponent, [i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, i1__namespace.NgIf, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective, i1__namespace.NgClass, i1__namespace.NgForOf, MarkdownComponent,
|
|
22967
23146
|
WriteOrganisationComplexFieldComponent], [i1__namespace.AsyncPipe]);
|
|
22968
23147
|
i0__namespace.ɵɵsetComponentScope(WriteOrderSummaryFieldComponent, [ReadOrderSummaryFieldComponent], []);
|
|
22969
|
-
i0__namespace.ɵɵsetComponentScope(WriteDateContainerFieldComponent, [i1__namespace.NgIf, DatetimePickerComponent,
|
|
22970
|
-
i0__namespace.ɵɵsetComponentScope(WriteCollectionFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, FieldWriteComponent,
|
|
23148
|
+
i0__namespace.ɵɵsetComponentScope(WriteDateContainerFieldComponent, [i1__namespace.NgIf, DatetimePickerComponent, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, WriteDateFieldComponent], []);
|
|
23149
|
+
i0__namespace.ɵɵsetComponentScope(WriteCollectionFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, FieldWriteComponent, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective], [FieldLabelPipe, FirstErrorPipe]);
|
|
22971
23150
|
i0__namespace.ɵɵsetComponentScope(
|
|
22972
23151
|
// ComponentLauncher web components
|
|
22973
23152
|
CaseFileViewFieldComponent, [i1__namespace.NgIf, CaseFileViewFolderComponent, i11__namespace.ɵcs], []);
|
|
@@ -23112,7 +23291,7 @@
|
|
|
23112
23291
|
}
|
|
23113
23292
|
function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_ng_container_1_th_2_Template(rf, ctx) {
|
|
23114
23293
|
if (rf & 1) {
|
|
23115
|
-
i0__namespace.ɵɵelementStart(0, "th",
|
|
23294
|
+
i0__namespace.ɵɵelementStart(0, "th", 34);
|
|
23116
23295
|
i0__namespace.ɵɵelementStart(1, "span", 29);
|
|
23117
23296
|
i0__namespace.ɵɵtext(2);
|
|
23118
23297
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -23124,22 +23303,37 @@
|
|
|
23124
23303
|
i0__namespace.ɵɵtextInterpolate(field_r21.label);
|
|
23125
23304
|
}
|
|
23126
23305
|
}
|
|
23127
|
-
function
|
|
23306
|
+
function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_ng_container_1_ng_container_5_a_2_Template(rf, ctx) {
|
|
23128
23307
|
if (rf & 1) {
|
|
23129
|
-
var
|
|
23308
|
+
var _r29_1 = i0__namespace.ɵɵgetCurrentView();
|
|
23130
23309
|
i0__namespace.ɵɵelementStart(0, "a", 13);
|
|
23131
|
-
i0__namespace.ɵɵlistener("click", function
|
|
23310
|
+
i0__namespace.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_ng_container_1_ng_container_5_a_2_Template_a_click_0_listener() { i0__namespace.ɵɵrestoreView(_r29_1); var page_r18 = i0__namespace.ɵɵnextContext(5).$implicit; var ctx_r27 = i0__namespace.ɵɵnextContext(3); return ctx_r27.navigateToPage(page_r18.id); });
|
|
23132
23311
|
i0__namespace.ɵɵelementStart(1, "span", 29);
|
|
23133
23312
|
i0__namespace.ɵɵtext(2, "Change");
|
|
23134
23313
|
i0__namespace.ɵɵelementEnd();
|
|
23135
23314
|
i0__namespace.ɵɵelementEnd();
|
|
23136
23315
|
}
|
|
23137
23316
|
if (rf & 2) {
|
|
23138
|
-
var field_r21 = i0__namespace.ɵɵnextContext(
|
|
23317
|
+
var field_r21 = i0__namespace.ɵɵnextContext(3).$implicit;
|
|
23139
23318
|
i0__namespace.ɵɵadvance(1);
|
|
23140
23319
|
i0__namespace.ɵɵattributeInterpolate1("aria-label", "Change ", field_r21.label, "");
|
|
23141
23320
|
}
|
|
23142
23321
|
}
|
|
23322
|
+
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) {
|
|
23323
|
+
if (rf & 1) {
|
|
23324
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
23325
|
+
i0__namespace.ɵɵelementStart(1, "td", 35);
|
|
23326
|
+
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);
|
|
23327
|
+
i0__namespace.ɵɵelementEnd();
|
|
23328
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
23329
|
+
}
|
|
23330
|
+
if (rf & 2) {
|
|
23331
|
+
var field_r21 = i0__namespace.ɵɵnextContext(2).$implicit;
|
|
23332
|
+
var ctx_r24 = i0__namespace.ɵɵnextContext(5);
|
|
23333
|
+
i0__namespace.ɵɵadvance(2);
|
|
23334
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r24.isChangeAllowed(field_r21));
|
|
23335
|
+
}
|
|
23336
|
+
}
|
|
23143
23337
|
function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_ng_container_1_Template(rf, ctx) {
|
|
23144
23338
|
if (rf & 1) {
|
|
23145
23339
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
@@ -23148,9 +23342,7 @@
|
|
|
23148
23342
|
i0__namespace.ɵɵelementStart(3, "td", 32);
|
|
23149
23343
|
i0__namespace.ɵɵelement(4, "ccd-field-read", 33);
|
|
23150
23344
|
i0__namespace.ɵɵelementEnd();
|
|
23151
|
-
i0__namespace.ɵɵ
|
|
23152
|
-
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);
|
|
23153
|
-
i0__namespace.ɵɵelementEnd();
|
|
23345
|
+
i0__namespace.ɵɵtemplate(5, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_ng_container_1_ng_container_5_Template, 3, 1, "ng-container", 0);
|
|
23154
23346
|
i0__namespace.ɵɵelementEnd();
|
|
23155
23347
|
i0__namespace.ɵɵelementContainerEnd();
|
|
23156
23348
|
}
|
|
@@ -23165,14 +23357,14 @@
|
|
|
23165
23357
|
i0__namespace.ɵɵattribute("colspan", ctx_r22.isLabel(field_r21) ? "2" : "1");
|
|
23166
23358
|
i0__namespace.ɵɵadvance(1);
|
|
23167
23359
|
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);
|
|
23168
|
-
i0__namespace.ɵɵadvance(
|
|
23169
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r22.
|
|
23360
|
+
i0__namespace.ɵɵadvance(1);
|
|
23361
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r22.eventTrigger.id !== "createCaseFlag");
|
|
23170
23362
|
}
|
|
23171
23363
|
}
|
|
23172
23364
|
function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_Template(rf, ctx) {
|
|
23173
23365
|
if (rf & 1) {
|
|
23174
23366
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
23175
|
-
i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_ng_container_1_Template,
|
|
23367
|
+
i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_ng_container_1_Template, 6, 12, "ng-container", 0);
|
|
23176
23368
|
i0__namespace.ɵɵelementContainerEnd();
|
|
23177
23369
|
}
|
|
23178
23370
|
if (rf & 2) {
|
|
@@ -23248,13 +23440,13 @@
|
|
|
23248
23440
|
i0__namespace.ɵɵelementEnd();
|
|
23249
23441
|
}
|
|
23250
23442
|
if (rf & 2) {
|
|
23251
|
-
var
|
|
23252
|
-
var
|
|
23253
|
-
i0__namespace.ɵɵproperty("caseField",
|
|
23443
|
+
var field_r35 = i0__namespace.ɵɵnextContext().$implicit;
|
|
23444
|
+
var ctx_r36 = i0__namespace.ɵɵnextContext(3);
|
|
23445
|
+
i0__namespace.ɵɵproperty("caseField", field_r35)("formGroup", ctx_r36.editForm.controls["data"])("contextFields", ctx_r36.contextFields);
|
|
23254
23446
|
i0__namespace.ɵɵadvance(2);
|
|
23255
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
23447
|
+
i0__namespace.ɵɵtextInterpolate(field_r35.label);
|
|
23256
23448
|
i0__namespace.ɵɵadvance(2);
|
|
23257
|
-
i0__namespace.ɵɵproperty("formGroup",
|
|
23449
|
+
i0__namespace.ɵɵproperty("formGroup", ctx_r36.editForm.controls["data"])("caseField", ctx_r36.summaryCaseField(field_r35));
|
|
23258
23450
|
}
|
|
23259
23451
|
}
|
|
23260
23452
|
function CaseEditSubmitComponent_div_0_ng_container_13_ng_container_3_tr_4_Template(rf, ctx) {
|
|
@@ -23266,11 +23458,11 @@
|
|
|
23266
23458
|
i0__namespace.ɵɵelementEnd();
|
|
23267
23459
|
}
|
|
23268
23460
|
if (rf & 2) {
|
|
23269
|
-
var
|
|
23270
|
-
var
|
|
23271
|
-
i0__namespace.ɵɵproperty("caseField",
|
|
23461
|
+
var field_r35 = i0__namespace.ɵɵnextContext().$implicit;
|
|
23462
|
+
var ctx_r37 = i0__namespace.ɵɵnextContext(3);
|
|
23463
|
+
i0__namespace.ɵɵproperty("caseField", field_r35)("formGroup", ctx_r37.editForm.controls["data"])("contextFields", ctx_r37.contextFields);
|
|
23272
23464
|
i0__namespace.ɵɵadvance(2);
|
|
23273
|
-
i0__namespace.ɵɵproperty("formGroup",
|
|
23465
|
+
i0__namespace.ɵɵproperty("formGroup", ctx_r37.editForm.controls["data"])("caseField", ctx_r37.summaryCaseField(field_r35))("caseFields", ctx_r37.contextFields);
|
|
23274
23466
|
}
|
|
23275
23467
|
}
|
|
23276
23468
|
function CaseEditSubmitComponent_div_0_ng_container_13_ng_container_3_Template(rf, ctx) {
|
|
@@ -23284,9 +23476,9 @@
|
|
|
23284
23476
|
i0__namespace.ɵɵelementContainerEnd();
|
|
23285
23477
|
}
|
|
23286
23478
|
if (rf & 2) {
|
|
23287
|
-
var
|
|
23479
|
+
var field_r35 = ctx.$implicit;
|
|
23288
23480
|
i0__namespace.ɵɵadvance(1);
|
|
23289
|
-
i0__namespace.ɵɵproperty("ngSwitch", !i0__namespace.ɵɵpipeBind1(2, 3,
|
|
23481
|
+
i0__namespace.ɵɵproperty("ngSwitch", !i0__namespace.ɵɵpipeBind1(2, 3, field_r35));
|
|
23290
23482
|
i0__namespace.ɵɵadvance(2);
|
|
23291
23483
|
i0__namespace.ɵɵproperty("ngSwitchCase", true);
|
|
23292
23484
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -23345,7 +23537,7 @@
|
|
|
23345
23537
|
}
|
|
23346
23538
|
function CaseEditSubmitComponent_div_0_Template(rf, ctx) {
|
|
23347
23539
|
if (rf & 1) {
|
|
23348
|
-
var
|
|
23540
|
+
var _r42_1 = i0__namespace.ɵɵgetCurrentView();
|
|
23349
23541
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
23350
23542
|
i0__namespace.ɵɵelementStart(1, "h1", 2);
|
|
23351
23543
|
i0__namespace.ɵɵtext(2);
|
|
@@ -23356,16 +23548,16 @@
|
|
|
23356
23548
|
i0__namespace.ɵɵtemplate(8, CaseEditSubmitComponent_div_0_div_8_Template, 10, 0, "div", 6);
|
|
23357
23549
|
i0__namespace.ɵɵtemplate(9, CaseEditSubmitComponent_div_0_div_9_Template, 6, 2, "div", 6);
|
|
23358
23550
|
i0__namespace.ɵɵelementStart(10, "ccd-callback-errors", 7);
|
|
23359
|
-
i0__namespace.ɵɵlistener("callbackErrorsContext", function CaseEditSubmitComponent_div_0_Template_ccd_callback_errors_callbackErrorsContext_10_listener($event) { i0__namespace.ɵɵrestoreView(
|
|
23551
|
+
i0__namespace.ɵɵlistener("callbackErrorsContext", function CaseEditSubmitComponent_div_0_Template_ccd_callback_errors_callbackErrorsContext_10_listener($event) { i0__namespace.ɵɵrestoreView(_r42_1); var ctx_r41 = i0__namespace.ɵɵnextContext(); return ctx_r41.callbackErrorsNotify($event); });
|
|
23360
23552
|
i0__namespace.ɵɵelementEnd();
|
|
23361
23553
|
i0__namespace.ɵɵelementStart(11, "form", 8);
|
|
23362
|
-
i0__namespace.ɵɵlistener("submit", function CaseEditSubmitComponent_div_0_Template_form_submit_11_listener() { i0__namespace.ɵɵrestoreView(
|
|
23554
|
+
i0__namespace.ɵɵlistener("submit", function CaseEditSubmitComponent_div_0_Template_form_submit_11_listener() { i0__namespace.ɵɵrestoreView(_r42_1); var ctx_r43 = i0__namespace.ɵɵnextContext(); return ctx_r43.submit(); });
|
|
23363
23555
|
i0__namespace.ɵɵtemplate(12, CaseEditSubmitComponent_div_0_ng_container_12_Template, 7, 3, "ng-container", 0);
|
|
23364
23556
|
i0__namespace.ɵɵtemplate(13, CaseEditSubmitComponent_div_0_ng_container_13_Template, 4, 1, "ng-container", 0);
|
|
23365
23557
|
i0__namespace.ɵɵtemplate(14, CaseEditSubmitComponent_div_0_ng_container_14_Template, 2, 1, "ng-container", 0);
|
|
23366
23558
|
i0__namespace.ɵɵelementStart(15, "div", 9);
|
|
23367
23559
|
i0__namespace.ɵɵelementStart(16, "button", 10);
|
|
23368
|
-
i0__namespace.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_Template_button_click_16_listener() { i0__namespace.ɵɵrestoreView(
|
|
23560
|
+
i0__namespace.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_Template_button_click_16_listener() { i0__namespace.ɵɵrestoreView(_r42_1); var ctx_r44 = i0__namespace.ɵɵnextContext(); return ctx_r44.previous(); });
|
|
23369
23561
|
i0__namespace.ɵɵtext(17, "Previous");
|
|
23370
23562
|
i0__namespace.ɵɵelementEnd();
|
|
23371
23563
|
i0__namespace.ɵɵelementStart(18, "button", 11);
|
|
@@ -23374,7 +23566,7 @@
|
|
|
23374
23566
|
i0__namespace.ɵɵelementEnd();
|
|
23375
23567
|
i0__namespace.ɵɵelementStart(20, "p", 12);
|
|
23376
23568
|
i0__namespace.ɵɵelementStart(21, "a", 13);
|
|
23377
|
-
i0__namespace.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_Template_a_click_21_listener() { i0__namespace.ɵɵrestoreView(
|
|
23569
|
+
i0__namespace.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_Template_a_click_21_listener() { i0__namespace.ɵɵrestoreView(_r42_1); var ctx_r45 = i0__namespace.ɵɵnextContext(); return ctx_r45.cancel(); });
|
|
23378
23570
|
i0__namespace.ɵɵtext(22);
|
|
23379
23571
|
i0__namespace.ɵɵelementEnd();
|
|
23380
23572
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -23417,9 +23609,9 @@
|
|
|
23417
23609
|
}
|
|
23418
23610
|
function CaseEditSubmitComponent_ccd_case_event_completion_1_Template(rf, ctx) {
|
|
23419
23611
|
if (rf & 1) {
|
|
23420
|
-
var
|
|
23612
|
+
var _r47_1 = i0__namespace.ɵɵgetCurrentView();
|
|
23421
23613
|
i0__namespace.ɵɵelementStart(0, "ccd-case-event-completion", 57);
|
|
23422
|
-
i0__namespace.ɵɵlistener("eventCanBeCompleted", function CaseEditSubmitComponent_ccd_case_event_completion_1_Template_ccd_case_event_completion_eventCanBeCompleted_0_listener($event) { i0__namespace.ɵɵrestoreView(
|
|
23614
|
+
i0__namespace.ɵɵlistener("eventCanBeCompleted", function CaseEditSubmitComponent_ccd_case_event_completion_1_Template_ccd_case_event_completion_eventCanBeCompleted_0_listener($event) { i0__namespace.ɵɵrestoreView(_r47_1); var ctx_r46 = i0__namespace.ɵɵnextContext(); return ctx_r46.onEventCanBeCompleted($event); });
|
|
23423
23615
|
i0__namespace.ɵɵelementEnd();
|
|
23424
23616
|
}
|
|
23425
23617
|
if (rf & 2) {
|
|
@@ -23619,10 +23811,10 @@
|
|
|
23619
23811
|
// parent)
|
|
23620
23812
|
// Update rawFormValueData for this field
|
|
23621
23813
|
// creating form group and adding control into it in case caseField is of complext type and and part of formGroup
|
|
23622
|
-
var form_1 = new
|
|
23814
|
+
var form_1 = new i1$2.FormGroup({});
|
|
23623
23815
|
if (formGroup.controls[key].value) {
|
|
23624
23816
|
Object.keys(formGroup.controls[key].value).forEach(function (item) {
|
|
23625
|
-
form_1.addControl(item, new
|
|
23817
|
+
form_1.addControl(item, new i1$2.FormControl(formGroup.controls[key].value[item]));
|
|
23626
23818
|
});
|
|
23627
23819
|
}
|
|
23628
23820
|
rawFormValueData[key] = _this.replaceHiddenFormValuesWithOriginalCaseData(form_1, caseField.field_type.complex_fields, caseField);
|
|
@@ -23835,7 +24027,7 @@
|
|
|
23835
24027
|
return a.show_summary_content_option - b.show_summary_content_option;
|
|
23836
24028
|
};
|
|
23837
24029
|
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)); };
|
|
23838
|
-
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"], [
|
|
24030
|
+
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", "case-field-label"], [1, "valign-top", "check-your-answers__change", "case-field-change"], ["href", "javascript:void(0)", 3, "click", 4, "ngIf"], ["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) {
|
|
23839
24031
|
if (rf & 1) {
|
|
23840
24032
|
i0__namespace.ɵɵtemplate(0, CaseEditSubmitComponent_div_0_Template, 23, 17, "div", 0);
|
|
23841
24033
|
i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_ccd_case_event_completion_1_Template, 1, 1, "ccd-case-event-completion", 1);
|
|
@@ -24380,12 +24572,13 @@
|
|
|
24380
24572
|
JudicialworkerService,
|
|
24381
24573
|
CaseworkerService,
|
|
24382
24574
|
SessionStorageService,
|
|
24383
|
-
EventCompletionStateMachineService
|
|
24575
|
+
EventCompletionStateMachineService,
|
|
24576
|
+
CaseFlagStateService
|
|
24384
24577
|
], imports: [[
|
|
24385
24578
|
i1.CommonModule,
|
|
24386
24579
|
i1$1.RouterModule,
|
|
24387
|
-
|
|
24388
|
-
|
|
24580
|
+
i1$2.FormsModule,
|
|
24581
|
+
i1$2.ReactiveFormsModule,
|
|
24389
24582
|
CaseEditDataModule,
|
|
24390
24583
|
PaletteModule,
|
|
24391
24584
|
LabelSubstitutorModule,
|
|
@@ -24407,8 +24600,8 @@
|
|
|
24407
24600
|
CaseCreateComponent,
|
|
24408
24601
|
CaseProgressComponent], imports: [i1.CommonModule,
|
|
24409
24602
|
i1$1.RouterModule,
|
|
24410
|
-
|
|
24411
|
-
|
|
24603
|
+
i1$2.FormsModule,
|
|
24604
|
+
i1$2.ReactiveFormsModule,
|
|
24412
24605
|
CaseEditDataModule,
|
|
24413
24606
|
PaletteModule,
|
|
24414
24607
|
LabelSubstitutorModule,
|
|
@@ -24432,8 +24625,8 @@
|
|
|
24432
24625
|
imports: [
|
|
24433
24626
|
i1.CommonModule,
|
|
24434
24627
|
i1$1.RouterModule,
|
|
24435
|
-
|
|
24436
|
-
|
|
24628
|
+
i1$2.FormsModule,
|
|
24629
|
+
i1$2.ReactiveFormsModule,
|
|
24437
24630
|
CaseEditDataModule,
|
|
24438
24631
|
PaletteModule,
|
|
24439
24632
|
LabelSubstitutorModule,
|
|
@@ -24492,15 +24685,16 @@
|
|
|
24492
24685
|
JudicialworkerService,
|
|
24493
24686
|
CaseworkerService,
|
|
24494
24687
|
SessionStorageService,
|
|
24495
|
-
EventCompletionStateMachineService
|
|
24688
|
+
EventCompletionStateMachineService,
|
|
24689
|
+
CaseFlagStateService
|
|
24496
24690
|
]
|
|
24497
24691
|
}]
|
|
24498
24692
|
}], null, null);
|
|
24499
24693
|
})();
|
|
24500
|
-
i0__namespace.ɵɵsetComponentScope(CaseEditConfirmComponent, [i1__namespace.NgIf, MarkdownComponent,
|
|
24501
|
-
i0__namespace.ɵɵsetComponentScope(CaseEditPageComponent, [i1__namespace.NgIf, LoadingSpinnerComponent, MarkdownComponent, i1__namespace.NgForOf, CallbackErrorsComponent,
|
|
24502
|
-
i0__namespace.ɵɵsetComponentScope(CaseEditFormComponent, [i1__namespace.NgForOf, ConditionalShowFormDirective,
|
|
24503
|
-
i0__namespace.ɵɵsetComponentScope(CaseEditSubmitComponent, [i1__namespace.NgIf, MarkdownComponent, i1__namespace.NgForOf, CallbackErrorsComponent,
|
|
24694
|
+
i0__namespace.ɵɵsetComponentScope(CaseEditConfirmComponent, [i1__namespace.NgIf, MarkdownComponent, i1__namespace$3.ɵangular_packages_forms_forms_ba, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective], [CcdCaseTitlePipe, CaseReferencePipe]);
|
|
24695
|
+
i0__namespace.ɵɵsetComponentScope(CaseEditPageComponent, [i1__namespace.NgIf, LoadingSpinnerComponent, MarkdownComponent, i1__namespace.NgForOf, CallbackErrorsComponent, i1__namespace$3.ɵangular_packages_forms_forms_ba, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, CaseEditFormComponent], [CcdCaseTitlePipe, CaseReferencePipe, i1__namespace.AsyncPipe]);
|
|
24696
|
+
i0__namespace.ɵɵsetComponentScope(CaseEditFormComponent, [i1__namespace.NgForOf, ConditionalShowFormDirective, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, LabelSubstitutorDirective, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, FieldReadComponent, i1__namespace.NgIf, FieldWriteComponent], [IsReadOnlyAndNotCollectionPipe, IsCompoundPipe]);
|
|
24697
|
+
i0__namespace.ɵɵsetComponentScope(CaseEditSubmitComponent, [i1__namespace.NgIf, MarkdownComponent, i1__namespace.NgForOf, CallbackErrorsComponent, i1__namespace$3.ɵangular_packages_forms_forms_ba, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, LabelSubstitutorDirective, FieldReadComponent, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, i1__namespace$3.FormGroupName, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlName, i1__namespace$3.MaxLengthValidator, CaseEventCompletionComponent], [CcdCaseTitlePipe, CaseReferencePipe, CcdCYAPageLabelFilterPipe, ReadFieldsFilterPipe, CcdPageFieldsPipe, IsCompoundPipe]);
|
|
24504
24698
|
i0__namespace.ɵɵsetComponentScope(CaseCreateComponent, [i1__namespace.NgIf, CaseEditComponent], []);
|
|
24505
24699
|
i0__namespace.ɵɵsetComponentScope(CaseProgressComponent, [i1__namespace.NgIf, CaseEditComponent], []);
|
|
24506
24700
|
|
|
@@ -24898,7 +25092,7 @@
|
|
|
24898
25092
|
i0__namespace.ɵɵadvance(3);
|
|
24899
25093
|
i0__namespace.ɵɵproperty("ngIf", !(ctx.autoHide && _r0.pages.length <= 1));
|
|
24900
25094
|
}
|
|
24901
|
-
}, directives: [i1__namespace$
|
|
25095
|
+
}, directives: [i1__namespace$7.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}}"] });
|
|
24902
25096
|
(function () {
|
|
24903
25097
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PaginationComponent, [{
|
|
24904
25098
|
type: i0.Component,
|
|
@@ -25305,7 +25499,7 @@
|
|
|
25305
25499
|
i0__namespace.ɵɵadvance(2);
|
|
25306
25500
|
i0__namespace.ɵɵproperty("ngIf", ctx.totalResultsCount > ctx.pageSize);
|
|
25307
25501
|
}
|
|
25308
|
-
}, directives: [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, i1__namespace.NgSwitchDefault, PaginationComponent], pipes: [i1__namespace$
|
|
25502
|
+
}, directives: [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, i1__namespace.NgSwitchDefault, PaginationComponent], pipes: [i1__namespace$7.PaginatePipe, i1__namespace.CurrencyPipe], styles: [""] });
|
|
25309
25503
|
(function () {
|
|
25310
25504
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseListComponent, [{
|
|
25311
25505
|
type: i0.Component,
|
|
@@ -25365,12 +25559,12 @@
|
|
|
25365
25559
|
PaginationModule.ɵmod = i0__namespace.ɵɵdefineNgModule({ type: PaginationModule });
|
|
25366
25560
|
PaginationModule.ɵinj = i0__namespace.ɵɵdefineInjector({ imports: [[
|
|
25367
25561
|
i1.CommonModule,
|
|
25368
|
-
i1$
|
|
25562
|
+
i1$7.NgxPaginationModule
|
|
25369
25563
|
]] });
|
|
25370
25564
|
(function () {
|
|
25371
25565
|
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(PaginationModule, { declarations: [PaginationComponent], imports: [i1.CommonModule,
|
|
25372
|
-
i1$
|
|
25373
|
-
i1$
|
|
25566
|
+
i1$7.NgxPaginationModule], exports: [PaginationComponent,
|
|
25567
|
+
i1$7.PaginatePipe] });
|
|
25374
25568
|
})();
|
|
25375
25569
|
(function () {
|
|
25376
25570
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PaginationModule, [{
|
|
@@ -25378,14 +25572,14 @@
|
|
|
25378
25572
|
args: [{
|
|
25379
25573
|
imports: [
|
|
25380
25574
|
i1.CommonModule,
|
|
25381
|
-
i1$
|
|
25575
|
+
i1$7.NgxPaginationModule
|
|
25382
25576
|
],
|
|
25383
25577
|
declarations: [
|
|
25384
25578
|
PaginationComponent
|
|
25385
25579
|
],
|
|
25386
25580
|
exports: [
|
|
25387
25581
|
PaginationComponent,
|
|
25388
|
-
i1$
|
|
25582
|
+
i1$7.PaginatePipe
|
|
25389
25583
|
],
|
|
25390
25584
|
}]
|
|
25391
25585
|
}], null, null);
|
|
@@ -25402,16 +25596,16 @@
|
|
|
25402
25596
|
BrowserService
|
|
25403
25597
|
], imports: [[
|
|
25404
25598
|
i1.CommonModule,
|
|
25405
|
-
|
|
25599
|
+
i1$2.FormsModule,
|
|
25406
25600
|
i1$1.RouterModule,
|
|
25407
|
-
i1$
|
|
25601
|
+
i1$7.NgxPaginationModule,
|
|
25408
25602
|
PaginationModule
|
|
25409
25603
|
]] });
|
|
25410
25604
|
(function () {
|
|
25411
25605
|
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(CaseListModule, { declarations: [CaseListComponent], imports: [i1.CommonModule,
|
|
25412
|
-
|
|
25606
|
+
i1$2.FormsModule,
|
|
25413
25607
|
i1$1.RouterModule,
|
|
25414
|
-
i1$
|
|
25608
|
+
i1$7.NgxPaginationModule,
|
|
25415
25609
|
PaginationModule], exports: [CaseListComponent] });
|
|
25416
25610
|
})();
|
|
25417
25611
|
(function () {
|
|
@@ -25420,9 +25614,9 @@
|
|
|
25420
25614
|
args: [{
|
|
25421
25615
|
imports: [
|
|
25422
25616
|
i1.CommonModule,
|
|
25423
|
-
|
|
25617
|
+
i1$2.FormsModule,
|
|
25424
25618
|
i1$1.RouterModule,
|
|
25425
|
-
i1$
|
|
25619
|
+
i1$7.NgxPaginationModule,
|
|
25426
25620
|
PaginationModule
|
|
25427
25621
|
],
|
|
25428
25622
|
declarations: [CaseListComponent],
|
|
@@ -25537,7 +25731,7 @@
|
|
|
25537
25731
|
this.windowService = windowService;
|
|
25538
25732
|
this.onApply = new i0.EventEmitter();
|
|
25539
25733
|
this.onReset = new i0.EventEmitter();
|
|
25540
|
-
this.formGroup = new
|
|
25734
|
+
this.formGroup = new i1$2.FormGroup({});
|
|
25541
25735
|
this.initialised = false;
|
|
25542
25736
|
}
|
|
25543
25737
|
WorkbasketFiltersComponent.prototype.ngOnInit = function () {
|
|
@@ -25632,7 +25826,7 @@
|
|
|
25632
25826
|
if (this.selected.caseType) {
|
|
25633
25827
|
this.selectedCaseTypeStates = this.sortStates(this.selected.caseType.states);
|
|
25634
25828
|
this.selected.caseState = null;
|
|
25635
|
-
this.formGroup = new
|
|
25829
|
+
this.formGroup = new i1$2.FormGroup({});
|
|
25636
25830
|
this.clearWorkbasketInputs();
|
|
25637
25831
|
if (!this.isApplyButtonDisabled()) {
|
|
25638
25832
|
this.workbasketInputFilterService.getWorkbasketInputs(this.selected.jurisdiction.id, this.selected.caseType.id).pipe(operators.take(1)).subscribe(function (workbasketInputs) {
|
|
@@ -25906,15 +26100,15 @@
|
|
|
25906
26100
|
WindowService,
|
|
25907
26101
|
], imports: [[
|
|
25908
26102
|
i1.CommonModule,
|
|
25909
|
-
|
|
25910
|
-
|
|
26103
|
+
i1$2.FormsModule,
|
|
26104
|
+
i1$2.ReactiveFormsModule,
|
|
25911
26105
|
PaletteModule,
|
|
25912
26106
|
ConditionalShowModule
|
|
25913
26107
|
]] });
|
|
25914
26108
|
(function () {
|
|
25915
26109
|
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(WorkbasketFiltersModule, { declarations: [WorkbasketFiltersComponent], imports: [i1.CommonModule,
|
|
25916
|
-
|
|
25917
|
-
|
|
26110
|
+
i1$2.FormsModule,
|
|
26111
|
+
i1$2.ReactiveFormsModule,
|
|
25918
26112
|
PaletteModule,
|
|
25919
26113
|
ConditionalShowModule], exports: [WorkbasketFiltersComponent] });
|
|
25920
26114
|
})();
|
|
@@ -25924,8 +26118,8 @@
|
|
|
25924
26118
|
args: [{
|
|
25925
26119
|
imports: [
|
|
25926
26120
|
i1.CommonModule,
|
|
25927
|
-
|
|
25928
|
-
|
|
26121
|
+
i1$2.FormsModule,
|
|
26122
|
+
i1$2.ReactiveFormsModule,
|
|
25929
26123
|
PaletteModule,
|
|
25930
26124
|
ConditionalShowModule
|
|
25931
26125
|
],
|
|
@@ -25945,7 +26139,7 @@
|
|
|
25945
26139
|
}]
|
|
25946
26140
|
}], null, null);
|
|
25947
26141
|
})();
|
|
25948
|
-
i0__namespace.ɵɵsetComponentScope(WorkbasketFiltersComponent, [
|
|
26142
|
+
i0__namespace.ɵɵsetComponentScope(WorkbasketFiltersComponent, [i1__namespace$3.ɵangular_packages_forms_forms_ba, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.NgForm, i1__namespace$3.SelectControlValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.NgModel, i1__namespace.NgIf, i1__namespace$3.NgSelectOption, i1__namespace$3.ɵangular_packages_forms_forms_z, i1__namespace.NgForOf, ConditionalShowFormDirective, i1__namespace$3.FormGroupDirective, FieldWriteComponent], []);
|
|
25949
26143
|
|
|
25950
26144
|
var READ_ACCESS = 'read';
|
|
25951
26145
|
var CREATE_ACCESS = 'create';
|
|
@@ -26026,16 +26220,16 @@
|
|
|
26026
26220
|
WindowService
|
|
26027
26221
|
], imports: [[
|
|
26028
26222
|
i1.CommonModule,
|
|
26029
|
-
|
|
26030
|
-
|
|
26223
|
+
i1$2.FormsModule,
|
|
26224
|
+
i1$2.ReactiveFormsModule,
|
|
26031
26225
|
PaletteModule,
|
|
26032
26226
|
DefinitionsModule,
|
|
26033
26227
|
WorkbasketFiltersModule
|
|
26034
26228
|
]] });
|
|
26035
26229
|
(function () {
|
|
26036
26230
|
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(CaseListFiltersModule, { declarations: [CaseListFiltersComponent], imports: [i1.CommonModule,
|
|
26037
|
-
|
|
26038
|
-
|
|
26231
|
+
i1$2.FormsModule,
|
|
26232
|
+
i1$2.ReactiveFormsModule,
|
|
26039
26233
|
PaletteModule,
|
|
26040
26234
|
DefinitionsModule,
|
|
26041
26235
|
WorkbasketFiltersModule], exports: [CaseListFiltersComponent] });
|
|
@@ -26046,8 +26240,8 @@
|
|
|
26046
26240
|
args: [{
|
|
26047
26241
|
imports: [
|
|
26048
26242
|
i1.CommonModule,
|
|
26049
|
-
|
|
26050
|
-
|
|
26243
|
+
i1$2.FormsModule,
|
|
26244
|
+
i1$2.ReactiveFormsModule,
|
|
26051
26245
|
PaletteModule,
|
|
26052
26246
|
DefinitionsModule,
|
|
26053
26247
|
WorkbasketFiltersModule
|
|
@@ -26108,7 +26302,7 @@
|
|
|
26108
26302
|
CaseHistoryService.prototype.get = function (caseId, eventId) {
|
|
26109
26303
|
var _this = this;
|
|
26110
26304
|
var url = this.appConfig.getCaseHistoryUrl(caseId, eventId);
|
|
26111
|
-
var headers = new i1$
|
|
26305
|
+
var headers = new i1$3.HttpHeaders()
|
|
26112
26306
|
.set('experimental', 'true')
|
|
26113
26307
|
.set('Accept', CaseHistoryService.V2_MEDIATYPE_CASE_EVENT_VIEW)
|
|
26114
26308
|
.set('Content-Type', 'application/json');
|
|
@@ -26579,16 +26773,16 @@
|
|
|
26579
26773
|
CaseTimelineModule.ɵinj = i0__namespace.ɵɵdefineInjector({ imports: [[
|
|
26580
26774
|
i1.CommonModule,
|
|
26581
26775
|
ErrorsModule,
|
|
26582
|
-
|
|
26583
|
-
|
|
26776
|
+
i1$2.FormsModule,
|
|
26777
|
+
i1$2.ReactiveFormsModule,
|
|
26584
26778
|
CaseHistoryModule,
|
|
26585
26779
|
PaletteModule
|
|
26586
26780
|
]] });
|
|
26587
26781
|
(function () {
|
|
26588
26782
|
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(CaseTimelineModule, { declarations: [CaseTimelineComponent], imports: [i1.CommonModule,
|
|
26589
26783
|
ErrorsModule,
|
|
26590
|
-
|
|
26591
|
-
|
|
26784
|
+
i1$2.FormsModule,
|
|
26785
|
+
i1$2.ReactiveFormsModule,
|
|
26592
26786
|
CaseHistoryModule,
|
|
26593
26787
|
PaletteModule], exports: [CaseTimelineComponent] });
|
|
26594
26788
|
})();
|
|
@@ -26599,8 +26793,8 @@
|
|
|
26599
26793
|
imports: [
|
|
26600
26794
|
i1.CommonModule,
|
|
26601
26795
|
ErrorsModule,
|
|
26602
|
-
|
|
26603
|
-
|
|
26796
|
+
i1$2.FormsModule,
|
|
26797
|
+
i1$2.ReactiveFormsModule,
|
|
26604
26798
|
CaseHistoryModule,
|
|
26605
26799
|
PaletteModule
|
|
26606
26800
|
],
|
|
@@ -27283,7 +27477,7 @@
|
|
|
27283
27477
|
};
|
|
27284
27478
|
return DeleteOrCancelDialogComponent;
|
|
27285
27479
|
}());
|
|
27286
|
-
DeleteOrCancelDialogComponent.ɵfac = function DeleteOrCancelDialogComponent_Factory(t) { return new (t || DeleteOrCancelDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$
|
|
27480
|
+
DeleteOrCancelDialogComponent.ɵfac = function DeleteOrCancelDialogComponent_Factory(t) { return new (t || DeleteOrCancelDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$4.MatDialogRef)); };
|
|
27287
27481
|
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) {
|
|
27288
27482
|
if (rf & 1) {
|
|
27289
27483
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
@@ -27324,7 +27518,7 @@
|
|
|
27324
27518
|
templateUrl: './delete-or-cancel-dialog.component.html',
|
|
27325
27519
|
styleUrls: ['../action-dialog.component.scss']
|
|
27326
27520
|
}]
|
|
27327
|
-
}], function () { return [{ type: i1__namespace$
|
|
27521
|
+
}], function () { return [{ type: i1__namespace$4.MatDialogRef }]; }, null);
|
|
27328
27522
|
})();
|
|
27329
27523
|
|
|
27330
27524
|
var DialogsModule = /** @class */ (function () {
|
|
@@ -27336,16 +27530,16 @@
|
|
|
27336
27530
|
DialogsModule.ɵmod = i0__namespace.ɵɵdefineNgModule({ type: DialogsModule });
|
|
27337
27531
|
DialogsModule.ɵinj = i0__namespace.ɵɵdefineInjector({ imports: [[
|
|
27338
27532
|
i1.CommonModule,
|
|
27339
|
-
|
|
27340
|
-
|
|
27533
|
+
i1$2.FormsModule,
|
|
27534
|
+
i1$2.ReactiveFormsModule,
|
|
27341
27535
|
]] });
|
|
27342
27536
|
(function () {
|
|
27343
27537
|
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(DialogsModule, { declarations: [DocumentDialogComponent,
|
|
27344
27538
|
DeleteOrCancelDialogComponent,
|
|
27345
27539
|
SaveOrDiscardDialogComponent,
|
|
27346
27540
|
RemoveDialogComponent], imports: [i1.CommonModule,
|
|
27347
|
-
|
|
27348
|
-
|
|
27541
|
+
i1$2.FormsModule,
|
|
27542
|
+
i1$2.ReactiveFormsModule], exports: [DocumentDialogComponent,
|
|
27349
27543
|
DeleteOrCancelDialogComponent,
|
|
27350
27544
|
SaveOrDiscardDialogComponent,
|
|
27351
27545
|
RemoveDialogComponent] });
|
|
@@ -27356,8 +27550,8 @@
|
|
|
27356
27550
|
args: [{
|
|
27357
27551
|
imports: [
|
|
27358
27552
|
i1.CommonModule,
|
|
27359
|
-
|
|
27360
|
-
|
|
27553
|
+
i1$2.FormsModule,
|
|
27554
|
+
i1$2.ReactiveFormsModule,
|
|
27361
27555
|
],
|
|
27362
27556
|
declarations: [
|
|
27363
27557
|
DocumentDialogComponent,
|
|
@@ -27953,7 +28147,7 @@
|
|
|
27953
28147
|
value = Object.assign(Object.assign({}, value), (_a = {}, _a[caseField.id] = caseField.value, _a));
|
|
27954
28148
|
});
|
|
27955
28149
|
}
|
|
27956
|
-
return new
|
|
28150
|
+
return new i1$2.FormGroup({ data: new i1$2.FormControl(value) });
|
|
27957
28151
|
};
|
|
27958
28152
|
CaseFullAccessViewComponent.prototype.resetErrors = function () {
|
|
27959
28153
|
this.error = null;
|
|
@@ -27967,7 +28161,7 @@
|
|
|
27967
28161
|
CaseFullAccessViewComponent.TRIGGER_TEXT_CONTINUE = 'Ignore Warning and Go';
|
|
27968
28162
|
CaseFullAccessViewComponent.UNICODE_SPACE = '%20';
|
|
27969
28163
|
CaseFullAccessViewComponent.EMPTY_SPACE = ' ';
|
|
27970
|
-
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$
|
|
28164
|
+
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$4.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)); };
|
|
27971
28165
|
CaseFullAccessViewComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFullAccessViewComponent, selectors: [["ccd-case-full-access-view"]], viewQuery: function CaseFullAccessViewComponent_Query(rf, ctx) {
|
|
27972
28166
|
if (rf & 1) {
|
|
27973
28167
|
i0__namespace.ɵɵviewQuery(_c0$b, 1);
|
|
@@ -28026,7 +28220,7 @@
|
|
|
28026
28220
|
templateUrl: './case-full-access-view.component.html',
|
|
28027
28221
|
styleUrls: ['./case-full-access-view.component.scss']
|
|
28028
28222
|
}]
|
|
28029
|
-
}], 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$
|
|
28223
|
+
}], 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$4.MatDialog }, { type: AlertService }, { type: DraftService }, { type: ErrorNotifierService }, { type: ConvertHrefToRouterService }, { type: i1__namespace.Location }, { type: i0__namespace.ChangeDetectorRef }, { type: SessionStorageService }]; }, { hasPrint: [{
|
|
28030
28224
|
type: i0.Input
|
|
28031
28225
|
}], hasEventSelector: [{
|
|
28032
28226
|
type: i0.Input
|
|
@@ -28394,13 +28588,13 @@
|
|
|
28394
28588
|
EventMessageModule.ɵmod = i0__namespace.ɵɵdefineNgModule({ type: EventMessageModule });
|
|
28395
28589
|
EventMessageModule.ɵinj = i0__namespace.ɵɵdefineInjector({ imports: [[
|
|
28396
28590
|
i1.CommonModule,
|
|
28397
|
-
|
|
28591
|
+
i1$2.ReactiveFormsModule,
|
|
28398
28592
|
i1$1.RouterModule,
|
|
28399
28593
|
ActivityModule
|
|
28400
28594
|
]] });
|
|
28401
28595
|
(function () {
|
|
28402
28596
|
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(EventMessageModule, { declarations: [ErrorMessageComponent], imports: [i1.CommonModule,
|
|
28403
|
-
|
|
28597
|
+
i1$2.ReactiveFormsModule,
|
|
28404
28598
|
i1$1.RouterModule,
|
|
28405
28599
|
ActivityModule], exports: [ErrorMessageComponent] });
|
|
28406
28600
|
})();
|
|
@@ -28410,7 +28604,7 @@
|
|
|
28410
28604
|
args: [{
|
|
28411
28605
|
imports: [
|
|
28412
28606
|
i1.CommonModule,
|
|
28413
|
-
|
|
28607
|
+
i1$2.ReactiveFormsModule,
|
|
28414
28608
|
i1$1.RouterModule,
|
|
28415
28609
|
ActivityModule
|
|
28416
28610
|
],
|
|
@@ -29176,7 +29370,7 @@
|
|
|
29176
29370
|
EventStartStateMachineService
|
|
29177
29371
|
], imports: [[
|
|
29178
29372
|
i1.CommonModule,
|
|
29179
|
-
|
|
29373
|
+
i1$2.ReactiveFormsModule,
|
|
29180
29374
|
i1$1.RouterModule
|
|
29181
29375
|
]] });
|
|
29182
29376
|
(function () {
|
|
@@ -29187,7 +29381,7 @@
|
|
|
29187
29381
|
TaskCancelledComponent,
|
|
29188
29382
|
TaskConflictComponent,
|
|
29189
29383
|
TaskUnassignedComponent], imports: [i1.CommonModule,
|
|
29190
|
-
|
|
29384
|
+
i1$2.ReactiveFormsModule,
|
|
29191
29385
|
i1$1.RouterModule], exports: [EventStartComponent,
|
|
29192
29386
|
TaskAssignedComponent,
|
|
29193
29387
|
TaskUnassignedComponent] });
|
|
@@ -29198,7 +29392,7 @@
|
|
|
29198
29392
|
args: [{
|
|
29199
29393
|
imports: [
|
|
29200
29394
|
i1.CommonModule,
|
|
29201
|
-
|
|
29395
|
+
i1$2.ReactiveFormsModule,
|
|
29202
29396
|
i1$1.RouterModule
|
|
29203
29397
|
],
|
|
29204
29398
|
declarations: [
|
|
@@ -29291,7 +29485,7 @@
|
|
|
29291
29485
|
if (changes.triggers && changes.triggers.currentValue) {
|
|
29292
29486
|
this.triggers = this.orderService.sort(this.triggers);
|
|
29293
29487
|
this.triggerForm = this.fb.group({
|
|
29294
|
-
trigger: [this.getDefault(),
|
|
29488
|
+
trigger: [this.getDefault(), i1$2.Validators.required]
|
|
29295
29489
|
});
|
|
29296
29490
|
}
|
|
29297
29491
|
};
|
|
@@ -29309,7 +29503,7 @@
|
|
|
29309
29503
|
};
|
|
29310
29504
|
return EventTriggerComponent;
|
|
29311
29505
|
}());
|
|
29312
|
-
EventTriggerComponent.ɵfac = function EventTriggerComponent_Factory(t) { return new (t || EventTriggerComponent)(i0__namespace.ɵɵdirectiveInject(
|
|
29506
|
+
EventTriggerComponent.ɵfac = function EventTriggerComponent_Factory(t) { return new (t || EventTriggerComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$3.FormBuilder), i0__namespace.ɵɵdirectiveInject(OrderService)); };
|
|
29313
29507
|
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) {
|
|
29314
29508
|
if (rf & 1) {
|
|
29315
29509
|
i0__namespace.ɵɵtemplate(0, EventTriggerComponent_form_0_Template, 9, 8, "form", 0);
|
|
@@ -29317,7 +29511,7 @@
|
|
|
29317
29511
|
if (rf & 2) {
|
|
29318
29512
|
i0__namespace.ɵɵproperty("ngIf", ctx.triggers && ctx.triggers.length);
|
|
29319
29513
|
}
|
|
29320
|
-
}, directives: [i1__namespace.NgIf,
|
|
29514
|
+
}, directives: [i1__namespace.NgIf, i1__namespace$3.ɵangular_packages_forms_forms_ba, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, i1__namespace$3.SelectControlValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlName, i1__namespace.NgClass, i1__namespace.NgForOf, i1__namespace$3.NgSelectOption, i1__namespace$3.ɵ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}"] });
|
|
29321
29515
|
(function () {
|
|
29322
29516
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(EventTriggerComponent, [{
|
|
29323
29517
|
type: i0.Component,
|
|
@@ -29326,7 +29520,7 @@
|
|
|
29326
29520
|
templateUrl: './event-trigger.component.html',
|
|
29327
29521
|
styleUrls: ['./event-trigger.component.scss']
|
|
29328
29522
|
}]
|
|
29329
|
-
}], function () { return [{ type:
|
|
29523
|
+
}], function () { return [{ type: i1__namespace$3.FormBuilder }, { type: OrderService }]; }, { triggers: [{
|
|
29330
29524
|
type: i0.Input
|
|
29331
29525
|
}], triggerText: [{
|
|
29332
29526
|
type: i0.Input
|
|
@@ -29348,12 +29542,12 @@
|
|
|
29348
29542
|
EventTriggerModule.ɵmod = i0__namespace.ɵɵdefineNgModule({ type: EventTriggerModule });
|
|
29349
29543
|
EventTriggerModule.ɵinj = i0__namespace.ɵɵdefineInjector({ imports: [[
|
|
29350
29544
|
i1.CommonModule,
|
|
29351
|
-
|
|
29545
|
+
i1$2.ReactiveFormsModule,
|
|
29352
29546
|
ActivityModule,
|
|
29353
29547
|
]] });
|
|
29354
29548
|
(function () {
|
|
29355
29549
|
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(EventTriggerModule, { declarations: [EventTriggerComponent], imports: [i1.CommonModule,
|
|
29356
|
-
|
|
29550
|
+
i1$2.ReactiveFormsModule,
|
|
29357
29551
|
ActivityModule], exports: [EventTriggerComponent] });
|
|
29358
29552
|
})();
|
|
29359
29553
|
(function () {
|
|
@@ -29362,7 +29556,7 @@
|
|
|
29362
29556
|
args: [{
|
|
29363
29557
|
imports: [
|
|
29364
29558
|
i1.CommonModule,
|
|
29365
|
-
|
|
29559
|
+
i1$2.ReactiveFormsModule,
|
|
29366
29560
|
ActivityModule,
|
|
29367
29561
|
],
|
|
29368
29562
|
declarations: [
|
|
@@ -29507,9 +29701,9 @@
|
|
|
29507
29701
|
this.hint = ChallengedAccessRequestPageText.HINT;
|
|
29508
29702
|
this.caseRefLabel = ChallengedAccessRequestPageText.CASE_REF;
|
|
29509
29703
|
this.formGroup = this.fb.group({
|
|
29510
|
-
radioSelected: new
|
|
29704
|
+
radioSelected: new i1$2.FormControl(null, i1$2.Validators.required)
|
|
29511
29705
|
});
|
|
29512
|
-
this.formGroup.addControl(this.caseReferenceControlName, new
|
|
29706
|
+
this.formGroup.addControl(this.caseReferenceControlName, new i1$2.FormControl('', {
|
|
29513
29707
|
validators: [function (control) {
|
|
29514
29708
|
if (_this.formGroup.get(_this.radioSelectedControlName).value === AccessReason$1.LINKED_TO_CURRENT_CASE && _this.inputEmpty(control)) {
|
|
29515
29709
|
return { invalid: true };
|
|
@@ -29518,7 +29712,7 @@
|
|
|
29518
29712
|
}],
|
|
29519
29713
|
updateOn: 'submit'
|
|
29520
29714
|
}));
|
|
29521
|
-
this.formGroup.addControl(this.otherReasonControlName, new
|
|
29715
|
+
this.formGroup.addControl(this.otherReasonControlName, new i1$2.FormControl('', {
|
|
29522
29716
|
validators: [function (control) {
|
|
29523
29717
|
if (_this.formGroup.get(_this.radioSelectedControlName).value === AccessReason$1.OTHER && _this.inputEmpty(control)) {
|
|
29524
29718
|
return { invalid: true };
|
|
@@ -29599,7 +29793,7 @@
|
|
|
29599
29793
|
return CaseChallengedAccessRequestComponent;
|
|
29600
29794
|
}());
|
|
29601
29795
|
CaseChallengedAccessRequestComponent.CANCEL_LINK_DESTINATION = '/work/my-work/list';
|
|
29602
|
-
CaseChallengedAccessRequestComponent.ɵfac = function CaseChallengedAccessRequestComponent_Factory(t) { return new (t || CaseChallengedAccessRequestComponent)(i0__namespace.ɵɵdirectiveInject(
|
|
29796
|
+
CaseChallengedAccessRequestComponent.ɵfac = function CaseChallengedAccessRequestComponent_Factory(t) { return new (t || CaseChallengedAccessRequestComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$3.FormBuilder), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(CasesService), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(CaseNotifier)); };
|
|
29603
29797
|
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) {
|
|
29604
29798
|
if (rf & 1) {
|
|
29605
29799
|
i0__namespace.ɵɵtemplate(0, CaseChallengedAccessRequestComponent_exui_error_message_0_Template, 1, 1, "exui-error-message", 0);
|
|
@@ -29715,7 +29909,7 @@
|
|
|
29715
29909
|
selector: 'ccd-case-challenged-access-request',
|
|
29716
29910
|
templateUrl: './case-challenged-access-request.component.html'
|
|
29717
29911
|
}]
|
|
29718
|
-
}], function () { return [{ type:
|
|
29912
|
+
}], function () { return [{ type: i1__namespace$3.FormBuilder }, { type: i1__namespace$1.Router }, { type: CasesService }, { type: i1__namespace$1.ActivatedRoute }, { type: CaseNotifier }]; }, null);
|
|
29719
29913
|
})();
|
|
29720
29914
|
|
|
29721
29915
|
var CaseChallengedAccessSuccessComponent = /** @class */ (function () {
|
|
@@ -29913,7 +30107,7 @@
|
|
|
29913
30107
|
this.hint = ReviewSpecificAccessRequestPageText.HINT;
|
|
29914
30108
|
this.caseRefLabel = ReviewSpecificAccessRequestPageText.CASE_REF;
|
|
29915
30109
|
this.formGroup = this.fb.group({
|
|
29916
|
-
radioSelected: new
|
|
30110
|
+
radioSelected: new i1$2.FormControl(null, i1$2.Validators.required),
|
|
29917
30111
|
});
|
|
29918
30112
|
};
|
|
29919
30113
|
CaseReviewSpecificAccessRequestComponent.prototype.ngOnDestroy = function () {
|
|
@@ -29965,7 +30159,7 @@
|
|
|
29965
30159
|
return CaseReviewSpecificAccessRequestComponent;
|
|
29966
30160
|
}());
|
|
29967
30161
|
CaseReviewSpecificAccessRequestComponent.CANCEL_LINK_DESTINATION = '/work/my-work/list';
|
|
29968
|
-
CaseReviewSpecificAccessRequestComponent.ɵfac = function CaseReviewSpecificAccessRequestComponent_Factory(t) { return new (t || CaseReviewSpecificAccessRequestComponent)(i0__namespace.ɵɵdirectiveInject(
|
|
30162
|
+
CaseReviewSpecificAccessRequestComponent.ɵfac = function CaseReviewSpecificAccessRequestComponent_Factory(t) { return new (t || CaseReviewSpecificAccessRequestComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$3.FormBuilder), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(AbstractAppConfig)); };
|
|
29969
30163
|
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) {
|
|
29970
30164
|
if (rf & 1) {
|
|
29971
30165
|
i0__namespace.ɵɵtemplate(0, CaseReviewSpecificAccessRequestComponent_exui_error_message_0_Template, 1, 1, "exui-error-message", 0);
|
|
@@ -30123,7 +30317,7 @@
|
|
|
30123
30317
|
templateUrl: './case-review-specific-access-request.component.html',
|
|
30124
30318
|
styleUrls: ['./case-review-specific-access-request.component.scss']
|
|
30125
30319
|
}]
|
|
30126
|
-
}], function () { return [{ type:
|
|
30320
|
+
}], function () { return [{ type: i1__namespace$3.FormBuilder }, { type: i1__namespace$1.ActivatedRoute }, { type: i1__namespace$1.Router }, { type: AbstractAppConfig }]; }, null);
|
|
30127
30321
|
})();
|
|
30128
30322
|
|
|
30129
30323
|
var SpecificAccessRequestPageText;
|
|
@@ -30178,9 +30372,9 @@
|
|
|
30178
30372
|
this.hint = SpecificAccessRequestPageText.HINT;
|
|
30179
30373
|
this.caseRefLabel = SpecificAccessRequestPageText.CASE_REF;
|
|
30180
30374
|
this.formGroup = this.fb.group({
|
|
30181
|
-
radioSelected: new
|
|
30375
|
+
radioSelected: new i1$2.FormControl(null, null),
|
|
30182
30376
|
});
|
|
30183
|
-
this.formGroup.addControl(this.specificReasonControlName, new
|
|
30377
|
+
this.formGroup.addControl(this.specificReasonControlName, new i1$2.FormControl('', {
|
|
30184
30378
|
validators: [
|
|
30185
30379
|
function (control) {
|
|
30186
30380
|
if (_this.inputEmpty(control)) {
|
|
@@ -30242,7 +30436,7 @@
|
|
|
30242
30436
|
return CaseSpecificAccessRequestComponent;
|
|
30243
30437
|
}());
|
|
30244
30438
|
CaseSpecificAccessRequestComponent.CANCEL_LINK_DESTINATION = '/work/my-work/list';
|
|
30245
|
-
CaseSpecificAccessRequestComponent.ɵfac = function CaseSpecificAccessRequestComponent_Factory(t) { return new (t || CaseSpecificAccessRequestComponent)(i0__namespace.ɵɵdirectiveInject(
|
|
30439
|
+
CaseSpecificAccessRequestComponent.ɵfac = function CaseSpecificAccessRequestComponent_Factory(t) { return new (t || CaseSpecificAccessRequestComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$3.FormBuilder), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(CasesService), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(CaseNotifier)); };
|
|
30246
30440
|
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) {
|
|
30247
30441
|
if (rf & 1) {
|
|
30248
30442
|
i0__namespace.ɵɵtemplate(0, CaseSpecificAccessRequestComponent_exui_error_message_0_Template, 1, 1, "exui-error-message", 0);
|
|
@@ -30334,7 +30528,7 @@
|
|
|
30334
30528
|
selector: 'ccd-case-specific-access-request',
|
|
30335
30529
|
templateUrl: './case-specific-access-request.component.html',
|
|
30336
30530
|
}]
|
|
30337
|
-
}], function () { return [{ type:
|
|
30531
|
+
}], function () { return [{ type: i1__namespace$3.FormBuilder }, { type: i1__namespace$1.Router }, { type: CasesService }, { type: i1__namespace$1.ActivatedRoute }, { type: CaseNotifier }]; }, null);
|
|
30338
30532
|
})();
|
|
30339
30533
|
|
|
30340
30534
|
var CaseSpecificAccessSuccessComponent = /** @class */ (function () {
|
|
@@ -30432,7 +30626,7 @@
|
|
|
30432
30626
|
ConditionalShowModule,
|
|
30433
30627
|
CaseHistoryModule,
|
|
30434
30628
|
i9.MatTabsModule,
|
|
30435
|
-
|
|
30629
|
+
i1$2.ReactiveFormsModule,
|
|
30436
30630
|
BannersModule,
|
|
30437
30631
|
LabelSubstitutorModule,
|
|
30438
30632
|
LoadingSpinnerModule,
|
|
@@ -30463,7 +30657,7 @@
|
|
|
30463
30657
|
ConditionalShowModule,
|
|
30464
30658
|
CaseHistoryModule,
|
|
30465
30659
|
i9.MatTabsModule,
|
|
30466
|
-
|
|
30660
|
+
i1$2.ReactiveFormsModule,
|
|
30467
30661
|
BannersModule,
|
|
30468
30662
|
LabelSubstitutorModule,
|
|
30469
30663
|
LoadingSpinnerModule,
|
|
@@ -30487,7 +30681,7 @@
|
|
|
30487
30681
|
ConditionalShowModule,
|
|
30488
30682
|
CaseHistoryModule,
|
|
30489
30683
|
i9.MatTabsModule,
|
|
30490
|
-
|
|
30684
|
+
i1$2.ReactiveFormsModule,
|
|
30491
30685
|
BannersModule,
|
|
30492
30686
|
LabelSubstitutorModule,
|
|
30493
30687
|
LoadingSpinnerModule,
|
|
@@ -30535,9 +30729,9 @@
|
|
|
30535
30729
|
CaseFullAccessViewComponent], []);
|
|
30536
30730
|
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]);
|
|
30537
30731
|
i0__namespace.ɵɵsetComponentScope(CaseViewComponent, [i1__namespace.NgIf, CaseViewerComponent], []);
|
|
30538
|
-
i0__namespace.ɵɵsetComponentScope(CaseChallengedAccessRequestComponent, [i1__namespace.NgIf, ErrorMessageComponent, AlertComponent,
|
|
30539
|
-
i0__namespace.ɵɵsetComponentScope(CaseSpecificAccessRequestComponent, [i1__namespace.NgIf, ErrorMessageComponent, AlertComponent,
|
|
30540
|
-
i0__namespace.ɵɵsetComponentScope(CaseReviewSpecificAccessRequestComponent, [i1__namespace.NgIf, ErrorMessageComponent,
|
|
30732
|
+
i0__namespace.ɵɵsetComponentScope(CaseChallengedAccessRequestComponent, [i1__namespace.NgIf, ErrorMessageComponent, AlertComponent, i1__namespace$3.ɵangular_packages_forms_forms_ba, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, i1__namespace.NgClass, i1__namespace$3.RadioControlValueAccessor, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlName], []);
|
|
30733
|
+
i0__namespace.ɵɵsetComponentScope(CaseSpecificAccessRequestComponent, [i1__namespace.NgIf, ErrorMessageComponent, AlertComponent, i1__namespace$3.ɵangular_packages_forms_forms_ba, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, i1__namespace.NgClass, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlName], []);
|
|
30734
|
+
i0__namespace.ɵɵsetComponentScope(CaseReviewSpecificAccessRequestComponent, [i1__namespace.NgIf, ErrorMessageComponent, i1__namespace$3.ɵangular_packages_forms_forms_ba, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, i1__namespace.NgClass, i1__namespace$3.RadioControlValueAccessor, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlName], []);
|
|
30541
30735
|
|
|
30542
30736
|
var viewerRouting = [
|
|
30543
30737
|
{
|
|
@@ -30697,7 +30891,7 @@
|
|
|
30697
30891
|
this.sessionStorageService = sessionStorageService;
|
|
30698
30892
|
this.selectionSubmitted = new i0.EventEmitter();
|
|
30699
30893
|
this.selectionChanged = new i0.EventEmitter();
|
|
30700
|
-
this.formGroup = new
|
|
30894
|
+
this.formGroup = new i1$2.FormGroup({});
|
|
30701
30895
|
}
|
|
30702
30896
|
CreateCaseFiltersComponent.prototype.ngOnInit = function () {
|
|
30703
30897
|
var _this = this;
|
|
@@ -30755,11 +30949,11 @@
|
|
|
30755
30949
|
});
|
|
30756
30950
|
};
|
|
30757
30951
|
CreateCaseFiltersComponent.prototype.initControls = function () {
|
|
30758
|
-
this.filterJurisdictionControl = new
|
|
30952
|
+
this.filterJurisdictionControl = new i1$2.FormControl('');
|
|
30759
30953
|
this.formGroup.addControl('jurisdiction', this.filterJurisdictionControl);
|
|
30760
|
-
this.filterCaseTypeControl = new
|
|
30954
|
+
this.filterCaseTypeControl = new i1$2.FormControl({ value: '', disabled: true });
|
|
30761
30955
|
this.formGroup.addControl('caseType', this.filterCaseTypeControl);
|
|
30762
|
-
this.filterEventControl = new
|
|
30956
|
+
this.filterEventControl = new i1$2.FormControl({ value: '', disabled: true });
|
|
30763
30957
|
this.formGroup.addControl('event', this.filterEventControl);
|
|
30764
30958
|
};
|
|
30765
30959
|
CreateCaseFiltersComponent.prototype.emitChange = function () {
|
|
@@ -30895,7 +31089,7 @@
|
|
|
30895
31089
|
i0__namespace.ɵɵadvance(1);
|
|
30896
31090
|
i0__namespace.ɵɵtextInterpolate(ctx.startButtonText);
|
|
30897
31091
|
}
|
|
30898
|
-
}, directives: [
|
|
31092
|
+
}, directives: [i1__namespace$3.ɵangular_packages_forms_forms_ba, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.NgForm, i1__namespace$3.SelectControlValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective, i1__namespace$3.NgSelectOption, i1__namespace$3.ɵangular_packages_forms_forms_z, i1__namespace.NgForOf], encapsulation: 2 });
|
|
30899
31093
|
(function () {
|
|
30900
31094
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CreateCaseFiltersComponent, [{
|
|
30901
31095
|
type: i0.Component,
|
|
@@ -30923,15 +31117,15 @@
|
|
|
30923
31117
|
CreateCaseFiltersModule.ɵmod = i0__namespace.ɵɵdefineNgModule({ type: CreateCaseFiltersModule });
|
|
30924
31118
|
CreateCaseFiltersModule.ɵinj = i0__namespace.ɵɵdefineInjector({ imports: [[
|
|
30925
31119
|
i1.CommonModule,
|
|
30926
|
-
|
|
30927
|
-
|
|
31120
|
+
i1$2.FormsModule,
|
|
31121
|
+
i1$2.ReactiveFormsModule,
|
|
30928
31122
|
DefinitionsModule,
|
|
30929
31123
|
ErrorsModule,
|
|
30930
31124
|
]] });
|
|
30931
31125
|
(function () {
|
|
30932
31126
|
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(CreateCaseFiltersModule, { declarations: [CreateCaseFiltersComponent], imports: [i1.CommonModule,
|
|
30933
|
-
|
|
30934
|
-
|
|
31127
|
+
i1$2.FormsModule,
|
|
31128
|
+
i1$2.ReactiveFormsModule,
|
|
30935
31129
|
DefinitionsModule,
|
|
30936
31130
|
ErrorsModule], exports: [CreateCaseFiltersComponent] });
|
|
30937
31131
|
})();
|
|
@@ -30941,8 +31135,8 @@
|
|
|
30941
31135
|
args: [{
|
|
30942
31136
|
imports: [
|
|
30943
31137
|
i1.CommonModule,
|
|
30944
|
-
|
|
30945
|
-
|
|
31138
|
+
i1$2.FormsModule,
|
|
31139
|
+
i1$2.ReactiveFormsModule,
|
|
30946
31140
|
DefinitionsModule,
|
|
30947
31141
|
ErrorsModule,
|
|
30948
31142
|
],
|
|
@@ -31049,7 +31243,7 @@
|
|
|
31049
31243
|
this.onApply = new i0.EventEmitter();
|
|
31050
31244
|
this.onReset = new i0.EventEmitter();
|
|
31051
31245
|
this.onJurisdiction = new i0.EventEmitter();
|
|
31052
|
-
this.formGroup = new
|
|
31246
|
+
this.formGroup = new i1$2.FormGroup({});
|
|
31053
31247
|
}
|
|
31054
31248
|
SearchFiltersComponent.prototype.ngOnInit = function () {
|
|
31055
31249
|
this.selected = {};
|
|
@@ -31126,7 +31320,7 @@
|
|
|
31126
31320
|
};
|
|
31127
31321
|
SearchFiltersComponent.prototype.onCaseTypeIdChange = function () {
|
|
31128
31322
|
var _this = this;
|
|
31129
|
-
this.formGroup = new
|
|
31323
|
+
this.formGroup = new i1$2.FormGroup({});
|
|
31130
31324
|
this.searchInputsReady = false;
|
|
31131
31325
|
this.searchInputs = [];
|
|
31132
31326
|
this.searchService.getSearchInputs(this.selected.jurisdiction.id, this.selected.caseType.id).pipe(operators.tap(function () { return _this.searchInputsReady = true; })).subscribe(function (searchInputs) {
|
|
@@ -31355,16 +31549,16 @@
|
|
|
31355
31549
|
WindowService
|
|
31356
31550
|
], imports: [[
|
|
31357
31551
|
i1.CommonModule,
|
|
31358
|
-
|
|
31359
|
-
|
|
31552
|
+
i1$2.FormsModule,
|
|
31553
|
+
i1$2.ReactiveFormsModule,
|
|
31360
31554
|
PaletteModule,
|
|
31361
31555
|
ConditionalShowModule
|
|
31362
31556
|
]] });
|
|
31363
31557
|
(function () {
|
|
31364
31558
|
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(SearchFiltersModule, { declarations: [SearchFiltersComponent,
|
|
31365
31559
|
SearchFiltersWrapperComponent], imports: [i1.CommonModule,
|
|
31366
|
-
|
|
31367
|
-
|
|
31560
|
+
i1$2.FormsModule,
|
|
31561
|
+
i1$2.ReactiveFormsModule,
|
|
31368
31562
|
PaletteModule,
|
|
31369
31563
|
ConditionalShowModule], exports: [SearchFiltersWrapperComponent] });
|
|
31370
31564
|
})();
|
|
@@ -31374,8 +31568,8 @@
|
|
|
31374
31568
|
args: [{
|
|
31375
31569
|
imports: [
|
|
31376
31570
|
i1.CommonModule,
|
|
31377
|
-
|
|
31378
|
-
|
|
31571
|
+
i1$2.FormsModule,
|
|
31572
|
+
i1$2.ReactiveFormsModule,
|
|
31379
31573
|
PaletteModule,
|
|
31380
31574
|
ConditionalShowModule
|
|
31381
31575
|
],
|
|
@@ -31396,7 +31590,7 @@
|
|
|
31396
31590
|
}]
|
|
31397
31591
|
}], null, null);
|
|
31398
31592
|
})();
|
|
31399
|
-
i0__namespace.ɵɵsetComponentScope(SearchFiltersComponent, [
|
|
31593
|
+
i0__namespace.ɵɵsetComponentScope(SearchFiltersComponent, [i1__namespace$3.ɵangular_packages_forms_forms_ba, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.NgForm, i1__namespace$3.SelectControlValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.NgModel, i1__namespace.NgForOf, i1__namespace$3.NgSelectOption, i1__namespace$3.ɵangular_packages_forms_forms_z, i1__namespace.NgIf, ConditionalShowFormDirective, i1__namespace$3.FormGroupDirective, FieldWriteComponent], []);
|
|
31400
31594
|
i0__namespace.ɵɵsetComponentScope(SearchFiltersWrapperComponent, [i1__namespace.NgIf, SearchFiltersComponent], []);
|
|
31401
31595
|
|
|
31402
31596
|
function SearchResultComponent_table_0_div_4_Template(rf, ctx) {
|
|
@@ -32335,10 +32529,10 @@
|
|
|
32335
32529
|
BrowserService
|
|
32336
32530
|
], imports: [[
|
|
32337
32531
|
i1.CommonModule,
|
|
32338
|
-
i1$
|
|
32532
|
+
i1$7.NgxPaginationModule,
|
|
32339
32533
|
i1$1.RouterModule,
|
|
32340
|
-
|
|
32341
|
-
|
|
32534
|
+
i1$2.FormsModule,
|
|
32535
|
+
i1$2.ReactiveFormsModule,
|
|
32342
32536
|
LabelSubstitutorModule,
|
|
32343
32537
|
PipesModule,
|
|
32344
32538
|
ActivityModule,
|
|
@@ -32347,10 +32541,10 @@
|
|
|
32347
32541
|
]] });
|
|
32348
32542
|
(function () {
|
|
32349
32543
|
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(SearchResultModule, { declarations: [SearchResultComponent], imports: [i1.CommonModule,
|
|
32350
|
-
i1$
|
|
32544
|
+
i1$7.NgxPaginationModule,
|
|
32351
32545
|
i1$1.RouterModule,
|
|
32352
|
-
|
|
32353
|
-
|
|
32546
|
+
i1$2.FormsModule,
|
|
32547
|
+
i1$2.ReactiveFormsModule,
|
|
32354
32548
|
LabelSubstitutorModule,
|
|
32355
32549
|
PipesModule,
|
|
32356
32550
|
ActivityModule,
|
|
@@ -32363,10 +32557,10 @@
|
|
|
32363
32557
|
args: [{
|
|
32364
32558
|
imports: [
|
|
32365
32559
|
i1.CommonModule,
|
|
32366
|
-
i1$
|
|
32560
|
+
i1$7.NgxPaginationModule,
|
|
32367
32561
|
i1$1.RouterModule,
|
|
32368
|
-
|
|
32369
|
-
|
|
32562
|
+
i1$2.FormsModule,
|
|
32563
|
+
i1$2.ReactiveFormsModule,
|
|
32370
32564
|
LabelSubstitutorModule,
|
|
32371
32565
|
PipesModule,
|
|
32372
32566
|
ActivityModule,
|
|
@@ -32386,7 +32580,7 @@
|
|
|
32386
32580
|
}]
|
|
32387
32581
|
}], null, null);
|
|
32388
32582
|
})();
|
|
32389
|
-
i0__namespace.ɵɵsetComponentScope(SearchResultComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, FieldReadComponent, LabelSubstitutorDirective, ActivityComponent, PaginationComponent], [i1__namespace.DecimalPipe, i1__namespace$
|
|
32583
|
+
i0__namespace.ɵɵsetComponentScope(SearchResultComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, FieldReadComponent, LabelSubstitutorDirective, ActivityComponent, PaginationComponent], [i1__namespace.DecimalPipe, i1__namespace$7.PaginatePipe, CaseReferencePipe, SortSearchResultPipe]);
|
|
32390
32584
|
|
|
32391
32585
|
var ComplexFieldOverride = /** @class */ (function () {
|
|
32392
32586
|
function ComplexFieldOverride() {
|