@hmcts/ccd-case-ui-toolkit 7.2.8 → 7.2.10

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.
@@ -1321,7 +1321,6 @@ class CaseEditorConfig {
1321
1321
  case_flags_refdata_api_url;
1322
1322
  rd_common_data_api_url;
1323
1323
  case_data_store_api_url;
1324
- enable_restricted_case_access;
1325
1324
  enable_case_file_view_version_1_1;
1326
1325
  icp_enabled;
1327
1326
  icp_jurisdictions;
@@ -15067,7 +15066,7 @@ class FileUploadStateService {
15067
15066
  const _c0$R = ["fileInput"];
15068
15067
  const _c1$l = a0 => ({ "form-group-error bottom-30": a0 });
15069
15068
  function WriteDocumentFieldComponent_span_6_Template(rf, ctx) { if (rf & 1) {
15070
- i0.ɵɵelementStart(0, "span", 15)(1, "markdown");
15069
+ i0.ɵɵelementStart(0, "span", 12)(1, "markdown");
15071
15070
  i0.ɵɵtext(2);
15072
15071
  i0.ɵɵpipe(3, "rpxTranslate");
15073
15072
  i0.ɵɵelementEnd()();
@@ -15077,7 +15076,7 @@ function WriteDocumentFieldComponent_span_6_Template(rf, ctx) { if (rf & 1) {
15077
15076
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, ctx_r1.caseField.hint_text));
15078
15077
  } }
15079
15078
  function WriteDocumentFieldComponent_ccd_read_document_field_11_Template(rf, ctx) { if (rf & 1) {
15080
- i0.ɵɵelement(0, "ccd-read-document-field", 16);
15079
+ i0.ɵɵelement(0, "ccd-read-document-field", 13);
15081
15080
  } if (rf & 2) {
15082
15081
  const ctx_r1 = i0.ɵɵnextContext();
15083
15082
  i0.ɵɵproperty("caseField", ctx_r1.caseField);
@@ -15089,7 +15088,6 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
15089
15088
  dialog;
15090
15089
  fileUploadStateService;
15091
15090
  jurisdictionService;
15092
- rpxTranslationService;
15093
15091
  static DOCUMENT_URL = 'document_url';
15094
15092
  static DOCUMENT_BINARY_URL = 'document_binary_url';
15095
15093
  static DOCUMENT_FILENAME = 'document_filename';
@@ -15100,7 +15098,6 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
15100
15098
  static UPLOAD_ERROR_INVALID_FORMAT = 'Document format is not supported';
15101
15099
  static UPLOAD_WAITING_FILE_STATUS = 'Uploading...';
15102
15100
  static ERROR_UPLOADING_FILE = 'Error Uploading File';
15103
- static NO_FILE_CHOSED = 'No file chosen';
15104
15101
  fileInput;
15105
15102
  selectedFile;
15106
15103
  valid = true;
@@ -15112,13 +15109,12 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
15112
15109
  dialogSubscription;
15113
15110
  caseNotifierSubscription;
15114
15111
  jurisdictionSubs;
15115
- fileName = WriteDocumentFieldComponent.NO_FILE_CHOSED;
15116
15112
  uploadedDocument;
15117
15113
  dialogConfig;
15118
15114
  secureModeOn;
15119
15115
  jurisdictionId;
15120
15116
  caseTypeId;
15121
- constructor(appConfig, caseNotifier, documentManagement, dialog, fileUploadStateService, jurisdictionService, rpxTranslationService) {
15117
+ constructor(appConfig, caseNotifier, documentManagement, dialog, fileUploadStateService, jurisdictionService) {
15122
15118
  super();
15123
15119
  this.appConfig = appConfig;
15124
15120
  this.caseNotifier = caseNotifier;
@@ -15126,15 +15122,9 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
15126
15122
  this.dialog = dialog;
15127
15123
  this.fileUploadStateService = fileUploadStateService;
15128
15124
  this.jurisdictionService = jurisdictionService;
15129
- this.rpxTranslationService = rpxTranslationService;
15130
15125
  }
15131
15126
  ngOnInit() {
15132
15127
  this.secureModeOn = this.appConfig.getDocumentSecureMode();
15133
- if (this.rpxTranslationService.language === 'cy') {
15134
- this.rpxTranslationService.getTranslation$(WriteDocumentFieldComponent.NO_FILE_CHOSED).subscribe((translation) => {
15135
- this.fileName = translation;
15136
- });
15137
- }
15138
15128
  if (this.secureModeOn) {
15139
15129
  this.subscribeToCaseDetails();
15140
15130
  }
@@ -15193,7 +15183,6 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
15193
15183
  }
15194
15184
  else if (fileInput.target.files[0]) {
15195
15185
  this.selectedFile = fileInput.target.files[0];
15196
- this.fileName = fileInput.target.files[0].name;
15197
15186
  this.displayFileUploadMessages(WriteDocumentFieldComponent.UPLOAD_WAITING_FILE_STATUS);
15198
15187
  const documentUpload = this.buildDocumentUploadData(this.selectedFile);
15199
15188
  this.fileUploadStateService.setUploadInProgress(true);
@@ -15428,13 +15417,13 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
15428
15417
  this.valid = false;
15429
15418
  this.fileUploadStateService.setUploadInProgress(false);
15430
15419
  }
15431
- static ɵfac = function WriteDocumentFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WriteDocumentFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(i1$3.MatLegacyDialog), i0.ɵɵdirectiveInject(FileUploadStateService), i0.ɵɵdirectiveInject(JurisdictionService), i0.ɵɵdirectiveInject(i1.RpxTranslationService)); };
15420
+ static ɵfac = function WriteDocumentFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WriteDocumentFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(i1$3.MatLegacyDialog), i0.ɵɵdirectiveInject(FileUploadStateService), i0.ɵɵdirectiveInject(JurisdictionService)); };
15432
15421
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) { if (rf & 1) {
15433
15422
  i0.ɵɵviewQuery(_c0$R, 5);
15434
15423
  } if (rf & 2) {
15435
15424
  let _t;
15436
15425
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fileInput = _t.first);
15437
- } }, features: [i0.ɵɵInheritDefinitionFeature], decls: 27, vars: 28, consts: [["fileInput", ""], [1, "form-group", 3, "ngClass"], [3, "for"], [1, "form-label"], ["class", "form-hint", 4, "ngIf"], ["role", "alert", "tabindex", "0", 1, "error-message", 3, "hidden"], [3, "caseField", 4, "ngIf"], [2, "position", "relative"], [3, "click", "keyup", "id"], [1, "upload-file-container"], ["aria-label", "Choose file", 1, "button", "button-secondary", "input-label", 3, "for"], [1, "form-control", "bottom-30"], ["type", "file", 1, "input-upload-file", 3, "keydown.Tab", "change", "id", "accept"], [1, "form-group", "bottom-30"], ["type", "button", "aria-label", "Cancel upload", 1, "button", "button-secondary", 3, "click", "disabled"], [1, "form-hint"], [3, "caseField"]], template: function WriteDocumentFieldComponent_Template(rf, ctx) { if (rf & 1) {
15426
+ } }, features: [i0.ɵɵInheritDefinitionFeature], decls: 20, vars: 23, consts: [["fileInput", ""], [1, "form-group", 3, "ngClass"], [3, "for"], [1, "form-label"], ["class", "form-hint", 4, "ngIf"], ["role", "alert", "tabindex", "0", 1, "error-message", 3, "hidden"], [3, "caseField", 4, "ngIf"], [2, "position", "relative"], [3, "click", "keyup", "id"], ["type", "file", 1, "form-control", "bottom-30", 3, "keydown.Tab", "change", "id", "accept"], [1, "form-group", "bottom-30"], ["type", "button", "aria-label", "Cancel upload", 1, "button", "button-secondary", 3, "click", "disabled"], [1, "form-hint"], [3, "caseField"]], template: function WriteDocumentFieldComponent_Template(rf, ctx) { if (rf & 1) {
15438
15427
  const _r1 = i0.ɵɵgetCurrentView();
15439
15428
  i0.ɵɵelementStart(0, "div", 1)(1, "label", 2)(2, "span", 3);
15440
15429
  i0.ɵɵpipe(3, "ccdFieldLabel");
@@ -15452,62 +15441,49 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
15452
15441
  i0.ɵɵelementStart(12, "div", 7)(13, "div", 8);
15453
15442
  i0.ɵɵlistener("click", function WriteDocumentFieldComponent_Template_div_click_13_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.fileSelectEvent()); })("keyup", function WriteDocumentFieldComponent_Template_div_keyup_13_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.fileSelectEvent()); });
