@hmcts/ccd-case-ui-toolkit 4.8.0-rc.2 → 4.8.0-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.
- package/RELEASE-NOTES.md +85 -0
- package/dist/app.config.d.ts +23 -0
- package/dist/app.config.js +3 -0
- package/dist/app.config.js.map +1 -1
- package/dist/app.config.metadata.json +1 -1
- package/dist/cut-styles/shared/components/case-viewer/case-review-specific-access-request/case-review-specific-access-request.component.scss +3 -0
- package/dist/index.umd.js +341 -16
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.LICENSE.txt +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/dist/shared/components/case-viewer/case-review-specific-access-reject/case-review-specific-access-reject.component.d.ts +10 -0
- package/dist/shared/components/case-viewer/case-review-specific-access-reject/case-review-specific-access-reject.component.js +33 -0
- package/dist/shared/components/case-viewer/case-review-specific-access-reject/case-review-specific-access-reject.component.js.map +1 -0
- package/dist/shared/components/case-viewer/case-review-specific-access-reject/case-review-specific-access-reject.component.metadata.json +1 -0
- package/dist/shared/components/case-viewer/case-review-specific-access-reject/index.d.ts +1 -0
- package/dist/shared/components/case-viewer/case-review-specific-access-reject/index.js +7 -0
- package/dist/shared/components/case-viewer/case-review-specific-access-reject/index.js.map +1 -0
- package/dist/shared/components/case-viewer/case-review-specific-access-reject/index.metadata.json +1 -0
- package/dist/shared/components/case-viewer/case-review-specific-access-request/case-review-specific-access-request.component.d.ts +45 -0
- package/dist/shared/components/case-viewer/case-review-specific-access-request/case-review-specific-access-request.component.js +105 -0
- package/dist/shared/components/case-viewer/case-review-specific-access-request/case-review-specific-access-request.component.js.map +1 -0
- package/dist/shared/components/case-viewer/case-review-specific-access-request/case-review-specific-access-request.component.metadata.json +1 -0
- package/dist/shared/components/case-viewer/case-review-specific-access-request/index.d.ts +1 -0
- package/dist/shared/components/case-viewer/case-review-specific-access-request/index.js +7 -0
- package/dist/shared/components/case-viewer/case-review-specific-access-request/index.js.map +1 -0
- package/dist/shared/components/case-viewer/case-review-specific-access-request/index.metadata.json +1 -0
- package/dist/shared/components/case-viewer/case-review-specific-access-request/models/case-review-specific-access-request.enum.d.ts +14 -0
- package/dist/shared/components/case-viewer/case-review-specific-access-request/models/case-review-specific-access-request.enum.js +20 -0
- package/dist/shared/components/case-viewer/case-review-specific-access-request/models/case-review-specific-access-request.enum.js.map +1 -0
- package/dist/shared/components/case-viewer/case-review-specific-access-request/models/case-review-specific-access-request.enum.metadata.json +1 -0
- package/dist/shared/components/case-viewer/case-review-specific-access-request/models/index.d.ts +1 -0
- package/dist/shared/components/case-viewer/case-review-specific-access-request/models/index.js +7 -0
- package/dist/shared/components/case-viewer/case-review-specific-access-request/models/index.js.map +1 -0
- package/dist/shared/components/case-viewer/case-review-specific-access-request/models/index.metadata.json +1 -0
- package/dist/shared/components/case-viewer/case-viewer.module.js +5 -1
- package/dist/shared/components/case-viewer/case-viewer.module.js.map +1 -1
- package/dist/shared/components/case-viewer/case-viewer.module.metadata.json +1 -1
- package/dist/shared/components/case-viewer/viewer.routing.js +34 -12
- package/dist/shared/components/case-viewer/viewer.routing.js.map +1 -1
- package/dist/shared/components/case-viewer/viewer.routing.metadata.json +1 -1
- package/dist/shared/components/palette/case-link/write-case-link-field.component.js +2 -0
- package/dist/shared/components/palette/case-link/write-case-link-field.component.js.map +1 -1
- package/dist/shared/components/palette/complex/cdd-page-fields.pipe.js +1 -1
- package/dist/shared/components/palette/complex/cdd-page-fields.pipe.js.map +1 -1
- package/dist/shared/components/palette/complex/write-complex-field.component.js +1 -1
- package/dist/shared/components/palette/complex/write-complex-field.component.js.map +1 -1
- package/dist/shared/components/palette/complex/write-complex-field.component.metadata.json +1 -1
- package/dist/shared/components/palette/document/write-document-field.component.js +3 -0
- package/dist/shared/components/palette/document/write-document-field.component.js.map +1 -1
- package/dist/shared/domain/case-view/index.d.ts +1 -0
- package/dist/shared/domain/case-view/index.metadata.json +1 -1
- package/dist/shared/domain/case-view/review-specific-access-request.model.d.ts +4 -0
- package/dist/shared/domain/case-view/review-specific-access-request.model.js +3 -0
- package/dist/shared/domain/case-view/review-specific-access-request.model.js.map +1 -0
- package/dist/shared/domain/case-view/review-specific-access-request.model.metadata.json +1 -0
- package/dist/shared/services/document-management/document-management.service.d.ts +1 -0
- package/dist/shared/services/document-management/document-management.service.js +8 -0
- package/dist/shared/services/document-management/document-management.service.js.map +1 -1
- package/dist/shared/services/document-management/document-management.service.metadata.json +1 -1
- package/dist/shared/services/form/form-value.service.d.ts +7 -0
- package/dist/shared/services/form/form-value.service.js +18 -0
- package/dist/shared/services/form/form-value.service.js.map +1 -1
- package/dist/shared/services/form/form-value.service.metadata.json +1 -1
- package/package.json +1 -1
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.0-rc.
|
|
3
|
+
* @version v4.8.0-rc.4
|
|
4
4
|
* @link undefined
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -11511,6 +11511,9 @@ var AbstractAppConfig = /** @class */ (function () {
|
|
|
11511
11511
|
AbstractAppConfig.prototype.getAccessManagementBasicViewMock = function () {
|
|
11512
11512
|
return undefined;
|
|
11513
11513
|
};
|
|
11514
|
+
AbstractAppConfig.prototype.getAccessManagementRequestReviewMockModel = function () {
|
|
11515
|
+
return undefined;
|
|
11516
|
+
};
|
|
11514
11517
|
AbstractAppConfig.prototype.getLocationRefApiUrl = function () {
|
|
11515
11518
|
return undefined;
|
|
11516
11519
|
};
|
|
@@ -17645,6 +17648,227 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
17645
17648
|
__export(__webpack_require__(76764));
|
|
17646
17649
|
|
|
17647
17650
|
|
|
17651
|
+
/***/ }),
|
|
17652
|
+
|
|
17653
|
+
/***/ 12231:
|
|
17654
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
17655
|
+
|
|
17656
|
+
"use strict";
|
|
17657
|
+
|
|
17658
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
17659
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
17660
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17661
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
17662
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17663
|
+
};
|
|
17664
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
17665
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
17666
|
+
};
|
|
17667
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
17668
|
+
var core_1 = __webpack_require__(57208);
|
|
17669
|
+
var router_1 = __webpack_require__(92302);
|
|
17670
|
+
var CaseReviewSpecificAccessRejectComponent = /** @class */ (function () {
|
|
17671
|
+
function CaseReviewSpecificAccessRejectComponent(route) {
|
|
17672
|
+
this.route = route;
|
|
17673
|
+
this.retunToTask = 'Return to the Tasks tab for this case';
|
|
17674
|
+
this.returnToMyTask = 'Return to My tasks';
|
|
17675
|
+
}
|
|
17676
|
+
CaseReviewSpecificAccessRejectComponent.prototype.ngOnInit = function () {
|
|
17677
|
+
this.caseId = this.route.snapshot.data.case.case_id;
|
|
17678
|
+
};
|
|
17679
|
+
CaseReviewSpecificAccessRejectComponent = __decorate([
|
|
17680
|
+
core_1.Component({
|
|
17681
|
+
selector: 'case-review-specific-access-reject',
|
|
17682
|
+
template: __webpack_require__(24959)
|
|
17683
|
+
}),
|
|
17684
|
+
__metadata("design:paramtypes", [router_1.ActivatedRoute])
|
|
17685
|
+
], CaseReviewSpecificAccessRejectComponent);
|
|
17686
|
+
return CaseReviewSpecificAccessRejectComponent;
|
|
17687
|
+
}());
|
|
17688
|
+
exports.CaseReviewSpecificAccessRejectComponent = CaseReviewSpecificAccessRejectComponent;
|
|
17689
|
+
|
|
17690
|
+
|
|
17691
|
+
/***/ }),
|
|
17692
|
+
|
|
17693
|
+
/***/ 84766:
|
|
17694
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
17695
|
+
|
|
17696
|
+
"use strict";
|
|
17697
|
+
|
|
17698
|
+
function __export(m) {
|
|
17699
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
17700
|
+
}
|
|
17701
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
17702
|
+
__export(__webpack_require__(12231));
|
|
17703
|
+
|
|
17704
|
+
|
|
17705
|
+
/***/ }),
|
|
17706
|
+
|
|
17707
|
+
/***/ 24212:
|
|
17708
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
17709
|
+
|
|
17710
|
+
"use strict";
|
|
17711
|
+
|
|
17712
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
17713
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
17714
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17715
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
17716
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17717
|
+
};
|
|
17718
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
17719
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
17720
|
+
};
|
|
17721
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
17722
|
+
var core_1 = __webpack_require__(57208);
|
|
17723
|
+
var forms_1 = __webpack_require__(92985);
|
|
17724
|
+
var router_1 = __webpack_require__(92302);
|
|
17725
|
+
var models_1 = __webpack_require__(46909);
|
|
17726
|
+
var app_config_1 = __webpack_require__(35185);
|
|
17727
|
+
var CaseReviewSpecificAccessRequestComponent = /** @class */ (function () {
|
|
17728
|
+
function CaseReviewSpecificAccessRequestComponent(fb, route, router, appConfig) {
|
|
17729
|
+
this.fb = fb;
|
|
17730
|
+
this.route = route;
|
|
17731
|
+
this.router = router;
|
|
17732
|
+
this.appConfig = appConfig;
|
|
17733
|
+
this.collapsed = false;
|
|
17734
|
+
this.submitted = false;
|
|
17735
|
+
this.genericError = 'There is a problem';
|
|
17736
|
+
this.radioSelectedControlName = 'radioSelected';
|
|
17737
|
+
this.accessReasons = [
|
|
17738
|
+
{ reason: models_1.AccessReason.APPROVE_REQUEST, checked: false },
|
|
17739
|
+
{ reason: models_1.AccessReason.REJECT_REQUEST, checked: false },
|
|
17740
|
+
{ reason: models_1.AccessReason.REQUEST_MORE_INFORMATION, checked: false },
|
|
17741
|
+
];
|
|
17742
|
+
}
|
|
17743
|
+
CaseReviewSpecificAccessRequestComponent.prototype.ngOnInit = function () {
|
|
17744
|
+
// TODO: this ticket is blocked so mocked with those data to go through, they will be removed and implimented with actual data
|
|
17745
|
+
// when dependency resolved
|
|
17746
|
+
this.setMockData();
|
|
17747
|
+
this.title = models_1.ReviewSpecificAccessRequestPageText.TITLE;
|
|
17748
|
+
this.hint = models_1.ReviewSpecificAccessRequestPageText.HINT;
|
|
17749
|
+
this.caseRefLabel = models_1.ReviewSpecificAccessRequestPageText.CASE_REF;
|
|
17750
|
+
this.formGroup = this.fb.group({
|
|
17751
|
+
radioSelected: new forms_1.FormControl(null, forms_1.Validators.required),
|
|
17752
|
+
});
|
|
17753
|
+
};
|
|
17754
|
+
CaseReviewSpecificAccessRequestComponent.prototype.ngOnDestroy = function () {
|
|
17755
|
+
if (this.caseSubscription) {
|
|
17756
|
+
this.caseSubscription.unsubscribe();
|
|
17757
|
+
}
|
|
17758
|
+
};
|
|
17759
|
+
CaseReviewSpecificAccessRequestComponent.prototype.onChange = function () {
|
|
17760
|
+
this.submitted = false;
|
|
17761
|
+
};
|
|
17762
|
+
CaseReviewSpecificAccessRequestComponent.prototype.onSubmit = function () {
|
|
17763
|
+
this.submitted = true;
|
|
17764
|
+
if (this.formGroup.get(this.radioSelectedControlName).invalid) {
|
|
17765
|
+
this.errorMessage = {
|
|
17766
|
+
title: this.genericError,
|
|
17767
|
+
description: models_1.ReviewSpecificAccessRequestErrors.NO_SELECTION,
|
|
17768
|
+
};
|
|
17769
|
+
}
|
|
17770
|
+
// Initiate Review Access Request
|
|
17771
|
+
if (this.formGroup.valid) {
|
|
17772
|
+
// Get the Case Reference (for which access is being requested) from the ActivatedRouteSnapshot data
|
|
17773
|
+
var caseId = this.route.snapshot.data.case.case_id;
|
|
17774
|
+
var radioSelectedValue = this.formGroup.get(this.radioSelectedControlName).value;
|
|
17775
|
+
// Get the index of the selected AccessReason enum value. Can't use Object.values because it's not available in
|
|
17776
|
+
// < ES2017!
|
|
17777
|
+
var reasonNumber = Object.keys(models_1.AccessReason)
|
|
17778
|
+
.map(function (e) { return models_1.AccessReason[e]; })
|
|
17779
|
+
.indexOf(radioSelectedValue);
|
|
17780
|
+
// request model created , it will be used for submission part
|
|
17781
|
+
var challengedAccessRequest = {
|
|
17782
|
+
reason: reasonNumber,
|
|
17783
|
+
caseId: caseId,
|
|
17784
|
+
};
|
|
17785
|
+
if (models_1.AccessReason.REJECT_REQUEST === radioSelectedValue) {
|
|
17786
|
+
this.router.navigate(['rejected'], { relativeTo: this.route });
|
|
17787
|
+
}
|
|
17788
|
+
}
|
|
17789
|
+
};
|
|
17790
|
+
CaseReviewSpecificAccessRequestComponent.prototype.onCancel = function () {
|
|
17791
|
+
// Navigate to the page before previous one (should be Search Results or Case List page, for example)
|
|
17792
|
+
window.history.go(-1);
|
|
17793
|
+
};
|
|
17794
|
+
// remove once Access management goes live
|
|
17795
|
+
CaseReviewSpecificAccessRequestComponent.prototype.setMockData = function () {
|
|
17796
|
+
var requestAccessDetailsMock = this.appConfig.getAccessManagementRequestReviewMockModel();
|
|
17797
|
+
if (requestAccessDetailsMock.active) {
|
|
17798
|
+
this.requestAccessDetails = requestAccessDetailsMock.details;
|
|
17799
|
+
}
|
|
17800
|
+
};
|
|
17801
|
+
CaseReviewSpecificAccessRequestComponent = __decorate([
|
|
17802
|
+
core_1.Component({
|
|
17803
|
+
selector: 'ccd-case-review-specific-access-request',
|
|
17804
|
+
template: __webpack_require__(42467),
|
|
17805
|
+
styles: [__webpack_require__(76883)]
|
|
17806
|
+
}),
|
|
17807
|
+
__metadata("design:paramtypes", [forms_1.FormBuilder,
|
|
17808
|
+
router_1.ActivatedRoute,
|
|
17809
|
+
router_1.Router,
|
|
17810
|
+
app_config_1.AbstractAppConfig])
|
|
17811
|
+
], CaseReviewSpecificAccessRequestComponent);
|
|
17812
|
+
return CaseReviewSpecificAccessRequestComponent;
|
|
17813
|
+
}());
|
|
17814
|
+
exports.CaseReviewSpecificAccessRequestComponent = CaseReviewSpecificAccessRequestComponent;
|
|
17815
|
+
|
|
17816
|
+
|
|
17817
|
+
/***/ }),
|
|
17818
|
+
|
|
17819
|
+
/***/ 83444:
|
|
17820
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
17821
|
+
|
|
17822
|
+
"use strict";
|
|
17823
|
+
|
|
17824
|
+
function __export(m) {
|
|
17825
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
17826
|
+
}
|
|
17827
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
17828
|
+
__export(__webpack_require__(24212));
|
|
17829
|
+
|
|
17830
|
+
|
|
17831
|
+
/***/ }),
|
|
17832
|
+
|
|
17833
|
+
/***/ 16206:
|
|
17834
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
17835
|
+
|
|
17836
|
+
"use strict";
|
|
17837
|
+
|
|
17838
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
17839
|
+
var AccessReason;
|
|
17840
|
+
(function (AccessReason) {
|
|
17841
|
+
AccessReason["APPROVE_REQUEST"] = "Approve request";
|
|
17842
|
+
AccessReason["REJECT_REQUEST"] = "Reject request";
|
|
17843
|
+
AccessReason["REQUEST_MORE_INFORMATION"] = "Request more information";
|
|
17844
|
+
})(AccessReason = exports.AccessReason || (exports.AccessReason = {}));
|
|
17845
|
+
var ReviewSpecificAccessRequestPageText;
|
|
17846
|
+
(function (ReviewSpecificAccessRequestPageText) {
|
|
17847
|
+
ReviewSpecificAccessRequestPageText["TITLE"] = "Review specific access request";
|
|
17848
|
+
ReviewSpecificAccessRequestPageText["HINT"] = "What do you want to do with this request?";
|
|
17849
|
+
ReviewSpecificAccessRequestPageText["CASE_REF"] = "Case reference";
|
|
17850
|
+
})(ReviewSpecificAccessRequestPageText = exports.ReviewSpecificAccessRequestPageText || (exports.ReviewSpecificAccessRequestPageText = {}));
|
|
17851
|
+
var ReviewSpecificAccessRequestErrors;
|
|
17852
|
+
(function (ReviewSpecificAccessRequestErrors) {
|
|
17853
|
+
ReviewSpecificAccessRequestErrors["NO_SELECTION"] = "Select an option";
|
|
17854
|
+
ReviewSpecificAccessRequestErrors["GENERIC_ERROR"] = "There is a problem";
|
|
17855
|
+
})(ReviewSpecificAccessRequestErrors = exports.ReviewSpecificAccessRequestErrors || (exports.ReviewSpecificAccessRequestErrors = {}));
|
|
17856
|
+
|
|
17857
|
+
|
|
17858
|
+
/***/ }),
|
|
17859
|
+
|
|
17860
|
+
/***/ 46909:
|
|
17861
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
17862
|
+
|
|
17863
|
+
"use strict";
|
|
17864
|
+
|
|
17865
|
+
function __export(m) {
|
|
17866
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
17867
|
+
}
|
|
17868
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
17869
|
+
__export(__webpack_require__(16206));
|
|
17870
|
+
|
|
17871
|
+
|
|
17648
17872
|
/***/ }),
|
|
17649
17873
|
|
|
17650
17874
|
/***/ 38692:
|
|
@@ -18074,12 +18298,14 @@ var case_basic_access_view_component_1 = __webpack_require__(42906);
|
|
|
18074
18298
|
var case_challenged_access_request_component_1 = __webpack_require__(70776);
|
|
18075
18299
|
var case_challenged_access_success_component_1 = __webpack_require__(41969);
|
|
18076
18300
|
var case_specific_access_request_component_1 = __webpack_require__(38692);
|
|
18301
|
+
var case_review_specific_access_request_component_1 = __webpack_require__(24212);
|
|
18077
18302
|
var case_event_trigger_1 = __webpack_require__(92100);
|
|
18078
18303
|
var case_full_access_view_component_1 = __webpack_require__(76764);
|
|
18079
18304
|
var case_view_1 = __webpack_require__(65389);
|
|
18080
18305
|
var case_viewer_component_1 = __webpack_require__(89554);
|
|
18081
18306
|
var printer_1 = __webpack_require__(65773);
|
|
18082
18307
|
var services_2 = __webpack_require__(50137);
|
|
18308
|
+
var case_review_specific_access_reject_1 = __webpack_require__(84766);
|
|
18083
18309
|
var CaseViewerModule = /** @class */ (function () {
|
|
18084
18310
|
function CaseViewerModule() {
|
|
18085
18311
|
}
|
|
@@ -18115,8 +18341,10 @@ var CaseViewerModule = /** @class */ (function () {
|
|
|
18115
18341
|
printer_1.PrintUrlPipe,
|
|
18116
18342
|
case_challenged_access_request_component_1.CaseChallengedAccessRequestComponent,
|
|
18117
18343
|
case_specific_access_request_component_1.CaseSpecificAccessRequestComponent,
|
|
18344
|
+
case_review_specific_access_request_component_1.CaseReviewSpecificAccessRequestComponent,
|
|
18118
18345
|
error_message_component_1.ErrorMessageComponent,
|
|
18119
|
-
case_challenged_access_success_component_1.CaseChallengedAccessSuccessComponent
|
|
18346
|
+
case_challenged_access_success_component_1.CaseChallengedAccessSuccessComponent,
|
|
18347
|
+
case_review_specific_access_reject_1.CaseReviewSpecificAccessRejectComponent
|
|
18120
18348
|
],
|
|
18121
18349
|
exports: [
|
|
18122
18350
|
case_viewer_component_1.CaseViewerComponent,
|
|
@@ -18567,9 +18795,11 @@ var file_upload_progress_guard_1 = __webpack_require__(27667);
|
|
|
18567
18795
|
var case_challenged_access_request_1 = __webpack_require__(38403);
|
|
18568
18796
|
var case_challenged_access_success_1 = __webpack_require__(26840);
|
|
18569
18797
|
var case_specific_access_request_1 = __webpack_require__(73343);
|
|
18798
|
+
var case_review_specific_access_request_1 = __webpack_require__(83444);
|
|
18570
18799
|
var case_event_trigger_component_1 = __webpack_require__(83645);
|
|
18571
18800
|
var printer_1 = __webpack_require__(65773);
|
|
18572
18801
|
var services_1 = __webpack_require__(50137);
|
|
18802
|
+
var case_review_specific_access_reject_1 = __webpack_require__(84766);
|
|
18573
18803
|
exports.viewerRouting = [
|
|
18574
18804
|
{
|
|
18575
18805
|
path: 'print',
|
|
@@ -18578,11 +18808,11 @@ exports.viewerRouting = [
|
|
|
18578
18808
|
{
|
|
18579
18809
|
path: 'trigger/:eid',
|
|
18580
18810
|
resolve: {
|
|
18581
|
-
eventTrigger: services_1.EventTriggerResolver
|
|
18811
|
+
eventTrigger: services_1.EventTriggerResolver,
|
|
18582
18812
|
},
|
|
18583
18813
|
component: case_event_trigger_component_1.CaseEventTriggerComponent,
|
|
18584
18814
|
children: case_editor_1.editorRouting,
|
|
18585
|
-
canDeactivate: [file_upload_progress_guard_1.FileUploadProgressGuard]
|
|
18815
|
+
canDeactivate: [file_upload_progress_guard_1.FileUploadProgressGuard],
|
|
18586
18816
|
},
|
|
18587
18817
|
{
|
|
18588
18818
|
path: 'event/:eid/history',
|
|
@@ -18595,18 +18825,18 @@ exports.viewerRouting = [
|
|
|
18595
18825
|
path: '',
|
|
18596
18826
|
component: case_challenged_access_request_1.CaseChallengedAccessRequestComponent,
|
|
18597
18827
|
data: {
|
|
18598
|
-
title: 'Request Challenged Access'
|
|
18828
|
+
title: 'Request Challenged Access',
|
|
18599
18829
|
},
|
|
18600
|
-
pathMatch: 'full'
|
|
18830
|
+
pathMatch: 'full',
|
|
18601
18831
|
},
|
|
18602
18832
|
{
|
|
18603
18833
|
path: 'success',
|
|
18604
18834
|
component: case_challenged_access_success_1.CaseChallengedAccessSuccessComponent,
|
|
18605
18835
|
data: {
|
|
18606
|
-
title: 'Challenged Access Success'
|
|
18607
|
-
}
|
|
18608
|
-
}
|
|
18609
|
-
]
|
|
18836
|
+
title: 'Challenged Access Success',
|
|
18837
|
+
},
|
|
18838
|
+
},
|
|
18839
|
+
],
|
|
18610
18840
|
},
|
|
18611
18841
|
{
|
|
18612
18842
|
path: 'specific-access-request',
|
|
@@ -18615,12 +18845,32 @@ exports.viewerRouting = [
|
|
|
18615
18845
|
path: '',
|
|
18616
18846
|
component: case_specific_access_request_1.CaseSpecificAccessRequestComponent,
|
|
18617
18847
|
data: {
|
|
18618
|
-
title: 'Request Specific Access'
|
|
18848
|
+
title: 'Request Specific Access',
|
|
18849
|
+
},
|
|
18850
|
+
pathMatch: 'full',
|
|
18851
|
+
},
|
|
18852
|
+
],
|
|
18853
|
+
},
|
|
18854
|
+
{
|
|
18855
|
+
path: 'review-specific-access-request',
|
|
18856
|
+
children: [
|
|
18857
|
+
{
|
|
18858
|
+
path: '',
|
|
18859
|
+
component: case_review_specific_access_request_1.CaseReviewSpecificAccessRequestComponent,
|
|
18860
|
+
data: {
|
|
18861
|
+
title: 'Request Specific Access',
|
|
18619
18862
|
},
|
|
18620
|
-
pathMatch: 'full'
|
|
18863
|
+
pathMatch: 'full',
|
|
18864
|
+
},
|
|
18865
|
+
{
|
|
18866
|
+
path: 'rejected',
|
|
18867
|
+
component: case_review_specific_access_reject_1.CaseReviewSpecificAccessRejectComponent,
|
|
18868
|
+
data: {
|
|
18869
|
+
title: 'Review Access Rejected'
|
|
18870
|
+
}
|
|
18621
18871
|
}
|
|
18622
|
-
]
|
|
18623
|
-
}
|
|
18872
|
+
],
|
|
18873
|
+
},
|
|
18624
18874
|
];
|
|
18625
18875
|
|
|
18626
18876
|
|
|
@@ -20991,11 +21241,13 @@ var WriteCaseLinkFieldComponent = /** @class */ (function (_super) {
|
|
|
20991
21241
|
WriteCaseLinkFieldComponent.prototype.ngOnInit = function () {
|
|
20992
21242
|
if (this.caseField.value) {
|
|
20993
21243
|
this.caseLinkGroup = this.registerControl(new forms_1.FormGroup({
|
|
21244
|
+
'Id': new forms_1.FormControl('LinkedCase'),
|
|
20994
21245
|
'CaseReference': new forms_1.FormControl(this.caseField.value.CaseReference),
|
|
20995
21246
|
}), true);
|
|
20996
21247
|
}
|
|
20997
21248
|
else {
|
|
20998
21249
|
this.caseLinkGroup = this.registerControl(new forms_1.FormGroup({
|
|
21250
|
+
'Id': new forms_1.FormControl('LinkedCase'),
|
|
20999
21251
|
'CaseReference': new forms_1.FormControl(),
|
|
21000
21252
|
}), true);
|
|
21001
21253
|
}
|
|
@@ -21822,7 +22074,7 @@ var CcdPageFieldsPipe = /** @class */ (function () {
|
|
|
21822
22074
|
return control['caseField'];
|
|
21823
22075
|
}).filter(function (field) {
|
|
21824
22076
|
return !!page.case_fields.find(function (pcf) { return pcf.id === field.id; });
|
|
21825
|
-
});
|
|
22077
|
+
}).sort(function (a, b) { return a.order - b.order; });
|
|
21826
22078
|
var rawValue = dataFormGroup.value;
|
|
21827
22079
|
var value = page.case_fields.reduce(function (acc, field) {
|
|
21828
22080
|
var _a;
|
|
@@ -23500,6 +23752,9 @@ var WriteDocumentFieldComponent = /** @class */ (function (_super) {
|
|
|
23500
23752
|
this.displayFileUploadMessages(WriteDocumentFieldComponent_1.UPLOAD_WAITING_FILE_STATUS);
|
|
23501
23753
|
var documentUpload = this.buildDocumentUploadData(this.selectedFile);
|
|
23502
23754
|
this.fileUploadStateService.setUploadInProgress(true);
|
|
23755
|
+
var uploadFile = this.secureModeOn ?
|
|
23756
|
+
this.documentManagement.secureUploadFile(documentUpload) :
|
|
23757
|
+
this.documentManagement.uploadFile(documentUpload);
|
|
23503
23758
|
this.fileUploadSubscription = this.documentManagement.uploadFile(documentUpload).subscribe({
|
|
23504
23759
|
next: function (resultDocument) { return _this.handleDocumentUploadResult(resultDocument); },
|
|
23505
23760
|
error: function (error) { return _this.handleDocumentUploadError(error); }
|
|
@@ -34188,6 +34443,14 @@ var DocumentManagementService = /** @class */ (function () {
|
|
|
34188
34443
|
.pipe(operators_1.delay(DocumentManagementService_1.RESPONSE_DELAY))
|
|
34189
34444
|
.pipe();
|
|
34190
34445
|
};
|
|
34446
|
+
DocumentManagementService.prototype.secureUploadFile = function (formData) {
|
|
34447
|
+
var url = this.appConfig.getDocumentManagementUrlV2();
|
|
34448
|
+
var headers = new http_2.HttpHeaders();
|
|
34449
|
+
return this.http
|
|
34450
|
+
.post(url, formData, { headers: headers, observe: 'body' })
|
|
34451
|
+
.pipe(operators_1.delay(DocumentManagementService_1.RESPONSE_DELAY))
|
|
34452
|
+
.pipe();
|
|
34453
|
+
};
|
|
34191
34454
|
DocumentManagementService.prototype.getMediaViewerInfo = function (documentFieldValue) {
|
|
34192
34455
|
var mediaViewerInfo = {
|
|
34193
34456
|
document_binary_url: this.transformDocumentUrl(documentFieldValue.document_binary_url),
|
|
@@ -35794,6 +36057,8 @@ var FormValueService = /** @class */ (function () {
|
|
|
35794
36057
|
}
|
|
35795
36058
|
break;
|
|
35796
36059
|
case 'Collection':
|
|
36060
|
+
// Check for valid collection data
|
|
36061
|
+
this.removeInvalidCollectionData(data, field);
|
|
35797
36062
|
// Get hold of the collection.
|
|
35798
36063
|
var collection = data[field.id];
|
|
35799
36064
|
// Check if we actually have a collection to work with.
|
|
@@ -35819,6 +36084,22 @@ var FormValueService = /** @class */ (function () {
|
|
|
35819
36084
|
// Clear out any MultiSelect labels.
|
|
35820
36085
|
FormValueService_1.removeMultiSelectLabels(data);
|
|
35821
36086
|
};
|
|
36087
|
+
/**
|
|
36088
|
+
* Remove any empty or invalid arry with only id
|
|
36089
|
+
*
|
|
36090
|
+
* @param data The object tree of form values on which to perform the removal
|
|
36091
|
+
* @param field {@link CaseField} domain model object for each field
|
|
36092
|
+
*/
|
|
36093
|
+
FormValueService.prototype.removeInvalidCollectionData = function (data, field) {
|
|
36094
|
+
if (data[field.id] && data[field.id].length > 0) {
|
|
36095
|
+
for (var _i = 0, _a = data[field.id]; _i < _a.length; _i++) {
|
|
36096
|
+
var objCollection = _a[_i];
|
|
36097
|
+
if (Object.keys(objCollection).length === 1 && Object.keys(objCollection).indexOf('id') > -1) {
|
|
36098
|
+
data[field.id] = [];
|
|
36099
|
+
}
|
|
36100
|
+
}
|
|
36101
|
+
}
|
|
36102
|
+
};
|
|
35822
36103
|
/**
|
|
35823
36104
|
* Remove any empty collection fields where a value of greater than zero is specified in the field's {@link FieldType}
|
|
35824
36105
|
* `min` attribute.
|
|
@@ -38434,6 +38715,21 @@ exports.push([module.id, "th{width:1%;white-space:nowrap;vertical-align:top}.com
|
|
|
38434
38715
|
// exports
|
|
38435
38716
|
|
|
38436
38717
|
|
|
38718
|
+
/***/ }),
|
|
38719
|
+
|
|
38720
|
+
/***/ 14342:
|
|
38721
|
+
/***/ ((module, exports, __webpack_require__) => {
|
|
38722
|
+
|
|
38723
|
+
exports = module.exports = __webpack_require__(9252)(false);
|
|
38724
|
+
// imports
|
|
38725
|
+
|
|
38726
|
+
|
|
38727
|
+
// module
|
|
38728
|
+
exports.push([module.id, ".left-label{width:220px}\n", ""]);
|
|
38729
|
+
|
|
38730
|
+
// exports
|
|
38731
|
+
|
|
38732
|
+
|
|
38437
38733
|
/***/ }),
|
|
38438
38734
|
|
|
38439
38735
|
/***/ 10082:
|
|
@@ -64661,6 +64957,20 @@ module.exports = "<!-- Generic error heading and error message to be displayed o
|
|
|
64661
64957
|
|
|
64662
64958
|
/***/ }),
|
|
64663
64959
|
|
|
64960
|
+
/***/ 24959:
|
|
64961
|
+
/***/ ((module) => {
|
|
64962
|
+
|
|
64963
|
+
module.exports = "<p></p>\n<div class=\"govuk-width-container\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Request for access denied<br>\n </h1>\n </div>\n <h2 class=\"govuk-heading-m \">What happens next</h2>\n <p class=\"govuk-body\">\n The requester has been denied access to this case.\n </p>\n </div>\n </div>\n <div class=\"form-group form-group-related\">\n <p ><a button class=\"govuk-button govuk-!-margin-right-3\" href=\"tasks/list\" >{{returnToMyTask}}</a></p>\n </div>\n <p class=\"cancel\"><a href=\"cases/case-details/{{caseId}}\" >{{retunToTask}}</a></p>\n</div>"
|
|
64964
|
+
|
|
64965
|
+
/***/ }),
|
|
64966
|
+
|
|
64967
|
+
/***/ 42467:
|
|
64968
|
+
/***/ ((module) => {
|
|
64969
|
+
|
|
64970
|
+
module.exports = "<exui-error-message\n *ngIf=\"formGroup.invalid && submitted\"\n [error]=\"errorMessage\">\n</exui-error-message>\n\n<form [formGroup]=\"formGroup\" (submit)=\"onSubmit()\">\n <div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"reason-hint\">\n <div class=\"govuk-grid-column-two-thirds\" >\n <p></p>\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h1 class=\"govuk-fieldset__heading\">\n {{ title }}\n </h1>\n </legend>\n <p></p>\n <table class=\"govuk-table\">\n <caption></caption>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header leftLabel\" >\n Case name\n </th>\n <td class=\"govuk-table__cell\">{{ requestAccessDetails.caseName }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header leftLabel\" >\n Case reference\n </th>\n <td class=\"govuk-table__cell\">{{ requestAccessDetails.caseReference }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header leftLabel\" >\n Date submitted\n </th>\n <td class=\"govuk-table__cell\">{{ requestAccessDetails.dateSubmitted }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header leftLabel\" >\n Request from\n </th>\n <td class=\"govuk-table__cell\">{{ requestAccessDetails.requestFrom }}<br /></td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header leftLabel\" >\n Reason for case access\n </th>\n <td class=\"govuk-table__cell\">{{ requestAccessDetails.reasonForCaseAccess }}</td>\n </tr>\n </tbody>\n </table>\n\n <div\n class=\"govuk-form-group\"\n [ngClass]=\"{ 'form-group-error': formGroup.invalid && submitted }\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\">\n <h1 class=\"govuk-fieldset__heading\">\n {{ hint }}\n </h1>\n </legend>\n <div\n id=\"error-message\"\n class=\"govuk-error-message\"\n *ngIf=\"formGroup.get('radioSelected').invalid && submitted\">\n {{ errorMessage.description }}\n </div>\n <div class=\"govuk-radios__item\">\n <input\n class=\"govuk-radios__input\"\n id=\"reason-0\"\n name=\"radioSelected\"\n type=\"radio\"\n [value]=\"accessReasons[0].reason\"\n formControlName=\"radioSelected\"\n [checked]=\"accessReasons[0].checked\"\n (change)=\"onChange()\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"reason-0\">\n {{ accessReasons[0].reason }}\n </label>\n </div>\n <div class=\"govuk-radios__item\">\n <input\n class=\"govuk-radios__input\"\n id=\"reason-1\"\n name=\"radioSelected\"\n type=\"radio\"\n [value]=\"accessReasons[1].reason\"\n formControlName=\"radioSelected\"\n [checked]=\"accessReasons[1].checked\"\n (change)=\"onChange()\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"reason-1\">\n {{ accessReasons[1].reason }}\n </label>\n </div>\n <div class=\"govuk-radios__item\">\n <input\n class=\"govuk-radios__input\"\n id=\"reason-2\"\n name=\"radioSelected\"\n type=\"radio\"\n [value]=\"accessReasons[2].reason\"\n formControlName=\"radioSelected\"\n [checked]=\"accessReasons[2].checked\"\n (change)=\"onChange()\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"reason-2\">\n {{ accessReasons[2].reason }}\n </label>\n </div>\n </fieldset>\n </div>\n </div>\n </fieldset>\n </div>\n\n <div class=\"govuk-button-group\">\n <button class=\"govuk-button govuk-!-margin-right-3\" type=\"submit\">\n Continue\n </button>\n <div class=\"govuk-grid-column-full govuk-!-padding-left-0\">\n <p>\n <a class=\"govuk-body\" (click)=\"onCancel()\" href=\"javascript:void(0)\">\n Cancel\n </a>\n </p>\n </div>\n </div>\n</form>\n"
|
|
64971
|
+
|
|
64972
|
+
/***/ }),
|
|
64973
|
+
|
|
64664
64974
|
/***/ 5856:
|
|
64665
64975
|
/***/ ((module) => {
|
|
64666
64976
|
|
|
@@ -64853,7 +65163,7 @@ module.exports = "<ng-container [ngSwitch]=\"context\">\n <ccd-read-complex-fie
|
|
|
64853
65163
|
/***/ 93616:
|
|
64854
65164
|
/***/ ((module) => {
|
|
64855
65165
|
|
|
64856
|
-
module.exports = "<div class=\"form-group\" [id]=\"id()\">\n\n <h2 *ngIf=\"renderLabel\" class=\"heading-h2\">{{caseField | ccdFieldLabel}}</h2>\n <ng-container *ngFor=\"let field of complexFields\">\n <ng-container [ngSwitch]=\"field |
|
|
65166
|
+
module.exports = "<div class=\"form-group\" [id]=\"id()\">\n\n <h2 *ngIf=\"renderLabel\" class=\"heading-h2\">{{caseField | ccdFieldLabel}}</h2>\n <ng-container *ngFor=\"let field of complexFields\">\n <ng-container [ngSwitch]=\"field | ccdIsReadOnly\">\n <ccd-field-read *ngSwitchCase=\"true\"\n ccdLabelSubstitutor\n [caseField]=\"buildField(field)\"\n [caseFields]=\"caseFields\"\n [formGroup]=\"formGroup\"\n [withLabel]=\"true\">\n </ccd-field-read>\n <ccd-field-write *ngSwitchCase=\"false\"\n ccdLabelSubstitutor\n [caseField]=\"field\"\n [caseFields]=\"caseFields\"\n [formGroup]=\"formGroup\"\n [parent]=\"complexGroup\"\n [idPrefix]=\"buildIdPrefix(field)\"\n [hidden]=\"field.hidden\"\n [isExpanded]=\"isExpanded\"\n [isInSearchBlock]=\"isInSearchBlock\">\n </ccd-field-write>\n </ng-container>\n </ng-container>\n</div>\n"
|
|
64857
65167
|
|
|
64858
65168
|
/***/ }),
|
|
64859
65169
|
|
|
@@ -65397,6 +65707,21 @@ function getStrategyDelay(consecutiveErrorsCount, options) {
|
|
|
65397
65707
|
}
|
|
65398
65708
|
|
|
65399
65709
|
|
|
65710
|
+
/***/ }),
|
|
65711
|
+
|
|
65712
|
+
/***/ 76883:
|
|
65713
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
65714
|
+
|
|
65715
|
+
|
|
65716
|
+
var result = __webpack_require__(14342);
|
|
65717
|
+
|
|
65718
|
+
if (typeof result === "string") {
|
|
65719
|
+
module.exports = result;
|
|
65720
|
+
} else {
|
|
65721
|
+
module.exports = result.toString();
|
|
65722
|
+
}
|
|
65723
|
+
|
|
65724
|
+
|
|
65400
65725
|
/***/ }),
|
|
65401
65726
|
|
|
65402
65727
|
/***/ 99018:
|