@hmcts/ccd-case-ui-toolkit 4.8.3-rc.3 → 4.8.3-rc.4

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.
Files changed (36) hide show
  1. package/RELEASE-NOTES.md +3 -78
  2. package/dist/index.umd.js +87 -46
  3. package/dist/index.umd.js.map +1 -1
  4. package/dist/index.umd.min.js +1 -1
  5. package/dist/index.umd.min.js.LICENSE.txt +1 -1
  6. package/dist/index.umd.min.js.map +1 -1
  7. package/dist/shared/components/case-editor/case-access-utils/index.d.ts +3 -2
  8. package/dist/shared/components/case-editor/case-access-utils/index.js +31 -0
  9. package/dist/shared/components/case-editor/case-access-utils/index.js.map +1 -1
  10. package/dist/shared/components/case-editor/case-access-utils/index.metadata.json +1 -1
  11. package/dist/shared/components/case-editor/services/cases.service.d.ts +2 -1
  12. package/dist/shared/components/case-editor/services/cases.service.js +17 -26
  13. package/dist/shared/components/case-editor/services/cases.service.js.map +1 -1
  14. package/dist/shared/components/case-editor/services/cases.service.metadata.json +1 -1
  15. package/dist/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts +1 -0
  16. package/dist/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +10 -3
  17. package/dist/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js.map +1 -1
  18. package/dist/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.metadata.json +1 -1
  19. package/dist/shared/components/case-viewer/case-specific-access-request/case-specific-access-request.component.d.ts +3 -1
  20. package/dist/shared/components/case-viewer/case-specific-access-request/case-specific-access-request.component.js +21 -1
  21. package/dist/shared/components/case-viewer/case-specific-access-request/case-specific-access-request.component.js.map +1 -1
  22. package/dist/shared/components/case-viewer/case-specific-access-request/case-specific-access-request.component.metadata.json +1 -1
  23. package/dist/shared/components/case-viewer/case-viewer.component.d.ts +1 -0
  24. package/dist/shared/components/case-viewer/case-viewer.component.js +7 -2
  25. package/dist/shared/components/case-viewer/case-viewer.component.js.map +1 -1
  26. package/dist/shared/components/case-viewer/case-viewer.component.metadata.json +1 -1
  27. package/dist/shared/components/palette/case-link/write-case-link-field.component.js +0 -2
  28. package/dist/shared/components/palette/case-link/write-case-link-field.component.js.map +1 -1
  29. package/dist/shared/components/palette/document/write-document-field.component.js +0 -3
  30. package/dist/shared/components/palette/document/write-document-field.component.js.map +1 -1
  31. package/dist/shared/domain/case-view/specific-access-request.model.d.ts +0 -2
  32. package/dist/shared/services/document-management/document-management.service.d.ts +0 -1
  33. package/dist/shared/services/document-management/document-management.service.js +0 -8
  34. package/dist/shared/services/document-management/document-management.service.js.map +1 -1
  35. package/dist/shared/services/document-management/document-management.service.metadata.json +1 -1
  36. package/package.json +1 -1
package/RELEASE-NOTES.md CHANGED
@@ -3,6 +3,9 @@
3
3
  ### Version 4.3.6-hotfix-EUI-4404
4
4
  **EUI-4404** Fix rendering of read-only Collection field within editable Complex field
5
5
 
6
+ ### Version 4.7.6-hearings-tab
7
+ **EUI-4441** Add hearings tab in case details
8
+
6
9
  ### Version 4.7.0-EUI-4412-order-fields-CYA-page
7
10
  **EUI-4414** Field order on the CYA page changes
8
11
 
@@ -55,15 +58,6 @@
55
58
  **EUI-4344** Document uploaded shows incorrect name
56
59
  **EUI-4377** removing unwanted html tags from title
57
60
 
58
- ### Version 4.2.3
59
- **EUI-3425** Hotfix for work already done. Secure uploading for new cases
60
-
61
- ### Version 4.2.2
62
- **EUI-4161** Turn HRS documentLink URLs into relative URLs, as is done for dm-store URLs
63
-
64
- ### Version 4.2.1
65
- **EUI-3425** Update Document Management Service to call new document upload API in ccd-case-ui-toolkit
66
- **EUI-3426** Repoint node layer at the new document store API
67
61
 
68
62
  ### Version 4.2.3
69
63
  **EUI-3425** Hotfix for work already done. Secure uploading for new cases
@@ -200,75 +194,6 @@ fixed an issue with the rendering of complex collections on the Case Details tab
200
194
  **EUI-3868** "Retain Hidden Value" matrix - support for Scenarios 5 and 8 for "retain = true"
201
195
  **EUI-2744** EventToComplexTypes regression with hidden fields