15454
15443
  i0.ɵɵelementEnd();
15455
- i0.ɵɵelementStart(14, "div", 9)(15, "label", 10);
15456
- i0.ɵɵtext(16);
15457
- i0.ɵɵpipe(17, "rpxTranslate");
15458
- i0.ɵɵelementEnd();
15459
- i0.ɵɵelementStart(18, "span", 11)(19, "span");
15460
- i0.ɵɵtext(20);
15444
+ i0.ɵɵelementStart(14, "input", 9, 0);
15445
+ i0.ɵɵlistener("keydown.Tab", function WriteDocumentFieldComponent_Template_input_keydown_Tab_14_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.fileValidationsOnTab()); })("change", function WriteDocumentFieldComponent_Template_input_change_14_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.fileChangeEvent($event, ctx.caseField.field_type.regular_expression)); });
15461
15446
  i0.ɵɵelementEnd()()();
15462
- i0.ɵɵelementStart(21, "input", 12, 0);
15463
- i0.ɵɵlistener("keydown.Tab", function WriteDocumentFieldComponent_Template_input_keydown_Tab_21_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.fileValidationsOnTab()); })("change", function WriteDocumentFieldComponent_Template_input_change_21_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.fileChangeEvent($event, ctx.caseField.field_type.regular_expression)); });
15464
- i0.ɵɵelementEnd()()();
15465
- i0.ɵɵelementStart(23, "div", 13)(24, "button", 14);
15466
- i0.ɵɵlistener("click", function WriteDocumentFieldComponent_Template_button_click_24_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.cancelUpload()); });
15467
- i0.ɵɵtext(25);
15468
- i0.ɵɵpipe(26, "rpxTranslate");
15447
+ i0.ɵɵelementStart(16, "div", 10)(17, "button", 11);
15448
+ i0.ɵɵlistener("click", function WriteDocumentFieldComponent_Template_button_click_17_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.cancelUpload()); });
15449
+ i0.ɵɵtext(18);
15450
+ i0.ɵɵpipe(19, "rpxTranslate");
15469
15451
  i0.ɵɵelementEnd()();
15470
15452
  } if (rf & 2) {
15471
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(26, _c1$l, !ctx.valid));
15453
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(21, _c1$l, !ctx.valid));
15472
15454
  i0.ɵɵadvance();
15473
15455
  i0.ɵɵproperty("for", ctx.id());
15474
15456
  i0.ɵɵadvance();
15475
- i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(3, 16, ctx.caseField));
15457
+ i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(3, 13, ctx.caseField));
15476
15458
  i0.ɵɵadvance(2);
15477
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 18, ctx.caseField));
15459
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 15, ctx.caseField));
15478
15460
  i0.ɵɵadvance(2);
15479
15461
  i0.ɵɵproperty("ngIf", ctx.caseField.hint_text);
15480
15462
  i0.ɵɵadvance();
15481
15463
  i0.ɵɵproperty("hidden", !(ctx.fileUploadMessages && !ctx.valid));
15482
15464
  i0.ɵɵadvance();
15483
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 20, ctx.fileUploadMessages), " ");
15465
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 17, ctx.fileUploadMessages), " ");
15484
15466
  i0.ɵɵadvance(3);
15485
15467
  i0.ɵɵproperty("ngIf", ctx.caseField);
15486
15468
  i0.ɵɵadvance(2);
15487
15469
  i0.ɵɵproperty("id", ctx.createElementId("fileInputWrapper"));
15488
- i0.ɵɵadvance(2);
15489
- i0.ɵɵproperty("for", ctx.id());
15490
- i0.ɵɵadvance();
15491
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 22, "Choose file"), " ");
15492
- i0.ɵɵadvance(4);
15493
- i0.ɵɵtextInterpolate(ctx.fileName);
15494
15470
  i0.ɵɵadvance();