202
196
  **EUI-4106** Show/hide functionality
203
- ### Version 4.0.0-activity-tracker-unauthorised-beta
204
- **EUI-4226** Fixed an issue with 401/403 errors ignoring that the user is unauthorised.
205
-
206
- ### Version 3.1.5-complex-hidden-collection-show
207
- **EUI-3983** Fixed issue with show fields displaying momentarily before show-condition logic evaluated
208
-
209
- ### Version 3.1.6-case-field-labels-showing-on-summary-screen-when-complex-type-is-hidden
210
- **EUI-2276** Case field showing on summary screen when complex type field is hidden
211
-
212
- ### Version 3.1.5-nested-multi-select-labels-theta
213
- **EUI-3581** Fixed an issue with label placeholders not working for multiselects within complex fields or collections. Also fixed an issue with FixedRadioList fields showing the code, not the label. Finally,
214
- fixed an issue with the rendering of complex collections on the Case Details tabs.
215
-
216
- ### Version 3.1.5-datetime-picker-validation
217
- **EUI-4118** Add and improve validation to datetime picker
218
-
219
- ### Version 3.1.5-datetime-picker-validation
220
- **EUI-4118** Add and improve validation to datetime picker
221
-
222
- ### Version 4.1.0
223
- **EUI-2027** Button Labels (AA)
224
- **EUI-2030** Colour Contrast (AA)
225
- **EUI-3155** Non-Descriptive Headings (AA) - issues 02, 06, 05 (part of it)
226
- **EUI-4118** Mandatory datetime picker fields are not giving required field errors
227
- **EUI-1621** Date/time DISPLAY for Workbasket & Search Input & Results
228
- **EUI-1692** DateTime Entry & Display Formatting for Complex Types
229
- **EUI-2792** Date and Time entry (Testing Story)
230
- **EUI-4155** WA post-MVP Pagination- Angular - My tasks (in Tasks list) - CCD UI Toolkit
231
- **EUI-3049** Wrap and restyle date time picker component
232
- **EUI-3051** Handle #DATETIMEENTRY field context
233
- **EUI-3581** Field interpolation does not work for the field type MultiSelectList
234
- **EUI-4244** SSCS - Midevent callbacks sending empty fields for optional empty document
235
-
236
- ### Version 4.0.0
237
- **EUI-4227** Fixed an error with show/hide not working quite right in some configurations.
238
- **EUI-2022** ExUI - Error Messages (Complex Type)
239
- **EUI-4033** Ensured complex fields were interpolated on Check Your Answers page
240
- **EUI-4077** Ensuring searchForCompletable not called if user is pui-case-manager
241
- **EUI-2027** Accessibility amends for button labels
242
- **EUI-3155** Accessibility amends for non-descriptive headings
243
- **EUI-3550** Replace heading tags with spans on case edit pages
244
- **EUI-2792** Datetime picker fixes after testing integration with webapp
245
- **EUI-3825** Fix for missing FTPA tab contents.
246
- **EUI-2017** ExUI - Navigate in table using keyboard
247
- **EUI-2022** ExUI - Error Messages (A)
248
- **EUI-2023** ExUI - Labels (A)
249
- **EUI-3538** ExUI - FieldShowCondition failing on SearchInputFields and WorkBasketInputFields
250
- **EUI-3466** ExUI - Spinner issue in demo MO unassigned cases page
251
- **EUI-3497** ExUI - Unassigned cases does not show all unassigned cases
252
- **EUI-3049** Create datetime picker for use in write date fields (and edit read date fields for consistency)
253
- **EUI-3732** ExUI - Breathing space data not persisted on Previous button click with ExpUI Demo
254
- **EUI-2569** ExUI - Labels not displaying in Case Heading
255
- **EUI-3870** ExUI - Unresponsive and 'laggy' show-hide conditions
256
- **EUI-3682** Callback Error still not showing proper error message in XUI screen
257
- **EUI-3505** Applied fix to disable and enable collection remove button based on CRUD permissions
258
- **EUI-2039** Changed Date Input fields to conform to accessibility standards
259
- **EUI-2029** WCAG AA Status Message Fixes
260
- **EUI-2739** Fix "retain hidden fields" functionality for Complex collection, nested Complex, and nested Complex collection types
261
- **EUI-3622** Re-evaluate "retain hidden value" matrix linked to acceptance criteria
262
- **EUI-3868** "Retain Hidden Value" matrix - support for Scenarios 5 and 8 for "retain = true"
263
- **EUI-2744** EventToComplexTypes regression with hidden fields
264
- **EUI-4106** Show/hide functionality
265
-
266
- ### Version 3.1.5-nested-multi-select-labels-theta
267
- **EUI-3581** Fixed an issue with label placeholders not working for multiselects within complex fields or collections. Also fixed an issue with FixedRadioList fields showing the code, not the label. Finally,
268
- fixed an issue with the rendering of complex collections on the Case Details tabs.
269
-
270
- ### Version 3.1.5-datetime-picker-validation
271
- **EUI-4118** Add and improve validation to datetime picker
272
197
 