15495
15471
  i0.ɵɵpropertyInterpolate("accept", ctx.caseField.field_type.regular_expression);
15496
15472
  i0.ɵɵproperty("id", ctx.id());
15497
15473
  i0.ɵɵadvance(3);
15498
15474
  i0.ɵɵproperty("disabled", !ctx.isUploadInProgress());
15499
15475
  i0.ɵɵadvance();
15500
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(26, 24, "Cancel upload"), " ");
15501
- } }, styles: [".input-upload-file[_ngcontent-%COMP%]{width:100%;display:none}.upload-file-container[_ngcontent-%COMP%]{display:flex;align-items:baseline}.input-label[_ngcontent-%COMP%]{width:8rem}.form [_nghost-%COMP%] .grey-bar>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>dl.case-field{margin-left:15px;padding-left:15px}.form [_nghost-%COMP%] .grey-bar>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field:not(.form-group-error){border-left:solid 5px #b1b4b6}.form [_nghost-%COMP%] .grey-bar>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field textarea:not(.inline-block){display:block}"] });
15476
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(19, 19, "Cancel upload"));
15477
+ } }, encapsulation: 2 });
15502
15478
  }
15503
15479
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteDocumentFieldComponent, [{
15504
15480
  type: Component,
15505
- args: [{ selector: 'ccd-write-document-field', template: "<div class=\"form-group\" [ngClass]=\"{'form-group-error bottom-30': !valid}\">\n <label [for]=\"id()\">\n <span class=\"form-label\" attr.aria-label=\"{{caseField | ccdFieldLabel}}\">{{(caseField | ccdFieldLabel)}}</span>\n </label>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">\n <markdown>{{ caseField.hint_text | rpxTranslate }}</markdown>\n </span>\n <span class=\"error-message\"\n role=\"alert\"\n tabindex=\"0\"\n [hidden]=\"!(fileUploadMessages && !valid)\">\n {{ fileUploadMessages | rpxTranslate }}\n </span>\n <div>\n <!--<span *ngIf=\"getUploadedFileName()\" class=\"text-16\">File name: {{getUploadedFileName()}}</span>-->\n <ccd-read-document-field *ngIf=\"caseField\" [caseField]=\"caseField\"></ccd-read-document-field>\n </div>\n\n <div style=\"position:relative\">\n <div\n [id]=\"createElementId('fileInputWrapper')\"\n (click)=\"fileSelectEvent()\"\n (keyup)=\"fileSelectEvent()\"\n ></div>\n <div class=\"upload-file-container\">\n <label\n [for]=\"id()\"\n class=\"button button-secondary input-label\"\n aria-label=\"Choose file\">\n {{'Choose file' | rpxTranslate}}\n </label>\n <span class=\"form-control bottom-30\">\n <span>{{fileName}}</span>\n </span>\n </div>\n <input\n [id]=\"id()\"\n type=\"file\"\n class=\"input-upload-file\"\n (keydown.Tab)=\"fileValidationsOnTab()\"\n (change)=\"fileChangeEvent($event, caseField.field_type.regular_expression)\"\n accept=\"{{caseField.field_type.regular_expression}}\"\n #fileInput/>\n </div>\n</div>\n<div class=\"form-group bottom-30\">\n <button\n class=\"button button-secondary\"\n type=\"button\"\n aria-label=\"Cancel upload\"\n (click)=\"cancelUpload()\"\n [disabled]=\"!isUploadInProgress()\">\n {{'Cancel upload' | rpxTranslate}}\n </button>\n</div>\n", styles: [".input-upload-file{width:100%;display:none}.upload-file-container{display:flex;align-items:baseline}.input-label{width:8rem}.form :host::ng-deep .grey-bar>*>.form-group,.form :host::ng-deep .grey-bar>*>*>.form-group,.form :host::ng-deep .grey-bar>*>dl.case-field{margin-left:15px;padding-left:15px}.form :host::ng-deep .grey-bar>*>.form-group:not(.form-group-error),.form :host::ng-deep .grey-bar>*>*>.form-group:not(.form-group-error),.form :host::ng-deep .grey-bar>*>dl.case-field:not(.form-group-error){border-left:solid 5px #b1b4b6}.form :host::ng-deep .grey-bar>*>.form-group input:not(.inline-block),.form :host::ng-deep .grey-bar>*>.form-group select:not(.inline-block),.form :host::ng-deep .grey-bar>*>.form-group textarea:not(.inline-block),.form :host::ng-deep .grey-bar>*>*>.form-group input:not(.inline-block),.form :host::ng-deep .grey-bar>*>*>.form-group select:not(.inline-block),.form :host::ng-deep .grey-bar>*>*>.form-group textarea:not(.inline-block),.form :host::ng-deep .grey-bar>*>dl.case-field input:not(.inline-block),.form :host::ng-deep .grey-bar>*>dl.case-field select:not(.inline-block),.form :host::ng-deep .grey-bar>*>dl.case-field textarea:not(.inline-block){display:block}\n"] }]
15506
- }], () => [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1$3.MatLegacyDialog }, { type: FileUploadStateService }, { type: JurisdictionService }, { type: i1.RpxTranslationService }], { fileInput: [{
15481
+ args: [{ selector: 'ccd-write-document-field', template: "<div class=\"form-group\" [ngClass]=\"{'form-group-error bottom-30': !valid}\">\n <label [for]=\"id()\">\n <span class=\"form-label\" attr.aria-label=\"{{caseField | ccdFieldLabel}}\">{{(caseField | ccdFieldLabel)}}</span>\n </label>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">\n <markdown>{{ caseField.hint_text | rpxTranslate }}</markdown>\n </span>\n <span class=\"error-message\"\n role=\"alert\"\n tabindex=\"0\"\n [hidden]=\"!(fileUploadMessages && !valid)\">\n {{ fileUploadMessages | rpxTranslate }}\n </span>\n <div>\n <!--<span *ngIf=\"getUploadedFileName()\" class=\"text-16\">File name: {{getUploadedFileName()}}</span>-->\n <ccd-read-document-field *ngIf=\"caseField\" [caseField]=\"caseField\"></ccd-read-document-field>\n </div>\n\n <div style='position:relative'>\n <div [id]=\"createElementId('fileInputWrapper')\" (click)=\"fileSelectEvent()\" (keyup)=\"fileSelectEvent()\"></div>\n <input class=\"form-control bottom-30\" [id]=\"id()\" type=\"file\" (keydown.Tab)=\"fileValidationsOnTab()\" (change)=\"fileChangeEvent($event, caseField.field_type.regular_expression)\"\n accept=\"{{caseField.field_type.regular_expression}}\" #fileInput/>\n </div>\n</div>\n<div class=\"form-group bottom-30\">\n <button class=\"button button-secondary\" type=\"button\" aria-label=\"Cancel upload\" (click)=\"cancelUpload()\" [disabled]=\"!isUploadInProgress()\">{{'Cancel upload' | rpxTranslate}}</button>\n</div>\n" }]
15482
+ }], () => [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1$3.MatLegacyDialog }, { type: FileUploadStateService }, { type: JurisdictionService }], { fileInput: [{
15507
15483
  type: ViewChild,
15508
15484
  args: ['fileInput', { static: false }]
15509
15485
  }] }); })();