273
198
  ### Version 3.1.5-nested-multi-select-labels-theta
274
199
  **EUI-3581** Fixed an issue with label placeholders not working for multiselects within complex fields or collections. Also fixed an issue with FixedRadioList fields showing the code, not the label. Finally,
package/dist/index.umd.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @hmcts/ccd-case-ui-toolkit - Case UI Toolkit
3
- * @version v4.8.3-rc.3
3
+ * @version v4.8.3-rc.4
4
4
  * @link undefined
5
5
  * @license MIT
6
6
  */
@@ -17166,6 +17166,8 @@ var CaseAccessUtils = /** @class */ (function () {
17166
17166
  function CaseAccessUtils() {
17167
17167
  }
17168
17168
  CaseAccessUtils.prototype.getMappedRoleCategory = function (roles, roleCategories) {
17169
+ if (roles === void 0) { roles = []; }
17170
+ if (roleCategories === void 0) { roleCategories = []; }
17169
17171
  var roleKeywords = roles.join().split('-').join().split(',');
17170
17172
  if (this.roleOrCategoryExists(CaseAccessUtils.JUDGE_ROLE, CaseAccessUtils.JUDGE_ROLE_CATEGORY, roleKeywords, roleCategories)) {
17171
17173
  return CaseAccessUtils.JUDGE_ROLE_CATEGORY;
@@ -17209,6 +17211,35 @@ var CaseAccessUtils = /** @class */ (function () {
17209
17211
  }
17210
17212
  return roleName;
17211
17213
  };
17214
+ CaseAccessUtils.prototype.getAMPayload = function (assignerId, actorId, roleName, roleCategory, grantType, caseId, details, beginTime, endTime) {
17215
+ if (beginTime === void 0) { beginTime = null; }
17216
+ if (endTime === void 0) { endTime = null; }
17217
+ var payload = {
17218
+ roleRequest: {
17219
+ assignerId: assignerId
17220
+ },
17221
+ requestedRoles: [{
17222
+ actorIdType: 'IDAM',
17223
+ actorId: actorId,
17224
+ roleType: 'CASE',
17225
+ roleName: roleName,
17226
+ classification: 'PUBLIC',
17227
+ roleCategory: roleCategory,
17228
+ grantType: grantType,
17229
+ beginTime: beginTime,
17230
+ endTime: endTime,
17231
+ attributes: {
17232
+ caseId: caseId
17233
+ },
17234
+ notes: [{
17235
+ userId: assignerId,
17236
+ time: new Date(),
17237
+ comment: JSON.stringify(details)
17238
+ }]
17239
+ }]
17240
+ };
17241
+ return payload;
17242
+ };
17212
17243
  // User role mapping
17213
17244
  CaseAccessUtils.JUDGE_ROLE = 'judge';
17214
17245
  CaseAccessUtils.JUDGE_ROLE_CATEGORY = 'JUDICIAL';
@@ -19468,32 +19499,23 @@ var CasesService = /** @class */ (function () {
19468
19499
  }
19469
19500
  var roleCategory = camUtils.getMappedRoleCategory(userInfo.roles, userInfo.roleCategories);
19470
19501
  var roleName = camUtils.getAMRoleName('challenged', roleCategory);
19471
- var payload = {
19472
- roleRequest: {
19473
- assignerId: userInfo.id
19474
- },
19475
- requestedRoles: [{
19476
- actorIdType: 'IDAM',
19477
- actorId: userInfo.id,
19478
- roleType: 'CASE',
19479
- roleName: roleName,
19480
- classification: 'PUBLIC',
19481
- roleCategory: roleCategory,
19482
- grantType: 'CHALLENGED',
19483
- beginTime: new Date(),
19484
- endTime: new Date(new Date().setUTCHours(23, 59, 59, 999)),
19485
- attributes: {
19486
- caseId: caseId
19487
- },
19488
- notes: [{
19489
- userId: userInfo.id,
19490
- time: new Date(),
19491
- comment: JSON.stringify(car)
19492
- }
19493
- ]
19494
- }]
19495
- };
19496
- return this.http.post("" + this.appConfig.getCamRoleAssignmentsApiUrl(), payload);
19502
+ var beginTime = new Date();
19503
+ var endTime = new Date(new Date().setUTCHours(23, 59, 59, 999));
19504
+ var payload = camUtils.getAMPayload(userInfo.id, userInfo.id, roleName, roleCategory, 'CHALLENGED', caseId, car, beginTime, endTime);
19505
+ return this.http.post(this.appConfig.getCamRoleAssignmentsApiUrl() + "/challenged", payload);
19506
+ };
19507
+ CasesService.prototype.createSpecificAccessRequest = function (caseId, sar) {
19508
+ // Assignment API endpoint
19509
+ var userInfoStr = this.sessionStorageService.getItem('userDetails');
19510
+ var camUtils = new case_access_utils_1.CaseAccessUtils();
19511
+ var userInfo;
19512
+ if (userInfoStr) {
19513
+ userInfo = JSON.parse(userInfoStr);
19514
+ }
19515
+ var roleCategory = camUtils.getMappedRoleCategory(userInfo.roles, userInfo.roleCategories);
19516
+ var roleName = camUtils.getAMRoleName('specific', roleCategory);
19517
+ var payload = camUtils.getAMPayload(null, userInfo.id, roleName, roleCategory, 'SPECIFIC', caseId, sar);
19518
+ return this.http.post(this.appConfig.getCamRoleAssignmentsApiUrl() + "/specific", payload);
19497
19519
  };
19498
19520
  var CasesService_1;
19499
19521
  // Internal (UI) API
@@ -21395,6 +21417,7 @@ var CaseFullAccessViewComponent = /** @class */ (function () {
21395
21417
  this.hasPrint = true;
21396
21418
  this.hasEventSelector = true;
21397
21419
  this.prependedTabs = [];
21420
+ this.appendedTabs = [];
21398
21421
  this.BANNER = domain_1.DisplayMode.BANNER;
21399
21422
  this.triggerTextStart = CaseFullAccessViewComponent_1.TRIGGER_TEXT_START;
21400
21423
  this.triggerTextIgnoreWarnings = CaseFullAccessViewComponent_1.TRIGGER_TEXT_CONTINUE;
@@ -21484,7 +21507,7 @@ var CaseFullAccessViewComponent = /** @class */ (function () {
21484
21507
  }
21485
21508
  };
21486
21509
  CaseFullAccessViewComponent.prototype.hasTabsPresent = function () {
21487
- return this.sortedTabs.length > 0 || this.prependedTabs.length > 0;
21510
+ return this.sortedTabs.length > 0 || this.prependedTabs.length > 0 || this.appendedTabs.length > 0;
21488
21511
  };
21489
21512
  CaseFullAccessViewComponent.prototype.callbackErrorsNotify = function (callbackErrorsContext) {
21490
21513
  this.ignoreWarning = callbackErrorsContext.ignore_warning;
@@ -21533,7 +21556,9 @@ var CaseFullAccessViewComponent = /** @class */ (function () {
21533
21556
  CaseFullAccessViewComponent.prototype.tabChanged = function (tabChangeEvent) {
21534
21557
  var tab = tabChangeEvent.tab['_viewContainerRef'];
21535
21558
  var id = tab.element.nativeElement.id;
21536
- if (tabChangeEvent.index <= 1 && this.prependedTabs.length) {
21559
+ var tabsLengthBeforeAppended = this.prependedTabs.length + this.caseDetails.tabs.length;
21560
+ if ((tabChangeEvent.index <= 1 && this.prependedTabs.length) ||
21561
+ (tabChangeEvent.index >= tabsLengthBeforeAppended && this.appendedTabs.length)) {
21537
21562
  this.router.navigate([id], { relativeTo: this.route });
21538
21563
  }
21539
21564
  else {
@@ -21616,6 +21641,10 @@ var CaseFullAccessViewComponent = /** @class */ (function () {
21616
21641
  core_1.Input(),
21617
21642
  __metadata("design:type", Array)
21618
21643
  ], CaseFullAccessViewComponent.prototype, "prependedTabs", void 0);
21644
+ __decorate([
21645
+ core_1.Input(),
21646
+ __metadata("design:type", Array)
21647
+ ], CaseFullAccessViewComponent.prototype, "appendedTabs", void 0);
21619
21648
  __decorate([
21620
21649
  core_1.ViewChild('tabGroup'),
21621
21650
  __metadata("design:type", material_1.MatTabGroup)
@@ -21898,11 +21927,13 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
21898
21927
  var core_1 = __webpack_require__(57208);
21899
21928
  var forms_1 = __webpack_require__(92985);
21900
21929
  var router_1 = __webpack_require__(92302);
21930
+ var case_editor_1 = __webpack_require__(27070);
21901
21931
  var models_1 = __webpack_require__(3234);
21902
21932
  var CaseSpecificAccessRequestComponent = /** @class */ (function () {
21903
- function CaseSpecificAccessRequestComponent(fb, router, route) {
21933
+ function CaseSpecificAccessRequestComponent(fb, router, casesService, route) {
21904
21934
  this.fb = fb;
21905
21935
  this.router = router;
21936
+ this.casesService = casesService;
21906
21937
  this.route = route;
21907
21938
  this.collapsed = false;
21908
21939
  this.submitted = false;
@@ -21940,6 +21971,7 @@ var CaseSpecificAccessRequestComponent = /** @class */ (function () {
21940
21971
  this.formGroup.get(this.specificReasonControlName).setValue('');
21941
21972
  };
21942
21973
  CaseSpecificAccessRequestComponent.prototype.onSubmit = function () {
21974
+ var _this = this;
21943
21975
  this.submitted = true;
21944
21976
  if (this.formGroup.get(this.specificReasonControlName).invalid) {
21945
21977
  this.errorMessage = {
@@ -21948,6 +21980,22 @@ var CaseSpecificAccessRequestComponent = /** @class */ (function () {
21948
21980
  fieldId: 'specific-reason',
21949
21981
  };
21950
21982
  }
21983
+ // Initiate Specific Access Request
21984
+ if (this.formGroup.valid) {
21985
+ // Get the Case Reference (for which access is being requested) from the ActivatedRouteSnapshot data
21986
+ var caseId = this.route.snapshot.data.case.case_id;
21987
+ var specificAccessRequest = {
21988
+ specificReason: this.formGroup.get(this.specificReasonControlName).value
21989
+ };
21990
+ this.$roleAssignmentResponseSubscription = this.casesService.createSpecificAccessRequest(caseId, specificAccessRequest)
21991
+ .subscribe(function (_response) {
21992
+ // Would have been nice to pass the caseId within state.data, but this isn't part of NavigationExtras until
21993
+ // Angular 7.2!
21994
+ _this.router.navigate(['success'], { relativeTo: _this.route });
21995
+ }, function (_error) {
21996
+ // Navigate to error page
21997
+ });
21998
+ }
21951
21999
  };
21952
22000
  CaseSpecificAccessRequestComponent.prototype.onCancel = function () {
21953
22001
  // Navigate to the page before previous one (should be Search Results or Case List page, for example)
@@ -21965,6 +22013,7 @@ var CaseSpecificAccessRequestComponent = /** @class */ (function () {
21965
22013
  }),
21966
22014
  __metadata("design:paramtypes", [forms_1.FormBuilder,
21967
22015
  router_1.Router,
22016
+ case_editor_1.CasesService,
21968
22017
  router_1.ActivatedRoute])
21969
22018
  ], CaseSpecificAccessRequestComponent);
21970
22019
  return CaseSpecificAccessRequestComponent;
@@ -22175,6 +22224,7 @@ var CaseViewerComponent = /** @class */ (function () {
22175
22224
  this.hasPrint = true;
22176
22225
  this.hasEventSelector = true;
22177
22226
  this.prependedTabs = [];
22227
+ this.appendedTabs = [];
22178
22228
  }
22179
22229
  CaseViewerComponent_1 = CaseViewerComponent;
22180
22230
  CaseViewerComponent.prototype.ngOnInit = function () {
@@ -22218,7 +22268,7 @@ var CaseViewerComponent = /** @class */ (function () {
22218
22268
  // remove once Access management goes live
22219
22269
  CaseViewerComponent.prototype.setMockData = function (caseDetails) {
22220
22270
  var accessManagementBasicViewMock = this.appConfig.getAccessManagementBasicViewMock();
22221
- if (accessManagementBasicViewMock.active && !caseDetails.basicFields) {
22271
+ if (accessManagementBasicViewMock && accessManagementBasicViewMock.active && !caseDetails.basicFields) {
22222
22272
  var access_process_index = caseDetails.metadataFields.findIndex(function (metadataField) {
22223
22273
  return metadataField.id === CaseViewerComponent_1.METADATA_FIELD_ACCESS_PROCEES_ID;
22224
22274
  });
@@ -22253,6 +22303,10 @@ var CaseViewerComponent = /** @class */ (function () {
22253
22303
  core_1.Input(),
22254
22304
  __metadata("design:type", Array)
22255
22305
  ], CaseViewerComponent.prototype, "prependedTabs", void 0);
22306
+ __decorate([
22307
+ core_1.Input(),
22308
+ __metadata("design:type", Array)
22309
+ ], CaseViewerComponent.prototype, "appendedTabs", void 0);
22256
22310
  __decorate([
22257
22311
  core_1.Input(),
22258
22312
  __metadata("design:type", domain_1.CaseView)
@@ -25250,13 +25304,11 @@ var WriteCaseLinkFieldComponent = /** @class */ (function (_super) {
25250
25304
  WriteCaseLinkFieldComponent.prototype.ngOnInit = function () {
25251
25305
  if (this.caseField.value) {
25252
25306
  this.caseLinkGroup = this.registerControl(new forms_1.FormGroup({
25253
- 'Id': new forms_1.FormControl('LinkedCase'),
25254
25307
  'CaseReference': new forms_1.FormControl(this.caseField.value.CaseReference),
25255
25308
  }), true);
25256
25309
  }
25257
25310
  else {
25258
25311
  this.caseLinkGroup = this.registerControl(new forms_1.FormGroup({
25259
- 'Id': new forms_1.FormControl('LinkedCase'),
25260
25312
  'CaseReference': new forms_1.FormControl(),
25261
25313
  }), true);
25262
25314
  }
@@ -27761,9 +27813,6 @@ var WriteDocumentFieldComponent = /** @class */ (function (_super) {
27761
27813
  this.displayFileUploadMessages(WriteDocumentFieldComponent_1.UPLOAD_WAITING_FILE_STATUS);
27762
27814
  var documentUpload = this.buildDocumentUploadData(this.selectedFile);
27763
27815
  this.fileUploadStateService.setUploadInProgress(true);
27764
- var uploadFile = this.secureModeOn ?
27765
- this.documentManagement.secureUploadFile(documentUpload) :
27766
- this.documentManagement.uploadFile(documentUpload);
27767
27816
  this.fileUploadSubscription = this.documentManagement.uploadFile(documentUpload).subscribe({
27768
27817
  next: function (resultDocument) { return _this.handleDocumentUploadResult(resultDocument); },
27769
27818
  error: function (error) { return _this.handleDocumentUploadError(error); }
@@ -38472,14 +38521,6 @@ var DocumentManagementService = /** @class */ (function () {
38472
38521
  .pipe(operators_1.delay(DocumentManagementService_1.RESPONSE_DELAY))
38473
38522
  .pipe();
38474
38523
  };
38475
- DocumentManagementService.prototype.secureUploadFile = function (formData) {
38476
- var url = this.appConfig.getDocumentManagementUrlV2();
38477
- var headers = new http_2.HttpHeaders();
38478
- return this.http
38479
- .post(url, formData, { headers: headers, observe: 'body' })
38480
- .pipe(operators_1.delay(DocumentManagementService_1.RESPONSE_DELAY))
38481
- .pipe();
38482
- };
38483
38524
  DocumentManagementService.prototype.getMediaViewerInfo = function (documentFieldValue) {
38484
38525
  var mediaViewerInfo = {
38485
38526
  document_binary_url: this.transformDocumentUrl(documentFieldValue.document_binary_url),
@@ -69173,7 +69214,7 @@ module.exports = "<div *ngIf=\"isDataLoaded()\" class=\"screen-990\">\n <ccd-ac
69173
69214
  /***/ 99839:
69174
69215
  /***/ ((module) => {
69175
69216
 
69176
- module.exports = "<!-- Generic error heading and error message to be displayed only if there are no specific callback errors or warnings, or no error details -->\n<div *ngIf=\"error && !(error.callbackErrors || error.callbackWarnings || error.details)\" class=\"error-summary\"\n role=\"group\" aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h1 class=\"heading-h1 error-summary-heading\" id=\"edit-case-event_error-summary-heading\">\n Something went wrong\n </h1>\n <div class=\"govuk-error-summary__body\" id=\"edit-case-event_error-summary-body\">\n <p>We're working to fix the problem. Try again shortly.</p>\n <p><a href=\"get-help\" target=\"_blank\">Contact us</a> if you're still having problems.</p>\n </div>\n</div>\n<!-- Callback error heading and error message to be displayed if there are specific error details -->\n<div *ngIf=\"error && error.details\" class=\"error-summary\" role=\"group\"\n aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-h2 error-summary-heading\" id=\"edit-case-event_error-summary-heading\">\n The callback data failed validation\n </h2>\n <p>{{error.message}}</p>\n <ul *ngIf=\"error.details?.field_errors\" class=\"error-summary-list\">\n <li *ngFor=\"let fieldError of error.details.field_errors\">\n {{fieldError.message}}\n </li>\n </ul>\n</div>\n<ccd-callback-errors\n [triggerTextContinue]=\"triggerTextStart\"\n [triggerTextIgnore]=\"triggerTextIgnoreWarnings\"\n [callbackErrorsSubject]=\"callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\">\n</ccd-callback-errors>\n<ccd-activity [caseId]=\"caseDetails.case_id\" [displayMode]=\"BANNER\"></ccd-activity>\n<div class=\"grid-row\">\n <div class=\"column-one-half\">\n <ccd-case-header [caseDetails]=\"caseDetails\"></ccd-case-header>\n <div class=\"case-viewer-controls\" *ngIf=\"hasPrint && !isDraft() && isPrintEnabled()\">\n <a id=\"case-viewer-control-print\" routerLink=\"print\" class=\"button button-secondary\">Print</a>\n </div>\n </div>\n <div *ngIf=\"hasEventSelector\" class=\"column-one-half\">\n <ccd-event-trigger [isDisabled]=\"isTriggerButtonDisabled()\" [triggers]=\"caseDetails.triggers\"\n [triggerText]=\"triggerText\" (onTriggerChange)=\"clearErrorsAndWarnings()\"\n (onTriggerSubmit)=\"applyTrigger($event)\"></ccd-event-trigger>\n </div>\n</div>\n<div class=\"grid-row\">\n <div class=\"column-full\">\n <ng-container *ngIf=\"hasTabsPresent()\">\n <mat-tab-group #tabGroup animationDuration=\"0ms\" (selectedTabChange)=\"tabChanged($event)\" [disableRipple]=\"true\">\n <mat-tab *ngFor=\"let tab of prependedTabs\" [id]=\"tab.id\" [label]=\"tab.label\">\n </mat-tab>\n <mat-tab *ngFor=\"let tab of sortedTabs; let curIdx=index\" [id]=\"tab.id\" [label]=\"tab.label\">\n <ng-template matTabContent>\n <table [class]=\"tab.id\">\n <tbody>\n <ng-container *ngFor=\"let field of tab | ccdTabFields | ccdReadFieldsFilter:false :undefined :true : formGroup.controls['data']\">\n <div ccdLabelSubstitutor [caseField]=\"field\" [contextFields]=\"caseFields\" [hidden]=\"field.hidden\">\n <ng-container [ngSwitch]=\"!(field | ccdIsCompound)\">\n <tr *ngSwitchCase=\"true\">\n <th>\n <div class=\"case-viewer-label text-16\">{{field.label}}</div>\n </th>\n <td>\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"formGroup.controls['data']\"\n [caseField]=\"field\" [caseReference]=\"caseDetails.case_id\">\n </ccd-field-read>\n </span>\n </td>\n </tr>\n <tr *ngSwitchCase=\"false\" class=\"compound-field\">\n <th>\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"formGroup.controls['data']\"\n [caseField]=\"field\" [caseReference]=\"caseDetails.case_id\">\n </ccd-field-read>\n </span>\n </th>\n </tr>\n </ng-container>\n </div>\n </ng-container>\n </tbody>\n </table>\n </ng-template>\n </mat-tab>\n </mat-tab-group>\n <router-outlet *ngIf=\"prependedTabs && prependedTabs.length\"></router-outlet>\n </ng-container>\n </div>\n</div>"
69217
+ module.exports = "<!-- Generic error heading and error message to be displayed only if there are no specific callback errors or warnings, or no error details -->\n<div *ngIf=\"error && !(error.callbackErrors || error.callbackWarnings || error.details)\" class=\"error-summary\"\n role=\"group\" aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h1 class=\"heading-h1 error-summary-heading\" id=\"edit-case-event_error-summary-heading\">\n Something went wrong\n </h1>\n <div class=\"govuk-error-summary__body\" id=\"edit-case-event_error-summary-body\">\n <p>We're working to fix the problem. Try again shortly.</p>\n <p><a href=\"get-help\" target=\"_blank\">Contact us</a> if you're still having problems.</p>\n </div>\n</div>\n<!-- Callback error heading and error message to be displayed if there are specific error details -->\n<div *ngIf=\"error && error.details\" class=\"error-summary\" role=\"group\"\n aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-h2 error-summary-heading\" id=\"edit-case-event_error-summary-heading\">\n The callback data failed validation\n </h2>\n <p>{{error.message}}</p>\n <ul *ngIf=\"error.details?.field_errors\" class=\"error-summary-list\">\n <li *ngFor=\"let fieldError of error.details.field_errors\">\n {{fieldError.message}}\n </li>\n </ul>\n</div>\n<ccd-callback-errors\n [triggerTextContinue]=\"triggerTextStart\"\n [triggerTextIgnore]=\"triggerTextIgnoreWarnings\"\n [callbackErrorsSubject]=\"callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\">\n</ccd-callback-errors>\n<ccd-activity [caseId]=\"caseDetails.case_id\" [displayMode]=\"BANNER\"></ccd-activity>\n<div class=\"grid-row\">\n <div class=\"column-one-half\">\n <ccd-case-header [caseDetails]=\"caseDetails\"></ccd-case-header>\n <div class=\"case-viewer-controls\" *ngIf=\"hasPrint && !isDraft() && isPrintEnabled()\">\n <a id=\"case-viewer-control-print\" routerLink=\"print\" class=\"button button-secondary\">Print</a>\n </div>\n </div>\n <div *ngIf=\"hasEventSelector\" class=\"column-one-half\">\n <ccd-event-trigger [isDisabled]=\"isTriggerButtonDisabled()\" [triggers]=\"caseDetails.triggers\"\n [triggerText]=\"triggerText\" (onTriggerChange)=\"clearErrorsAndWarnings()\"\n (onTriggerSubmit)=\"applyTrigger($event)\"></ccd-event-trigger>\n </div>\n</div>\n<div class=\"grid-row\">\n <div class=\"column-full\">\n <ng-container *ngIf=\"hasTabsPresent()\">\n <mat-tab-group #tabGroup animationDuration=\"0ms\" (selectedTabChange)=\"tabChanged($event)\" [disableRipple]=\"true\">\n <mat-tab *ngFor=\"let tab of prependedTabs\" [id]=\"tab.id\" [label]=\"tab.label\">\n </mat-tab>\n <mat-tab *ngFor=\"let tab of sortedTabs; let curIdx=index\" [id]=\"tab.id\" [label]=\"tab.label\">\n <ng-template matTabContent>\n <table [class]=\"tab.id\">\n <tbody>\n <ng-container *ngFor=\"let field of tab | ccdTabFields | ccdReadFieldsFilter:false :undefined :true : formGroup.controls['data']\">\n <div ccdLabelSubstitutor [caseField]=\"field\" [contextFields]=\"caseFields\" [hidden]=\"field.hidden\">\n <ng-container [ngSwitch]=\"!(field | ccdIsCompound)\">\n <tr *ngSwitchCase=\"true\">\n <th>\n <div class=\"case-viewer-label text-16\">{{field.label}}</div>\n </th>\n <td>\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"formGroup.controls['data']\"\n [caseField]=\"field\" [caseReference]=\"caseDetails.case_id\">\n </ccd-field-read>\n </span>\n </td>\n </tr>\n <tr *ngSwitchCase=\"false\" class=\"compound-field\">\n <th>\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"formGroup.controls['data']\"\n [caseField]=\"field\" [caseReference]=\"caseDetails.case_id\">\n </ccd-field-read>\n </span>\n </th>\n </tr>\n </ng-container>\n </div>\n </ng-container>\n </tbody>\n </table>\n </ng-template>\n </mat-tab>\n <mat-tab *ngFor=\"let tab of appendedTabs\" [id]=\"tab.id\" [label]=\"tab.label\">\n </mat-tab>\n </mat-tab-group>\n <router-outlet *ngIf=\"(prependedTabs && prependedTabs.length) || (appendedTabs && appendedTabs.length)\"></router-outlet>\n </ng-container>\n </div>\n</div>\n"
69177
69218
 
69178
69219
  /***/ }),
69179
69220
 
@@ -69208,7 +69249,7 @@ module.exports = "<div *ngIf=\"isDataLoaded()\">\n <ccd-case-viewer [hasPrint
69208
69249
  /***/ 67025:
69209
69250
  /***/ ((module) => {
69210
69251
 
69211
- module.exports = "<div *ngIf=\"isDataLoaded()\">\n <ccd-case-basic-access-view *ngIf=\"!hasStandardAccess()\" [accessType]=\"userAccessType\" [caseDetails]=\"caseDetails\"></ccd-case-basic-access-view>\n <ccd-case-full-access-view *ngIf=\"hasStandardAccess()\" [caseDetails]=\"caseDetails\" [hasPrint]=\"hasPrint\" [hasEventSelector]=\"hasEventSelector\" [prependedTabs]=\"prependedTabs\"></ccd-case-full-access-view>\n</div>\n"
69252
+ module.exports = "<div *ngIf=\"isDataLoaded()\">\n <ccd-case-basic-access-view *ngIf=\"!hasStandardAccess()\" [accessType]=\"userAccessType\" [caseDetails]=\"caseDetails\"></ccd-case-basic-access-view>\n <ccd-case-full-access-view *ngIf=\"hasStandardAccess()\" [caseDetails]=\"caseDetails\" [hasPrint]=\"hasPrint\" [hasEventSelector]=\"hasEventSelector\" [prependedTabs]=\"prependedTabs\" [appendedTabs]=\"appendedTabs\"></ccd-case-full-access-view>\n</div>\n"
69212
69253
 
69213
69254
  /***/ }),
69214
69255