15510
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteDocumentFieldComponent, { className: "WriteDocumentFieldComponent", filePath: "lib/shared/components/palette/document/write-document-field.component.ts", lineNumber: 25 }); })();
15486
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteDocumentFieldComponent, { className: "WriteDocumentFieldComponent", filePath: "lib/shared/components/palette/document/write-document-field.component.ts", lineNumber: 23 }); })();
15511
15487
 
15512
15488
  class DynamicListPipe {
15513
15489
  static EMPTY = '';
@@ -23768,11 +23744,11 @@ class FieldWriteComponent extends AbstractFieldWriteComponent {
23768
23744
  } if (rf & 2) {
23769
23745
  i0.ɵɵclassProp("grey-bar", ctx.canHaveGreyBar && !ctx.caseField.hiddenCannotChange);
23770
23746
  i0.ɵɵproperty("hidden", ctx.caseField.hidden);
23771
- } }, styles: [".input-upload-file[_ngcontent-%COMP%]{width:100%;display:none}.upload-file-container[_ngcontent-%COMP%]{display:flex;align-items:baseline}.input-label[_ngcontent-%COMP%]{width:8rem}.form [_nghost-%COMP%] .grey-bar>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>dl.case-field{margin-left:15px;padding-left:15px}.form [_nghost-%COMP%] .grey-bar>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field:not(.form-group-error){border-left:solid 5px #b1b4b6}.form [_nghost-%COMP%] .grey-bar>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field textarea:not(.inline-block){display:block}"] });
23747
+ } }, styles: [".form [_nghost-%COMP%] .grey-bar>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>dl.case-field{margin-left:15px;padding-left:15px}.form [_nghost-%COMP%] .grey-bar>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field:not(.form-group-error){border-left:solid 5px #b1b4b6}.form [_nghost-%COMP%] .grey-bar>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field textarea:not(.inline-block){display:block}"] });
23772
23748
  }
23773
23749
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FieldWriteComponent, [{
23774
23750
  type: Component,
23775
- args: [{ selector: 'ccd-field-write', template: "<div [hidden]=\"caseField.hidden\" [class.grey-bar]=\"canHaveGreyBar && !caseField.hiddenCannotChange\">\n <ng-container #fieldContainer></ng-container>\n</div>\n", styles: [".input-upload-file{width:100%;display:none}.upload-file-container{display:flex;align-items:baseline}.input-label{width:8rem}.form :host::ng-deep .grey-bar>*>.form-group,.form :host::ng-deep .grey-bar>*>*>.form-group,.form :host::ng-deep .grey-bar>*>dl.case-field{margin-left:15px;padding-left:15px}.form :host::ng-deep .grey-bar>*>.form-group:not(.form-group-error),.form :host::ng-deep .grey-bar>*>*>.form-group:not(.form-group-error),.form :host::ng-deep .grey-bar>*>dl.case-field:not(.form-group-error){border-left:solid 5px #b1b4b6}.form :host::ng-deep .grey-bar>*>.form-group input:not(.inline-block),.form :host::ng-deep .grey-bar>*>.form-group select:not(.inline-block),.form :host::ng-deep .grey-bar>*>.form-group textarea:not(.inline-block),.form :host::ng-deep .grey-bar>*>*>.form-group input:not(.inline-block),.form :host::ng-deep .grey-bar>*>*>.form-group select:not(.inline-block),.form :host::ng-deep .grey-bar>*>*>.form-group textarea:not(.inline-block),.form :host::ng-deep .grey-bar>*>dl.case-field input:not(.inline-block),.form :host::ng-deep .grey-bar>*>dl.case-field select:not(.inline-block),.form :host::ng-deep .grey-bar>*>dl.case-field textarea:not(.inline-block){display:block}\n"] }]
23751
+ args: [{ selector: 'ccd-field-write', template: "<div [hidden]=\"caseField.hidden\" [class.grey-bar]=\"canHaveGreyBar && !caseField.hiddenCannotChange\">\n <ng-container #fieldContainer></ng-container>\n</div>\n", styles: [".form :host::ng-deep .grey-bar>*>.form-group,.form :host::ng-deep .grey-bar>*>*>.form-group,.form :host::ng-deep .grey-bar>*>dl.case-field{margin-left:15px;padding-left:15px}.form :host::ng-deep .grey-bar>*>.form-group:not(.form-group-error),.form :host::ng-deep .grey-bar>*>*>.form-group:not(.form-group-error),.form :host::ng-deep .grey-bar>*>dl.case-field:not(.form-group-error){border-left:solid 5px #b1b4b6}.form :host::ng-deep .grey-bar>*>.form-group input:not(.inline-block),.form :host::ng-deep .grey-bar>*>.form-group select:not(.inline-block),.form :host::ng-deep .grey-bar>*>.form-group textarea:not(.inline-block),.form :host::ng-deep .grey-bar>*>*>.form-group input:not(.inline-block),.form :host::ng-deep .grey-bar>*>*>.form-group select:not(.inline-block),.form :host::ng-deep .grey-bar>*>*>.form-group textarea:not(.inline-block),.form :host::ng-deep .grey-bar>*>dl.case-field input:not(.inline-block),.form :host::ng-deep .grey-bar>*>dl.case-field select:not(.inline-block),.form :host::ng-deep .grey-bar>*>dl.case-field textarea:not(.inline-block){display:block}\n"] }]
23776
23752
  }], () => [{ type: i0.ComponentFactoryResolver }, { type: PaletteService }], { caseFields: [{
23777
23753
  type: Input
23778
23754
  }], fieldContainer: [{
@@ -33855,7 +33831,6 @@ class CaseResolver {
33855
33831
  navigationNotifierService;
33856
33832
  router;
33857
33833
  sessionStorage;
33858
- appConfig;
33859
33834
  static EVENT_REGEX = new RegExp('\/trigger\/.*?\/submit$');
33860
33835
  static PARAM_CASE_ID = 'cid';
33861
33836
  static CASE_CREATED_MSG = 'The case has been created successfully';
@@ -33866,13 +33841,12 @@ class CaseResolver {
33866
33841
  // this is achieved with runGuardsAndResolvers: 'always' configuration
33867
33842
  // we cache the case view to avoid retrieving it for each child route
33868
33843
  previousUrl;
33869
- constructor(caseNotifier, draftService, navigationNotifierService, router, sessionStorage, appConfig) {
33844
+ constructor(caseNotifier, draftService, navigationNotifierService, router, sessionStorage) {
33870
33845
  this.caseNotifier = caseNotifier;
33871
33846
  this.draftService = draftService;
33872
33847
  this.navigationNotifierService = navigationNotifierService;
33873
33848
  this.router = router;
33874
33849
  this.sessionStorage = sessionStorage;
33875
- this.appConfig = appConfig;
33876
33850
  router.events.pipe(filter(event => event instanceof NavigationEnd))
33877
33851
  .subscribe((event) => {
33878
33852
  this.previousUrl = event.url;
@@ -33946,8 +33920,8 @@ class CaseResolver {
33946
33920
  this.router.navigate(['/list/case']);
33947
33921
  return of(null);
33948
33922
  }
33949
- // Error 403 and enable-restricted-case-access Launch Darkly flag is enabled, navigate to restricted case access page
33950
- if (error.status === 403 && this.appConfig.getEnableRestrictedCaseAccessConfig()) {
33923
+ // Error 403, navigate to restricted case access page
33924
+ if (error.status === 403) {
33951
33925
  this.router.navigate([`/cases/restricted-case-access/${caseReference}`]);
33952
33926
  return of(null);
33953
33927
  }
@@ -33971,12 +33945,12 @@ class CaseResolver {
33971
33945
  || userDetails.roles.includes('caseworker-privatelaw'))
33972
33946
  ? this.router.navigate([CaseResolver.defaultWAPage]) : this.router.navigate([CaseResolver.defaultPage]);
33973
33947
  }
33974
- static ɵfac = function CaseResolver_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseResolver)(i0.ɵɵinject(CaseNotifier), i0.ɵɵinject(DraftService), i0.ɵɵinject(NavigationNotifierService), i0.ɵɵinject(i1$1.Router), i0.ɵɵinject(SessionStorageService), i0.ɵɵinject(AbstractAppConfig)); };
33948
+ static ɵfac = function CaseResolver_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseResolver)(i0.ɵɵinject(CaseNotifier), i0.ɵɵinject(DraftService), i0.ɵɵinject(NavigationNotifierService), i0.ɵɵinject(i1$1.Router), i0.ɵɵinject(SessionStorageService)); };
33975
33949
  static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: CaseResolver, factory: CaseResolver.ɵfac });
33976
33950
  }
33977
33951
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseResolver, [{
33978
33952
  type: Injectable
33979
- }], () => [{ type: CaseNotifier }, { type: DraftService }, { type: NavigationNotifierService }, { type: i1$1.Router }, { type: SessionStorageService }, { type: AbstractAppConfig }], null); })();
33953
+ }], () => [{ type: CaseNotifier }, { type: DraftService }, { type: NavigationNotifierService }, { type: i1$1.Router }, { type: SessionStorageService }], null); })();
33980
33954
 
33981
33955
  class EventTriggerResolver {
33982
33956
  casesService;