@hmcts/ccd-case-ui-toolkit 4.6.0-rc.1 → 4.7.0-rc.1
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 +22 -0
- package/dist/app.config.d.ts +25 -0
- package/dist/app.config.js +9 -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-viewer.scss → case-full-access-view/case-full-access-view.component.scss} +0 -0
- package/dist/index.umd.js +754 -306
- 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/activity/activity.component.js +4 -2
- package/dist/shared/components/activity/activity.component.js.map +1 -1
- package/dist/shared/components/case-editor/case-edit-confirm/case-edit-confirm.component.js +1 -1
- package/dist/shared/components/case-editor/case-edit-confirm/case-edit-confirm.component.js.map +1 -1
- package/dist/shared/components/case-editor/case-edit-confirm/case-edit-confirm.component.metadata.json +1 -1
- package/dist/shared/components/case-editor/case-edit-form/case-edit-form.component.js +9 -3
- package/dist/shared/components/case-editor/case-edit-form/case-edit-form.component.js.map +1 -1
- package/dist/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts +0 -1
- package/dist/shared/components/case-editor/case-edit-page/case-edit-page.component.js +3 -15
- package/dist/shared/components/case-editor/case-edit-page/case-edit-page.component.js.map +1 -1
- package/dist/shared/components/case-editor/case-edit-page/case-edit-page.component.metadata.json +1 -1
- package/dist/shared/components/case-editor/case-edit-submit/case-edit-submit.component.js +13 -3
- package/dist/shared/components/case-editor/case-edit-submit/case-edit-submit.component.js.map +1 -1
- package/dist/shared/components/case-editor/case-edit-submit/case-edit-submit.component.metadata.json +1 -1
- package/dist/shared/components/case-editor/services/cases.service.d.ts +3 -1
- package/dist/shared/components/case-editor/services/cases.service.js +55 -0
- package/dist/shared/components/case-editor/services/cases.service.js.map +1 -1
- package/dist/shared/components/case-editor/services/cases.service.metadata.json +1 -1
- package/dist/shared/components/case-history/case-history.component.js +3 -1
- package/dist/shared/components/case-history/case-history.component.js.map +1 -1
- package/dist/shared/components/case-viewer/case-basic-access-view/case-basic-access-view.component.d.ts +14 -0
- package/dist/shared/components/case-viewer/case-basic-access-view/case-basic-access-view.component.js +64 -0
- package/dist/shared/components/case-viewer/case-basic-access-view/case-basic-access-view.component.js.map +1 -0
- package/dist/shared/components/case-viewer/case-basic-access-view/case-basic-access-view.component.metadata.json +1 -0
- package/dist/shared/components/case-viewer/case-basic-access-view/index.d.ts +1 -0
- package/dist/shared/components/case-viewer/case-basic-access-view/index.js +7 -0
- package/dist/shared/components/case-viewer/case-basic-access-view/index.js.map +1 -0
- package/dist/shared/components/case-viewer/case-basic-access-view/index.metadata.json +1 -0
- package/dist/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.d.ts +11 -3
- package/dist/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.js +40 -4
- package/dist/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.js.map +1 -1
- package/dist/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.metadata.json +1 -1
- package/dist/shared/components/case-viewer/case-challenged-access-success/case-challenged-access-success.component.d.ts +8 -0
- package/dist/shared/components/case-viewer/case-challenged-access-success/case-challenged-access-success.component.js +31 -0
- package/dist/shared/components/case-viewer/case-challenged-access-success/case-challenged-access-success.component.js.map +1 -0
- package/dist/shared/components/case-viewer/case-challenged-access-success/case-challenged-access-success.component.metadata.json +1 -0
- package/dist/shared/components/case-viewer/case-challenged-access-success/index.d.ts +1 -0
- package/dist/shared/components/case-viewer/case-challenged-access-success/index.js +7 -0
- package/dist/shared/components/case-viewer/case-challenged-access-success/index.js.map +1 -0
- package/dist/shared/components/case-viewer/case-challenged-access-success/index.metadata.json +1 -0
- package/dist/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.js +2 -2
- package/dist/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.js.map +1 -1
- package/dist/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts +72 -0
- package/dist/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +293 -0
- package/dist/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js.map +1 -0
- package/dist/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.metadata.json +1 -0
- package/dist/shared/components/case-viewer/case-full-access-view/index.d.ts +1 -0
- package/dist/shared/components/case-viewer/case-full-access-view/index.js +7 -0
- package/dist/shared/components/case-viewer/case-full-access-view/index.js.map +1 -0
- package/dist/shared/components/case-viewer/case-full-access-view/index.metadata.json +1 -0
- package/dist/shared/components/case-viewer/case-view/case-view.component.js +3 -1
- package/dist/shared/components/case-viewer/case-view/case-view.component.js.map +1 -1
- package/dist/shared/components/case-viewer/case-viewer.component.d.ts +15 -64
- package/dist/shared/components/case-viewer/case-viewer.component.js +51 -251
- package/dist/shared/components/case-viewer/case-viewer.component.js.map +1 -1
- package/dist/shared/components/case-viewer/case-viewer.component.metadata.json +1 -1
- package/dist/shared/components/case-viewer/case-viewer.module.js +22 -15
- 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/index.d.ts +3 -0
- package/dist/shared/components/case-viewer/index.js +3 -0
- package/dist/shared/components/case-viewer/index.js.map +1 -1
- package/dist/shared/components/case-viewer/index.metadata.json +1 -1
- package/dist/shared/components/case-viewer/printer/case-printer.component.js +3 -1
- package/dist/shared/components/case-viewer/printer/case-printer.component.js.map +1 -1
- package/dist/shared/components/case-viewer/viewer.routing.js +21 -4
- 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/error/callback-errors.component.js +3 -1
- package/dist/shared/components/error/callback-errors.component.js.map +1 -1
- package/dist/shared/components/helpers/index.d.ts +1 -0
- package/dist/shared/components/helpers/index.js +7 -0
- package/dist/shared/components/helpers/index.js.map +1 -0
- package/dist/shared/components/helpers/index.metadata.json +1 -0
- package/dist/shared/components/helpers/init-dialog-helper.d.ts +2 -0
- package/dist/shared/components/helpers/init-dialog-helper.js +18 -0
- package/dist/shared/components/helpers/init-dialog-helper.js.map +1 -0
- package/dist/shared/components/helpers/init-dialog-helper.metadata.json +1 -0
- package/dist/shared/components/palette/base-field/abstract-form-field.component.js +6 -1
- package/dist/shared/components/palette/base-field/abstract-form-field.component.js.map +1 -1
- package/dist/shared/components/palette/collection/write-collection-field.component.js +1 -1
- package/dist/shared/components/palette/collection/write-collection-field.component.js.map +1 -1
- package/dist/shared/components/palette/document/read-document-field.component.js.map +1 -1
- package/dist/shared/components/palette/document/write-document-field.component.d.ts +0 -1
- package/dist/shared/components/palette/document/write-document-field.component.js +4 -19
- package/dist/shared/components/palette/document/write-document-field.component.js.map +1 -1
- package/dist/shared/components/palette/document/write-document-field.component.metadata.json +1 -1
- package/dist/shared/components/search-filters/search-filters.component.js +7 -9
- package/dist/shared/components/search-filters/search-filters.component.js.map +1 -1
- package/dist/shared/domain/case-view/case-view.model.d.ts +6 -0
- package/dist/shared/domain/case-view/case-view.model.js.map +1 -1
- package/dist/shared/domain/case-view/challenged-access-request.model.d.ts +5 -0
- package/dist/shared/domain/case-view/challenged-access-request.model.js +3 -0
- package/dist/shared/domain/case-view/challenged-access-request.model.js.map +1 -0
- package/dist/shared/domain/case-view/challenged-access-request.model.metadata.json +1 -0
- package/dist/shared/domain/case-view/index.d.ts +4 -0
- package/dist/shared/domain/case-view/index.metadata.json +1 -1
- package/dist/shared/domain/case-view/requested-role.model.d.ts +25 -0
- package/dist/shared/domain/case-view/requested-role.model.js +3 -0
- package/dist/shared/domain/case-view/requested-role.model.js.map +1 -0
- package/dist/shared/domain/case-view/requested-role.model.metadata.json +1 -0
- package/dist/shared/domain/case-view/role-assignment-response.model.d.ts +6 -0
- package/dist/shared/domain/case-view/role-assignment-response.model.js +3 -0
- package/dist/shared/domain/case-view/role-assignment-response.model.js.map +1 -0
- package/dist/shared/domain/case-view/role-assignment-response.model.metadata.json +1 -0
- package/dist/shared/domain/case-view/role-request.model.d.ts +13 -0
- package/dist/shared/domain/case-view/role-request.model.js +3 -0
- package/dist/shared/domain/case-view/role-request.model.js.map +1 -0
- package/dist/shared/domain/case-view/role-request.model.metadata.json +1 -0
- package/dist/shared/pipes/case-title/ccd-case-title.pipe.js +1 -1
- package/dist/shared/pipes/case-title/ccd-case-title.pipe.js.map +1 -1
- package/dist/shared/services/activity/activity.service.js +24 -11
- package/dist/shared/services/activity/activity.service.js.map +1 -1
- package/dist/shared/services/document-management/document-management.service.d.ts +1 -1
- package/dist/shared/services/document-management/document-management.service.js +5 -10
- 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/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.
|
|
3
|
+
* @version v4.7.0-rc.1
|
|
4
4
|
* @link undefined
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -10745,6 +10745,15 @@ var AbstractAppConfig = /** @class */ (function () {
|
|
|
10745
10745
|
AbstractAppConfig.prototype.getUserInfoApiUrl = function () {
|
|
10746
10746
|
return undefined;
|
|
10747
10747
|
};
|
|
10748
|
+
AbstractAppConfig.prototype.getAccessManagementMode = function () {
|
|
10749
|
+
return undefined;
|
|
10750
|
+
};
|
|
10751
|
+
AbstractAppConfig.prototype.getAccessManagementBasicViewMock = function () {
|
|
10752
|
+
return undefined;
|
|
10753
|
+
};
|
|
10754
|
+
AbstractAppConfig.prototype.getLocationRefApiUrl = function () {
|
|
10755
|
+
return undefined;
|
|
10756
|
+
};
|
|
10748
10757
|
return AbstractAppConfig;
|
|
10749
10758
|
}());
|
|
10750
10759
|
exports.AbstractAppConfig = AbstractAppConfig;
|
|
@@ -12250,8 +12259,10 @@ var ActivityComponent = /** @class */ (function () {
|
|
|
12250
12259
|
return (this.activity.editors.length > 0 || this.activity.unknownEditors > 0);
|
|
12251
12260
|
};
|
|
12252
12261
|
ActivityComponent.prototype.ngOnDestroy = function () {
|
|
12253
|
-
this.subscription
|
|
12254
|
-
|
|
12262
|
+
if (this.subscription) {
|
|
12263
|
+
this.subscription.complete();
|
|
12264
|
+
this.subscription.unsubscribe();
|
|
12265
|
+
}
|
|
12255
12266
|
this.activityPollingService.stopPolling();
|
|
12256
12267
|
};
|
|
12257
12268
|
ActivityComponent.prototype.generateDescription = function (prefix, suffix, namesArray, unknownCount) {
|
|
@@ -12598,8 +12609,12 @@ var CaseEditFormComponent = /** @class */ (function () {
|
|
|
12598
12609
|
this.valuesChanged = new core_1.EventEmitter();
|
|
12599
12610
|
}
|
|
12600
12611
|
CaseEditFormComponent.prototype.ngOnDestroy = function () {
|
|
12601
|
-
this.pageChangeSubscription
|
|
12602
|
-
|
|
12612
|
+
if (this.pageChangeSubscription) {
|
|
12613
|
+
this.pageChangeSubscription.unsubscribe();
|
|
12614
|
+
}
|
|
12615
|
+
if (this.formGroupChangeSubscription) {
|
|
12616
|
+
this.formGroupChangeSubscription.unsubscribe();
|
|
12617
|
+
}
|
|
12603
12618
|
};
|
|
12604
12619
|
// We need the below un/subscribe complexity as we do not have proper page component per page with its AfterViewInit hook
|
|
12605
12620
|
// being called on each page load. This is done for "Cancel and return" modal from RDM-2302.
|
|
@@ -12607,7 +12622,9 @@ var CaseEditFormComponent = /** @class */ (function () {
|
|
|
12607
12622
|
var _this = this;
|
|
12608
12623
|
this.retrieveInitialFormValues();
|
|
12609
12624
|
this.pageChangeSubscription = this.pageChangeSubject.subscribe(function () {
|
|
12610
|
-
_this.formGroupChangeSubscription
|
|
12625
|
+
if (_this.formGroupChangeSubscription) {
|
|
12626
|
+
_this.formGroupChangeSubscription.unsubscribe();
|
|
12627
|
+
}
|
|
12611
12628
|
// Timeout is required for the form to be rendered before subscription to form changes and initial form values retrieval.
|
|
12612
12629
|
setTimeout(function () {
|
|
12613
12630
|
_this.subscribeToFormChanges();
|
|
@@ -12704,6 +12721,7 @@ var form_error_service_1 = __webpack_require__(34790);
|
|
|
12704
12721
|
var draft_model_1 = __webpack_require__(98072);
|
|
12705
12722
|
var fields_1 = __webpack_require__(64906);
|
|
12706
12723
|
var case_field_service_1 = __webpack_require__(72141);
|
|
12724
|
+
var helpers_1 = __webpack_require__(23495);
|
|
12707
12725
|
var CaseEditPageComponent = /** @class */ (function () {
|
|
12708
12726
|
function CaseEditPageComponent(caseEdit, route, formValueService, formErrorService, cdRef, pageValidationService, dialog, caseFieldService) {
|
|
12709
12727
|
this.caseEdit = caseEdit;
|
|
@@ -12736,7 +12754,7 @@ var CaseEditPageComponent = /** @class */ (function () {
|
|
|
12736
12754
|
};
|
|
12737
12755
|
CaseEditPageComponent.prototype.ngOnInit = function () {
|
|
12738
12756
|
var _this = this;
|
|
12739
|
-
|
|
12757
|
+
helpers_1.initDialog(this.dialogConfig);
|
|
12740
12758
|
this.eventTrigger = this.caseEdit.eventTrigger;
|
|
12741
12759
|
this.editForm = this.caseEdit.form;
|
|
12742
12760
|
this.wizard = this.caseEdit.wizard;
|
|
@@ -12961,19 +12979,6 @@ var CaseEditPageComponent = /** @class */ (function () {
|
|
|
12961
12979
|
? CaseEditPageComponent_1.TRIGGER_TEXT_SAVE
|
|
12962
12980
|
: CaseEditPageComponent_1.TRIGGER_TEXT_START;
|
|
12963
12981
|
};
|
|
12964
|
-
CaseEditPageComponent.prototype.initDialog = function () {
|
|
12965
|
-
this.dialogConfig = new material_1.MatDialogConfig();
|
|
12966
|
-
this.dialogConfig.disableClose = true;
|
|
12967
|
-
this.dialogConfig.autoFocus = true;
|
|
12968
|
-
this.dialogConfig.ariaLabel = 'Label';
|
|
12969
|
-
this.dialogConfig.height = '245px';
|
|
12970
|
-
this.dialogConfig.width = '550px';
|
|
12971
|
-
this.dialogConfig.panelClass = 'dialog';
|
|
12972
|
-
this.dialogConfig.closeOnNavigation = false;
|
|
12973
|
-
this.dialogConfig.position = {
|
|
12974
|
-
top: window.innerHeight / 2 - 120 + 'px', left: window.innerWidth / 2 - 275 + 'px'
|
|
12975
|
-
};
|
|
12976
|
-
};
|
|
12977
12982
|
CaseEditPageComponent.prototype.discard = function () {
|
|
12978
12983
|
if (this.route.snapshot.queryParamMap.get(case_edit_component_1.CaseEditComponent.ORIGIN_QUERY_PARAM) === 'viewDraft') {
|
|
12979
12984
|
this.caseEdit.cancelled.emit({ status: CaseEditPageComponent_1.RESUMED_FORM_DISCARD });
|
|
@@ -13124,6 +13129,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
13124
13129
|
};
|
|
13125
13130
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
13126
13131
|
var core_1 = __webpack_require__(57208);
|
|
13132
|
+
var forms_1 = __webpack_require__(92985);
|
|
13127
13133
|
var router_1 = __webpack_require__(92302);
|
|
13128
13134
|
var rxjs_1 = __webpack_require__(87318);
|
|
13129
13135
|
var services_1 = __webpack_require__(65010);
|
|
@@ -13172,7 +13178,9 @@ var CaseEditSubmitComponent = /** @class */ (function () {
|
|
|
13172
13178
|
this.contextFields = this.getCaseFields();
|
|
13173
13179
|
};
|
|
13174
13180
|
CaseEditSubmitComponent.prototype.ngOnDestroy = function () {
|
|
13175
|
-
this.profileSubscription
|
|
13181
|
+
if (this.profileSubscription) {
|
|
13182
|
+
this.profileSubscription.unsubscribe();
|
|
13183
|
+
}
|
|
13176
13184
|
};
|
|
13177
13185
|
CaseEditSubmitComponent.prototype.submit = function () {
|
|
13178
13186
|
var _this = this;
|
|
@@ -13266,7 +13274,14 @@ var CaseEditSubmitComponent = /** @class */ (function () {
|
|
|
13266
13274
|
// CaseField itself (the sub-fields do not contain any values, so these need to be obtained from the
|
|
13267
13275
|
// parent)
|
|
13268
13276
|
// Update rawFormValueData for this field
|
|
13269
|
-
|
|
13277
|
+
// creating form group and adding control into it in case caseField is of complext type and and part of formGroup
|
|
13278
|
+
var form_1 = new forms_1.FormGroup({});
|
|
13279
|
+
if (formGroup.controls[key].value) {
|
|
13280
|
+
Object.keys(formGroup.controls[key].value).forEach(function (item) {
|
|
13281
|
+
form_1.addControl(item, new forms_1.FormControl(formGroup.controls[key].value[item]));
|
|
13282
|
+
});
|
|
13283
|
+
}
|
|
13284
|
+
rawFormValueData[key] = _this.replaceHiddenFormValuesWithOriginalCaseData(form_1, caseField.field_type.complex_fields, caseField);
|
|
13270
13285
|
}
|
|
13271
13286
|
}
|
|
13272
13287
|
else {
|
|
@@ -14571,6 +14586,61 @@ var CasesService = /** @class */ (function () {
|
|
|
14571
14586
|
}
|
|
14572
14587
|
return false;
|
|
14573
14588
|
};
|
|
14589
|
+
CasesService.prototype.getCourtOrHearingCentreName = function (locationId) {
|
|
14590
|
+
return this.http.get(this.appConfig.getLocationRefApiUrl() + "/building-locations?epimms_id=" + locationId);
|
|
14591
|
+
};
|
|
14592
|
+
CasesService.prototype.createChallengedAccessRequest = function (caseId, car) {
|
|
14593
|
+
// Dummy implementation for now; the real one will make a call to the Node layer, which will call the appropriate Role
|
|
14594
|
+
// Assignment API endpoint
|
|
14595
|
+
var roleAssignmentResponse = {
|
|
14596
|
+
roleRequest: {
|
|
14597
|
+
id: '0c6f56f5-4457-485e-a0de-828e6dfa1e33',
|
|
14598
|
+
authenticatedUserId: '37d4eab7-e14c-404e-8cd1-55cd06b2fc06',
|
|
14599
|
+
correlationId: '003352d0-e699-48bc-b6f5-5810411e60af',
|
|
14600
|
+
assignerId: '37d4eab7-e14c-404e-8cd1-55cd06b2fc06',
|
|
14601
|
+
requestType: 'CREATE',
|
|
14602
|
+
process: 'businessProcess1',
|
|
14603
|
+
reference: 'cf07ea33-31c0-4442-b2df-e2032d21b496',
|
|
14604
|
+
replaceExisting: true,
|
|
14605
|
+
status: 'APPROVED',
|
|
14606
|
+
created: new Date('2021-01-28T18:16:49.100121Z'),
|
|
14607
|
+
log: 'Request has been approved'
|
|
14608
|
+
},
|
|
14609
|
+
requestedRoles: [{
|
|
14610
|
+
id: '3ccabbf2-71fa-4c5d-af39-5675d25e9fcc',
|
|
14611
|
+
actorIdType: 'IDAM',
|
|
14612
|
+
actorId: 'cf07ea33-31c0-4442-b2df-e2032d21b496',
|
|
14613
|
+
roleType: 'ORGANISATION',
|
|
14614
|
+
roleName: 'judge',
|
|
14615
|
+
classification: 'PUBLIC',
|
|
14616
|
+
grantType: 'CHALLENGED',
|
|
14617
|
+
roleCategory: 'JUDICIAL',
|
|
14618
|
+
readOnly: false,
|
|
14619
|
+
beginTime: new Date('2021-01-01T00:00:00Z'),
|
|
14620
|
+
endTime: new Date('2023-01-01T00:00:00Z'),
|
|
14621
|
+
process: 'businessProcess1',
|
|
14622
|
+
reference: 'cf07ea33-31c0-4442-b2df-e2032d21b496',
|
|
14623
|
+
status: 'LIVE',
|
|
14624
|
+
created: new Date('2021-01-28T18:16:49.100155Z'),
|
|
14625
|
+
log: 'Create requested with replace: true\nCreate approved : judicial_organisational_role_mapping_service_create',
|
|
14626
|
+
attributes: {
|
|
14627
|
+
jurisdiction: 'divorce',
|
|
14628
|
+
region: 'south-east',
|
|
14629
|
+
contractType: 'SALARIED'
|
|
14630
|
+
},
|
|
14631
|
+
notes: [{
|
|
14632
|
+
userId: '003352d0-e699-48bc-b6f5-5810411e60ag',
|
|
14633
|
+
time: new Date('2020-01-01T00:00Z'),
|
|
14634
|
+
comment: 'Need Access to case number 1234567890123456 for a month'
|
|
14635
|
+
}, {
|
|
14636
|
+
userId: '52aa3810-af1f-11ea-b3de-0242ac130004',
|
|
14637
|
+
time: new Date('2020-01-02T00:00Z'),
|
|
14638
|
+
comment: 'Access granted till end of day'
|
|
14639
|
+
}]
|
|
14640
|
+
}]
|
|
14641
|
+
};
|
|
14642
|
+
return rxjs_1.of(roleAssignmentResponse);
|
|
14643
|
+
};
|
|
14574
14644
|
var CasesService_1;
|
|
14575
14645
|
// Internal (UI) API
|
|
14576
14646
|
CasesService.V2_MEDIATYPE_CASE_VIEW = 'application/vnd.uk.gov.hmcts.ccd-data-store-api.ui-case-view.v2+json';
|
|
@@ -15190,7 +15260,9 @@ var CaseHistoryComponent = /** @class */ (function () {
|
|
|
15190
15260
|
});
|
|
15191
15261
|
};
|
|
15192
15262
|
CaseHistoryComponent.prototype.ngOnDestroy = function () {
|
|
15193
|
-
this.caseSubscription
|
|
15263
|
+
if (this.caseSubscription) {
|
|
15264
|
+
this.caseSubscription.unsubscribe();
|
|
15265
|
+
}
|
|
15194
15266
|
};
|
|
15195
15267
|
CaseHistoryComponent.prototype.isDataLoaded = function () {
|
|
15196
15268
|
return !!(this.caseDetails && this.caseHistory);
|
|
@@ -15933,6 +16005,91 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
15933
16005
|
__export(__webpack_require__(58710));
|
|
15934
16006
|
|
|
15935
16007
|
|
|
16008
|
+
/***/ }),
|
|
16009
|
+
|
|
16010
|
+
/***/ 42906:
|
|
16011
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
16012
|
+
|
|
16013
|
+
"use strict";
|
|
16014
|
+
|
|
16015
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
16016
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16017
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
16018
|
+
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;
|
|
16019
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16020
|
+
};
|
|
16021
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
16022
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
16023
|
+
};
|
|
16024
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
16025
|
+
var core_1 = __webpack_require__(57208);
|
|
16026
|
+
var __1 = __webpack_require__(2401);
|
|
16027
|
+
var domain_1 = __webpack_require__(59346);
|
|
16028
|
+
var CaseBasicAccessViewComponent = /** @class */ (function () {
|
|
16029
|
+
function CaseBasicAccessViewComponent(casesService) {
|
|
16030
|
+
this.casesService = casesService;
|
|
16031
|
+
this.caseDetails = null;
|
|
16032
|
+
this.accessType = null;
|
|
16033
|
+
this.courtOrHearingCentre = null;
|
|
16034
|
+
}
|
|
16035
|
+
CaseBasicAccessViewComponent.prototype.ngOnInit = function () {
|
|
16036
|
+
var _this = this;
|
|
16037
|
+
var locationId = this.caseDetails &&
|
|
16038
|
+
this.caseDetails.basicFields &&
|
|
16039
|
+
this.caseDetails.basicFields.caseManagementLocation &&
|
|
16040
|
+
this.caseDetails.basicFields.caseManagementLocation.baseLocation ?
|
|
16041
|
+
this.caseDetails.basicFields.caseManagementLocation.baseLocation : null;
|
|
16042
|
+
if (locationId) {
|
|
16043
|
+
this.courtOrHearingCentreSubscription = this.casesService.getCourtOrHearingCentreName(locationId).subscribe(function (courtOrHearingCentre) {
|
|
16044
|
+
return _this.courtOrHearingCentre = courtOrHearingCentre[0] && courtOrHearingCentre[0].building_location_name ?
|
|
16045
|
+
courtOrHearingCentre[0].building_location_name :
|
|
16046
|
+
null;
|
|
16047
|
+
});
|
|
16048
|
+
}
|
|
16049
|
+
};
|
|
16050
|
+
CaseBasicAccessViewComponent.prototype.ngOnDestroy = function () {
|
|
16051
|
+
if (this.courtOrHearingCentreSubscription) {
|
|
16052
|
+
this.courtOrHearingCentreSubscription.unsubscribe();
|
|
16053
|
+
}
|
|
16054
|
+
};
|
|
16055
|
+
CaseBasicAccessViewComponent.prototype.onCancel = function () {
|
|
16056
|
+
// Navigate to the previous page
|
|
16057
|
+
window.history.go(-1);
|
|
16058
|
+
};
|
|
16059
|
+
__decorate([
|
|
16060
|
+
core_1.Input(),
|
|
16061
|
+
__metadata("design:type", domain_1.CaseView)
|
|
16062
|
+
], CaseBasicAccessViewComponent.prototype, "caseDetails", void 0);
|
|
16063
|
+
__decorate([
|
|
16064
|
+
core_1.Input(),
|
|
16065
|
+
__metadata("design:type", String)
|
|
16066
|
+
], CaseBasicAccessViewComponent.prototype, "accessType", void 0);
|
|
16067
|
+
CaseBasicAccessViewComponent = __decorate([
|
|
16068
|
+
core_1.Component({
|
|
16069
|
+
selector: 'ccd-case-basic-access-view',
|
|
16070
|
+
template: __webpack_require__(80734)
|
|
16071
|
+
}),
|
|
16072
|
+
__metadata("design:paramtypes", [__1.CasesService])
|
|
16073
|
+
], CaseBasicAccessViewComponent);
|
|
16074
|
+
return CaseBasicAccessViewComponent;
|
|
16075
|
+
}());
|
|
16076
|
+
exports.CaseBasicAccessViewComponent = CaseBasicAccessViewComponent;
|
|
16077
|
+
|
|
16078
|
+
|
|
16079
|
+
/***/ }),
|
|
16080
|
+
|
|
16081
|
+
/***/ 74891:
|
|
16082
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
16083
|
+
|
|
16084
|
+
"use strict";
|
|
16085
|
+
|
|
16086
|
+
function __export(m) {
|
|
16087
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
16088
|
+
}
|
|
16089
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
16090
|
+
__export(__webpack_require__(42906));
|
|
16091
|
+
|
|
16092
|
+
|
|
15936
16093
|
/***/ }),
|
|
15937
16094
|
|
|
15938
16095
|
/***/ 70776:
|
|
@@ -15952,10 +16109,15 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
15952
16109
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
15953
16110
|
var core_1 = __webpack_require__(57208);
|
|
15954
16111
|
var forms_1 = __webpack_require__(92985);
|
|
16112
|
+
var router_1 = __webpack_require__(92302);
|
|
16113
|
+
var case_editor_1 = __webpack_require__(27070);
|
|
15955
16114
|
var models_1 = __webpack_require__(55682);
|
|
15956
16115
|
var CaseChallengedAccessRequestComponent = /** @class */ (function () {
|
|
15957
|
-
function CaseChallengedAccessRequestComponent(fb) {
|
|
16116
|
+
function CaseChallengedAccessRequestComponent(fb, router, casesService, route) {
|
|
15958
16117
|
this.fb = fb;
|
|
16118
|
+
this.router = router;
|
|
16119
|
+
this.casesService = casesService;
|
|
16120
|
+
this.route = route;
|
|
15959
16121
|
this.submitted = false;
|
|
15960
16122
|
this.genericError = 'There is a problem';
|
|
15961
16123
|
this.radioSelectedControlName = 'radioSelected';
|
|
@@ -16007,6 +16169,7 @@ var CaseChallengedAccessRequestComponent = /** @class */ (function () {
|
|
|
16007
16169
|
this.formGroup.get(this.otherReasonControlName).setValue('');
|
|
16008
16170
|
};
|
|
16009
16171
|
CaseChallengedAccessRequestComponent.prototype.onSubmit = function () {
|
|
16172
|
+
var _this = this;
|
|
16010
16173
|
this.submitted = true;
|
|
16011
16174
|
if (this.formGroup.get(this.radioSelectedControlName).invalid) {
|
|
16012
16175
|
this.errorMessage = {
|
|
@@ -16030,17 +16193,47 @@ var CaseChallengedAccessRequestComponent = /** @class */ (function () {
|
|
|
16030
16193
|
};
|
|
16031
16194
|
}
|
|
16032
16195
|
}
|
|
16196
|
+
// Initiate Challenged Access Request
|
|
16197
|
+
if (this.formGroup.valid) {
|
|
16198
|
+
// Get the Case Reference (for which access is being requested) from the ActivatedRouteSnapshot data
|
|
16199
|
+
var caseId = this.route.snapshot.data.case.case_id;
|
|
16200
|
+
var radioSelectedValue = this.formGroup.get(this.radioSelectedControlName).value;
|
|
16201
|
+
// Get the index of the selected AccessReason enum value. Can't use Object.values because it's not available in
|
|
16202
|
+
// < ES2017!
|
|
16203
|
+
var reasonNumber = Object.keys(models_1.AccessReason).map(function (e) { return models_1.AccessReason[e]; }).indexOf(radioSelectedValue);
|
|
16204
|
+
var challengedAccessRequest = {
|
|
16205
|
+
reason: reasonNumber,
|
|
16206
|
+
caseReference: reasonNumber === 0 ? this.formGroup.get(this.caseReferenceControlName).value : null,
|
|
16207
|
+
otherReason: reasonNumber === 3 ? this.formGroup.get(this.otherReasonControlName).value : null
|
|
16208
|
+
};
|
|
16209
|
+
this.$roleAssignmentResponseSubscription = this.casesService.createChallengedAccessRequest(caseId, challengedAccessRequest)
|
|
16210
|
+
.subscribe(function (_response) {
|
|
16211
|
+
// Would have been nice to pass the caseId within state.data, but this isn't part of NavigationExtras until
|
|
16212
|
+
// Angular 7.2!
|
|
16213
|
+
_this.router.navigate(['success'], { relativeTo: _this.route });
|
|
16214
|
+
}, function (_error) {
|
|
16215
|
+
// Navigate to error page
|
|
16216
|
+
});
|
|
16217
|
+
}
|
|
16033
16218
|
};
|
|
16034
16219
|
CaseChallengedAccessRequestComponent.prototype.onCancel = function () {
|
|
16035
|
-
// Navigate to the previous page
|
|
16036
|
-
window.history.go(-
|
|
16220
|
+
// Navigate to the page before previous one (should be Search Results or Case List page, for example)
|
|
16221
|
+
window.history.go(-2);
|
|
16222
|
+
};
|
|
16223
|
+
CaseChallengedAccessRequestComponent.prototype.ngOnDestroy = function () {
|
|
16224
|
+
if (this.$roleAssignmentResponseSubscription) {
|
|
16225
|
+
this.$roleAssignmentResponseSubscription.unsubscribe();
|
|
16226
|
+
}
|
|
16037
16227
|
};
|
|
16038
16228
|
CaseChallengedAccessRequestComponent = __decorate([
|
|
16039
16229
|
core_1.Component({
|
|
16040
16230
|
selector: 'ccd-case-challenged-access-request',
|
|
16041
16231
|
template: __webpack_require__(17607)
|
|
16042
16232
|
}),
|
|
16043
|
-
__metadata("design:paramtypes", [forms_1.FormBuilder
|
|
16233
|
+
__metadata("design:paramtypes", [forms_1.FormBuilder,
|
|
16234
|
+
router_1.Router,
|
|
16235
|
+
case_editor_1.CasesService,
|
|
16236
|
+
router_1.ActivatedRoute])
|
|
16044
16237
|
], CaseChallengedAccessRequestComponent);
|
|
16045
16238
|
return CaseChallengedAccessRequestComponent;
|
|
16046
16239
|
}());
|
|
@@ -16104,6 +16297,58 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
16104
16297
|
__export(__webpack_require__(27153));
|
|
16105
16298
|
|
|
16106
16299
|
|
|
16300
|
+
/***/ }),
|
|
16301
|
+
|
|
16302
|
+
/***/ 41969:
|
|
16303
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
16304
|
+
|
|
16305
|
+
"use strict";
|
|
16306
|
+
|
|
16307
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
16308
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16309
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
16310
|
+
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;
|
|
16311
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16312
|
+
};
|
|
16313
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
16314
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
16315
|
+
};
|
|
16316
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
16317
|
+
var core_1 = __webpack_require__(57208);
|
|
16318
|
+
var router_1 = __webpack_require__(92302);
|
|
16319
|
+
var CaseChallengedAccessSuccessComponent = /** @class */ (function () {
|
|
16320
|
+
function CaseChallengedAccessSuccessComponent(route) {
|
|
16321
|
+
this.route = route;
|
|
16322
|
+
}
|
|
16323
|
+
CaseChallengedAccessSuccessComponent.prototype.ngOnInit = function () {
|
|
16324
|
+
this.caseId = this.route.snapshot.data.case.case_id;
|
|
16325
|
+
};
|
|
16326
|
+
CaseChallengedAccessSuccessComponent = __decorate([
|
|
16327
|
+
core_1.Component({
|
|
16328
|
+
selector: 'ccd-case-challenged-access-success',
|
|
16329
|
+
template: __webpack_require__(96603)
|
|
16330
|
+
}),
|
|
16331
|
+
__metadata("design:paramtypes", [router_1.ActivatedRoute])
|
|
16332
|
+
], CaseChallengedAccessSuccessComponent);
|
|
16333
|
+
return CaseChallengedAccessSuccessComponent;
|
|
16334
|
+
}());
|
|
16335
|
+
exports.CaseChallengedAccessSuccessComponent = CaseChallengedAccessSuccessComponent;
|
|
16336
|
+
|
|
16337
|
+
|
|
16338
|
+
/***/ }),
|
|
16339
|
+
|
|
16340
|
+
/***/ 26840:
|
|
16341
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
16342
|
+
|
|
16343
|
+
"use strict";
|
|
16344
|
+
|
|
16345
|
+
function __export(m) {
|
|
16346
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
16347
|
+
}
|
|
16348
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
16349
|
+
__export(__webpack_require__(41969));
|
|
16350
|
+
|
|
16351
|
+
|
|
16107
16352
|
/***/ }),
|
|
16108
16353
|
|
|
16109
16354
|
/***/ 83645:
|
|
@@ -16162,10 +16407,10 @@ var CaseEventTriggerComponent = /** @class */ (function () {
|
|
|
16162
16407
|
});
|
|
16163
16408
|
};
|
|
16164
16409
|
CaseEventTriggerComponent.prototype.ngOnDestroy = function () {
|
|
16165
|
-
if (this.activityPollingService.isEnabled) {
|
|
16410
|
+
if (this.activitySubscription && this.activityPollingService.isEnabled) {
|
|
16166
16411
|
this.activitySubscription.unsubscribe();
|
|
16167
16412
|
}
|
|
16168
|
-
if (!this.route.snapshot.data.case) {
|
|
16413
|
+
if (!this.route.snapshot.data.case && this.caseSubscription) {
|
|
16169
16414
|
this.caseSubscription.unsubscribe();
|
|
16170
16415
|
}
|
|
16171
16416
|
};
|
|
@@ -16239,130 +16484,7 @@ __export(__webpack_require__(83645));
|
|
|
16239
16484
|
|
|
16240
16485
|
/***/ }),
|
|
16241
16486
|
|
|
16242
|
-
/***/
|
|
16243
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
16244
|
-
|
|
16245
|
-
"use strict";
|
|
16246
|
-
|
|
16247
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
16248
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16249
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
16250
|
-
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;
|
|
16251
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16252
|
-
};
|
|
16253
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
16254
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
16255
|
-
};
|
|
16256
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
16257
|
-
var core_1 = __webpack_require__(57208);
|
|
16258
|
-
var services_1 = __webpack_require__(65010);
|
|
16259
|
-
var domain_1 = __webpack_require__(59346);
|
|
16260
|
-
var case_editor_1 = __webpack_require__(27070);
|
|
16261
|
-
var services_2 = __webpack_require__(65010);
|
|
16262
|
-
var rxjs_1 = __webpack_require__(87318);
|
|
16263
|
-
var operators_1 = __webpack_require__(19443);
|
|
16264
|
-
var services_3 = __webpack_require__(65010);
|
|
16265
|
-
var class_transformer_1 = __webpack_require__(86631);
|
|
16266
|
-
var CaseViewComponent = /** @class */ (function () {
|
|
16267
|
-
function CaseViewComponent(navigationNotifierService, caseNotifier, casesService, draftService, alertService) {
|
|
16268
|
-
this.navigationNotifierService = navigationNotifierService;
|
|
16269
|
-
this.caseNotifier = caseNotifier;
|
|
16270
|
-
this.casesService = casesService;
|
|
16271
|
-
this.draftService = draftService;
|
|
16272
|
-
this.alertService = alertService;
|
|
16273
|
-
this.hasPrint = true;
|
|
16274
|
-
this.hasEventSelector = true;
|
|
16275
|
-
this.navigationTriggered = new core_1.EventEmitter();
|
|
16276
|
-
}
|
|
16277
|
-
CaseViewComponent.prototype.ngOnInit = function () {
|
|
16278
|
-
var _this = this;
|
|
16279
|
-
this.getCaseView(this.case)
|
|
16280
|
-
.pipe(operators_1.map(function (caseView) {
|
|
16281
|
-
_this.caseDetails = class_transformer_1.plainToClassFromExist(new domain_1.CaseView(), caseView);
|
|
16282
|
-
_this.caseNotifier.announceCase(_this.caseDetails);
|
|
16283
|
-
}))
|
|
16284
|
-
.toPromise()
|
|
16285
|
-
.catch(function (error) { return _this.checkAuthorizationError(error); });
|
|
16286
|
-
this.navigationSubscription = this.navigationNotifierService.navigation.subscribe(function (navigation) {
|
|
16287
|
-
_this.navigationTriggered.emit(navigation);
|
|
16288
|
-
});
|
|
16289
|
-
};
|
|
16290
|
-
CaseViewComponent.prototype.ngOnDestroy = function () {
|
|
16291
|
-
this.navigationSubscription.unsubscribe();
|
|
16292
|
-
};
|
|
16293
|
-
CaseViewComponent.prototype.isDataLoaded = function () {
|
|
16294
|
-
return !!this.caseDetails;
|
|
16295
|
-
};
|
|
16296
|
-
CaseViewComponent.prototype.getCaseView = function (cid) {
|
|
16297
|
-
if (domain_1.Draft.isDraft(cid)) {
|
|
16298
|
-
return this.getDraft(cid);
|
|
16299
|
-
}
|
|
16300
|
-
else {
|
|
16301
|
-
return this.casesService
|
|
16302
|
-
.getCaseViewV2(cid);
|
|
16303
|
-
}
|
|
16304
|
-
};
|
|
16305
|
-
CaseViewComponent.prototype.getDraft = function (cid) {
|
|
16306
|
-
return this.draftService
|
|
16307
|
-
.getDraft(cid);
|
|
16308
|
-
};
|
|
16309
|
-
CaseViewComponent.prototype.checkAuthorizationError = function (error) {
|
|
16310
|
-
// TODO Should be logged to remote logging infrastructure
|
|
16311
|
-
console.error(error);
|
|
16312
|
-
if (error.status !== 401 && error.status !== 403) {
|
|
16313
|
-
this.alertService.error(error.message);
|
|
16314
|
-
}
|
|
16315
|
-
return rxjs_1.throwError(error);
|
|
16316
|
-
};
|
|
16317
|
-
__decorate([
|
|
16318
|
-
core_1.Input(),
|
|
16319
|
-
__metadata("design:type", String)
|
|
16320
|
-
], CaseViewComponent.prototype, "case", void 0);
|
|
16321
|
-
__decorate([
|
|
16322
|
-
core_1.Input(),
|
|
16323
|
-
__metadata("design:type", Object)
|
|
16324
|
-
], CaseViewComponent.prototype, "hasPrint", void 0);
|
|
16325
|
-
__decorate([
|
|
16326
|
-
core_1.Input(),
|
|
16327
|
-
__metadata("design:type", Object)
|
|
16328
|
-
], CaseViewComponent.prototype, "hasEventSelector", void 0);
|
|
16329
|
-
__decorate([
|
|
16330
|
-
core_1.Output(),
|
|
16331
|
-
__metadata("design:type", core_1.EventEmitter)
|
|
16332
|
-
], CaseViewComponent.prototype, "navigationTriggered", void 0);
|
|
16333
|
-
CaseViewComponent = __decorate([
|
|
16334
|
-
core_1.Component({
|
|
16335
|
-
selector: 'ccd-case-view',
|
|
16336
|
-
template: __webpack_require__(24288)
|
|
16337
|
-
}),
|
|
16338
|
-
__metadata("design:paramtypes", [services_3.NavigationNotifierService,
|
|
16339
|
-
case_editor_1.CaseNotifier,
|
|
16340
|
-
case_editor_1.CasesService,
|
|
16341
|
-
services_2.DraftService,
|
|
16342
|
-
services_1.AlertService])
|
|
16343
|
-
], CaseViewComponent);
|
|
16344
|
-
return CaseViewComponent;
|
|
16345
|
-
}());
|
|
16346
|
-
exports.CaseViewComponent = CaseViewComponent;
|
|
16347
|
-
|
|
16348
|
-
|
|
16349
|
-
/***/ }),
|
|
16350
|
-
|
|
16351
|
-
/***/ 65389:
|
|
16352
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
16353
|
-
|
|
16354
|
-
"use strict";
|
|
16355
|
-
|
|
16356
|
-
function __export(m) {
|
|
16357
|
-
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
16358
|
-
}
|
|
16359
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
16360
|
-
__export(__webpack_require__(76979));
|
|
16361
|
-
|
|
16362
|
-
|
|
16363
|
-
/***/ }),
|
|
16364
|
-
|
|
16365
|
-
/***/ 89554:
|
|
16487
|
+
/***/ 76764:
|
|
16366
16488
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
16367
16489
|
|
|
16368
16490
|
"use strict";
|
|
@@ -16399,9 +16521,9 @@ var dialogs_1 = __webpack_require__(84573);
|
|
|
16399
16521
|
var directives_1 = __webpack_require__(66395);
|
|
16400
16522
|
var domain_1 = __webpack_require__(59346);
|
|
16401
16523
|
var services_1 = __webpack_require__(65010);
|
|
16402
|
-
var
|
|
16403
|
-
var
|
|
16404
|
-
function
|
|
16524
|
+
var helpers_1 = __webpack_require__(23495);
|
|
16525
|
+
var CaseFullAccessViewComponent = /** @class */ (function () {
|
|
16526
|
+
function CaseFullAccessViewComponent(ngZone, route, router, navigationNotifierService, orderService, activityPollingService, dialog, alertService, draftService, errorNotifierService, location) {
|
|
16405
16527
|
this.ngZone = ngZone;
|
|
16406
16528
|
this.route = route;
|
|
16407
16529
|
this.router = router;
|
|
@@ -16411,32 +16533,23 @@ var CaseViewerComponent = /** @class */ (function () {
|
|
|
16411
16533
|
this.dialog = dialog;
|
|
16412
16534
|
this.alertService = alertService;
|
|
16413
16535
|
this.draftService = draftService;
|
|
16414
|
-
this.caseNotifier = caseNotifier;
|
|
16415
16536
|
this.errorNotifierService = errorNotifierService;
|
|
16416
16537
|
this.location = location;
|
|
16417
16538
|
this.hasPrint = true;
|
|
16418
16539
|
this.hasEventSelector = true;
|
|
16419
16540
|
this.prependedTabs = [];
|
|
16420
16541
|
this.BANNER = domain_1.DisplayMode.BANNER;
|
|
16421
|
-
this.triggerTextStart =
|
|
16422
|
-
this.triggerTextIgnoreWarnings =
|
|
16423
|
-
this.triggerText =
|
|
16542
|
+
this.triggerTextStart = CaseFullAccessViewComponent_1.TRIGGER_TEXT_START;
|
|
16543
|
+
this.triggerTextIgnoreWarnings = CaseFullAccessViewComponent_1.TRIGGER_TEXT_CONTINUE;
|
|
16544
|
+
this.triggerText = CaseFullAccessViewComponent_1.TRIGGER_TEXT_START;
|
|
16424
16545
|
this.ignoreWarning = false;
|
|
16425
16546
|
this.callbackErrorsSubject = new Subject_1.Subject();
|
|
16426
16547
|
}
|
|
16427
|
-
|
|
16428
|
-
|
|
16548
|
+
CaseFullAccessViewComponent_1 = CaseFullAccessViewComponent;
|
|
16549
|
+
CaseFullAccessViewComponent.prototype.ngOnInit = function () {
|
|
16429
16550
|
var _this = this;
|
|
16430
|
-
|
|
16431
|
-
|
|
16432
|
-
this.caseSubscription = this.caseNotifier.caseView.subscribe(function (caseDetails) {
|
|
16433
|
-
_this.caseDetails = caseDetails;
|
|
16434
|
-
_this.init();
|
|
16435
|
-
});
|
|
16436
|
-
}
|
|
16437
|
-
else {
|
|
16438
|
-
this.init();
|
|
16439
|
-
}
|
|
16551
|
+
helpers_1.initDialog(this.dialogConfig);
|
|
16552
|
+
this.init();
|
|
16440
16553
|
this.callbackErrorsSubject.subscribe(function (errorEvent) {
|
|
16441
16554
|
_this.error = errorEvent;
|
|
16442
16555
|
});
|
|
@@ -16447,10 +16560,10 @@ var CaseViewerComponent = /** @class */ (function () {
|
|
|
16447
16560
|
}
|
|
16448
16561
|
});
|
|
16449
16562
|
};
|
|
16450
|
-
|
|
16563
|
+
CaseFullAccessViewComponent.prototype.isPrintEnabled = function () {
|
|
16451
16564
|
return this.caseDetails.case_type.printEnabled;
|
|
16452
16565
|
};
|
|
16453
|
-
|
|
16566
|
+
CaseFullAccessViewComponent.prototype.ngOnDestroy = function () {
|
|
16454
16567
|
if (this.activityPollingService.isEnabled) {
|
|
16455
16568
|
this.activitySubscription.unsubscribe();
|
|
16456
16569
|
}
|
|
@@ -16458,19 +16571,19 @@ var CaseViewerComponent = /** @class */ (function () {
|
|
|
16458
16571
|
if (!this.route.snapshot.data.case) {
|
|
16459
16572
|
this.caseSubscription.unsubscribe();
|
|
16460
16573
|
}
|
|
16461
|
-
if (
|
|
16574
|
+
if (this.errorSubscription) {
|
|
16462
16575
|
this.errorSubscription.unsubscribe();
|
|
16463
16576
|
}
|
|
16464
16577
|
};
|
|
16465
|
-
|
|
16578
|
+
CaseFullAccessViewComponent.prototype.postViewActivity = function () {
|
|
16466
16579
|
return this.activityPollingService.postViewActivity(this.caseDetails.case_id);
|
|
16467
16580
|
};
|
|
16468
|
-
|
|
16581
|
+
CaseFullAccessViewComponent.prototype.clearErrorsAndWarnings = function () {
|
|
16469
16582
|
this.resetErrors();
|
|
16470
16583
|
this.ignoreWarning = false;
|
|
16471
|
-
this.triggerText =
|
|
16584
|
+
this.triggerText = CaseFullAccessViewComponent_1.TRIGGER_TEXT_START;
|
|
16472
16585
|
};
|
|
16473
|
-
|
|
16586
|
+
CaseFullAccessViewComponent.prototype.applyTrigger = function (trigger) {
|
|
16474
16587
|
var _this = this;
|
|
16475
16588
|
this.error = null;
|
|
16476
16589
|
var theQueryParams = {};
|
|
@@ -16493,7 +16606,7 @@ var CaseViewerComponent = /** @class */ (function () {
|
|
|
16493
16606
|
}
|
|
16494
16607
|
else if (this.isDraft() && trigger.id !== domain_1.CaseViewTrigger.DELETE) {
|
|
16495
16608
|
theQueryParams[domain_1.DRAFT_QUERY_PARAM] = this.caseDetails.case_id;
|
|
16496
|
-
theQueryParams[
|
|
16609
|
+
theQueryParams[CaseFullAccessViewComponent_1.ORIGIN_QUERY_PARAM] = 'viewDraft';
|
|
16497
16610
|
this.navigationNotifierService.announceNavigation({
|
|
16498
16611
|
action: services_1.NavigationOrigin.DRAFT_RESUMED,
|
|
16499
16612
|
jid: this.caseDetails.case_type.jurisdiction.id,
|
|
@@ -16511,20 +16624,17 @@ var CaseViewerComponent = /** @class */ (function () {
|
|
|
16511
16624
|
});
|
|
16512
16625
|
}
|
|
16513
16626
|
};
|
|
16514
|
-
|
|
16515
|
-
return !!this.caseDetails;
|
|
16516
|
-
};
|
|
16517
|
-
CaseViewerComponent.prototype.hasTabsPresent = function () {
|
|
16627
|
+
CaseFullAccessViewComponent.prototype.hasTabsPresent = function () {
|
|
16518
16628
|
return this.sortedTabs.length > 0 || this.prependedTabs.length > 0;
|
|
16519
16629
|
};
|
|
16520
|
-
|
|
16630
|
+
CaseFullAccessViewComponent.prototype.callbackErrorsNotify = function (callbackErrorsContext) {
|
|
16521
16631
|
this.ignoreWarning = callbackErrorsContext.ignore_warning;
|
|
16522
16632
|
this.triggerText = callbackErrorsContext.trigger_text;
|
|
16523
16633
|
};
|
|
16524
|
-
|
|
16634
|
+
CaseFullAccessViewComponent.prototype.isDraft = function () {
|
|
16525
16635
|
return domain_1.Draft.isDraft(this.caseDetails.case_id);
|
|
16526
16636
|
};
|
|
16527
|
-
|
|
16637
|
+
CaseFullAccessViewComponent.prototype.isTriggerButtonDisabled = function () {
|
|
16528
16638
|
return (this.error
|
|
16529
16639
|
&& this.error.callbackErrors
|
|
16530
16640
|
&& this.error.callbackErrors.length)
|
|
@@ -16533,7 +16643,7 @@ var CaseViewerComponent = /** @class */ (function () {
|
|
|
16533
16643
|
&& this.error.details.field_errors
|
|
16534
16644
|
&& this.error.details.field_errors.length);
|
|
16535
16645
|
};
|
|
16536
|
-
|
|
16646
|
+
CaseFullAccessViewComponent.prototype.ngAfterViewInit = function () {
|
|
16537
16647
|
var _this = this;
|
|
16538
16648
|
var matTab;
|
|
16539
16649
|
var url = this.location.path(true);
|
|
@@ -16550,17 +16660,17 @@ var CaseViewerComponent = /** @class */ (function () {
|
|
|
16550
16660
|
});
|
|
16551
16661
|
}
|
|
16552
16662
|
else {
|
|
16553
|
-
var regExp = new RegExp(
|
|
16554
|
-
hashValue = hashValue.replace(regExp,
|
|
16663
|
+
var regExp = new RegExp(CaseFullAccessViewComponent_1.UNICODE_SPACE, 'g');
|
|
16664
|
+
hashValue = hashValue.replace(regExp, CaseFullAccessViewComponent_1.EMPTY_SPACE);
|
|
16555
16665
|
matTab = this.tabGroup._tabs.find(function (x) {
|
|
16556
|
-
return x.textLabel.replace(
|
|
16666
|
+
return x.textLabel.replace(CaseFullAccessViewComponent_1.EMPTY_SPACE, '').toLowerCase() === hashValue.toLowerCase();
|
|
16557
16667
|
});
|
|
16558
16668
|
if (matTab && matTab.position) {
|
|
16559
16669
|
this.tabGroup.selectedIndex = matTab.position;
|
|
16560
16670
|
}
|
|
16561
16671
|
}
|
|
16562
16672
|
};
|
|
16563
|
-
|
|
16673
|
+
CaseFullAccessViewComponent.prototype.tabChanged = function (tabChangeEvent) {
|
|
16564
16674
|
var tab = tabChangeEvent.tab['_viewContainerRef'];
|
|
16565
16675
|
var id = tab.element.nativeElement.id;
|
|
16566
16676
|
if (tabChangeEvent.index <= 1 && this.prependedTabs.length) {
|
|
@@ -16572,7 +16682,7 @@ var CaseViewerComponent = /** @class */ (function () {
|
|
|
16572
16682
|
});
|
|
16573
16683
|
}
|
|
16574
16684
|
};
|
|
16575
|
-
|
|
16685
|
+
CaseFullAccessViewComponent.prototype.init = function () {
|
|
16576
16686
|
var _this = this;
|
|
16577
16687
|
// Clone and sort tabs array
|
|
16578
16688
|
this.sortedTabs = this.orderService.sort(this.caseDetails.tabs);
|
|
@@ -16590,13 +16700,13 @@ var CaseViewerComponent = /** @class */ (function () {
|
|
|
16590
16700
|
this.resetErrors();
|
|
16591
16701
|
}
|
|
16592
16702
|
};
|
|
16593
|
-
|
|
16703
|
+
CaseFullAccessViewComponent.prototype.sortTabFieldsAndFilterTabs = function (tabs) {
|
|
16594
16704
|
var _this = this;
|
|
16595
16705
|
return tabs
|
|
16596
16706
|
.map(function (tab) { return Object.assign({}, tab, { fields: _this.orderService.sort(tab.fields) }); })
|
|
16597
16707
|
.filter(function (tab) { return directives_1.ShowCondition.getInstance(tab.show_condition).matchByContextFields(_this.caseFields); });
|
|
16598
16708
|
};
|
|
16599
|
-
|
|
16709
|
+
CaseFullAccessViewComponent.prototype.getTabFields = function () {
|
|
16600
16710
|
var caseDataFields = this.sortedTabs.reduce(function (acc, tab) {
|
|
16601
16711
|
return acc.concat(class_transformer_1.plainToClass(domain_1.CaseField, tab.fields));
|
|
16602
16712
|
}, []);
|
|
@@ -16608,7 +16718,7 @@ var CaseViewerComponent = /** @class */ (function () {
|
|
|
16608
16718
|
* This FormGroup is necessary for evaluation the show/hide conditions of
|
|
16609
16719
|
* fields that are dependent on a field only available on a DIFFERENT tab.
|
|
16610
16720
|
*/
|
|
16611
|
-
|
|
16721
|
+
CaseFullAccessViewComponent.prototype.buildFormGroup = function (caseFields) {
|
|
16612
16722
|
var value = {};
|
|
16613
16723
|
if (caseFields) {
|
|
16614
16724
|
caseFields.forEach(function (caseField) {
|
|
@@ -16618,55 +16728,42 @@ var CaseViewerComponent = /** @class */ (function () {
|
|
|
16618
16728
|
}
|
|
16619
16729
|
return new forms_1.FormGroup({ data: new forms_1.FormControl(value) });
|
|
16620
16730
|
};
|
|
16621
|
-
|
|
16622
|
-
this.dialogConfig = new material_1.MatDialogConfig();
|
|
16623
|
-
this.dialogConfig.disableClose = true;
|
|
16624
|
-
this.dialogConfig.autoFocus = true;
|
|
16625
|
-
this.dialogConfig.ariaLabel = 'Label';
|
|
16626
|
-
this.dialogConfig.height = '245px';
|
|
16627
|
-
this.dialogConfig.width = '550px';
|
|
16628
|
-
this.dialogConfig.panelClass = 'dialog';
|
|
16629
|
-
this.dialogConfig.closeOnNavigation = false;
|
|
16630
|
-
this.dialogConfig.position = {
|
|
16631
|
-
top: window.innerHeight / 2 - 120 + 'px', left: window.innerWidth / 2 - 275 + 'px'
|
|
16632
|
-
};
|
|
16633
|
-
};
|
|
16634
|
-
CaseViewerComponent.prototype.resetErrors = function () {
|
|
16731
|
+
CaseFullAccessViewComponent.prototype.resetErrors = function () {
|
|
16635
16732
|
this.error = null;
|
|
16636
16733
|
this.callbackErrorsSubject.next(null);
|
|
16637
16734
|
this.alertService.clear();
|
|
16638
16735
|
};
|
|
16639
|
-
var
|
|
16640
|
-
|
|
16641
|
-
|
|
16642
|
-
|
|
16643
|
-
|
|
16644
|
-
|
|
16736
|
+
var CaseFullAccessViewComponent_1;
|
|
16737
|
+
CaseFullAccessViewComponent.ORIGIN_QUERY_PARAM = 'origin';
|
|
16738
|
+
CaseFullAccessViewComponent.TRIGGER_TEXT_START = 'Go';
|
|
16739
|
+
CaseFullAccessViewComponent.TRIGGER_TEXT_CONTINUE = 'Ignore Warning and Go';
|
|
16740
|
+
CaseFullAccessViewComponent.UNICODE_SPACE = '%20';
|
|
16741
|
+
CaseFullAccessViewComponent.EMPTY_SPACE = ' ';
|
|
16645
16742
|
__decorate([
|
|
16646
16743
|
core_1.Input(),
|
|
16647
16744
|
__metadata("design:type", Object)
|
|
16648
|
-
],
|
|
16745
|
+
], CaseFullAccessViewComponent.prototype, "hasPrint", void 0);
|
|
16649
16746
|
__decorate([
|
|
16650
16747
|
core_1.Input(),
|
|
16651
16748
|
__metadata("design:type", Object)
|
|
16652
|
-
],
|
|
16749
|
+
], CaseFullAccessViewComponent.prototype, "hasEventSelector", void 0);
|
|
16653
16750
|
__decorate([
|
|
16654
16751
|
core_1.Input(),
|
|
16655
16752
|
__metadata("design:type", domain_1.CaseView)
|
|
16656
|
-
],
|
|
16753
|
+
], CaseFullAccessViewComponent.prototype, "caseDetails", void 0);
|
|
16657
16754
|
__decorate([
|
|
16658
16755
|
core_1.Input(),
|
|
16659
16756
|
__metadata("design:type", Array)
|
|
16660
|
-
],
|
|
16757
|
+
], CaseFullAccessViewComponent.prototype, "prependedTabs", void 0);
|
|
16661
16758
|
__decorate([
|
|
16662
16759
|
core_1.ViewChild('tabGroup'),
|
|
16663
16760
|
__metadata("design:type", material_1.MatTabGroup)
|
|
16664
|
-
],
|
|
16665
|
-
|
|
16761
|
+
], CaseFullAccessViewComponent.prototype, "tabGroup", void 0);
|
|
16762
|
+
CaseFullAccessViewComponent = CaseFullAccessViewComponent_1 = __decorate([
|
|
16666
16763
|
core_1.Component({
|
|
16667
|
-
selector: 'ccd-case-
|
|
16668
|
-
template: __webpack_require__(
|
|
16669
|
-
styles: [__webpack_require__(
|
|
16764
|
+
selector: 'ccd-case-full-access-view',
|
|
16765
|
+
template: __webpack_require__(99839),
|
|
16766
|
+
styles: [__webpack_require__(73262)]
|
|
16670
16767
|
}),
|
|
16671
16768
|
__metadata("design:paramtypes", [core_1.NgZone,
|
|
16672
16769
|
router_1.ActivatedRoute,
|
|
@@ -16677,9 +16774,273 @@ var CaseViewerComponent = /** @class */ (function () {
|
|
|
16677
16774
|
material_1.MatDialog,
|
|
16678
16775
|
services_1.AlertService,
|
|
16679
16776
|
services_1.DraftService,
|
|
16680
|
-
case_editor_1.CaseNotifier,
|
|
16681
16777
|
services_1.ErrorNotifierService,
|
|
16682
16778
|
common_1.Location])
|
|
16779
|
+
], CaseFullAccessViewComponent);
|
|
16780
|
+
return CaseFullAccessViewComponent;
|
|
16781
|
+
}());
|
|
16782
|
+
exports.CaseFullAccessViewComponent = CaseFullAccessViewComponent;
|
|
16783
|
+
|
|
16784
|
+
|
|
16785
|
+
/***/ }),
|
|
16786
|
+
|
|
16787
|
+
/***/ 65341:
|
|
16788
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
16789
|
+
|
|
16790
|
+
"use strict";
|
|
16791
|
+
|
|
16792
|
+
function __export(m) {
|
|
16793
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
16794
|
+
}
|
|
16795
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
16796
|
+
__export(__webpack_require__(76764));
|
|
16797
|
+
|
|
16798
|
+
|
|
16799
|
+
/***/ }),
|
|
16800
|
+
|
|
16801
|
+
/***/ 76979:
|
|
16802
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
16803
|
+
|
|
16804
|
+
"use strict";
|
|
16805
|
+
|
|
16806
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
16807
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16808
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
16809
|
+
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;
|
|
16810
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16811
|
+
};
|
|
16812
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
16813
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
16814
|
+
};
|
|
16815
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
16816
|
+
var core_1 = __webpack_require__(57208);
|
|
16817
|
+
var services_1 = __webpack_require__(65010);
|
|
16818
|
+
var domain_1 = __webpack_require__(59346);
|
|
16819
|
+
var case_editor_1 = __webpack_require__(27070);
|
|
16820
|
+
var services_2 = __webpack_require__(65010);
|
|
16821
|
+
var rxjs_1 = __webpack_require__(87318);
|
|
16822
|
+
var operators_1 = __webpack_require__(19443);
|
|
16823
|
+
var services_3 = __webpack_require__(65010);
|
|
16824
|
+
var class_transformer_1 = __webpack_require__(86631);
|
|
16825
|
+
var CaseViewComponent = /** @class */ (function () {
|
|
16826
|
+
function CaseViewComponent(navigationNotifierService, caseNotifier, casesService, draftService, alertService) {
|
|
16827
|
+
this.navigationNotifierService = navigationNotifierService;
|
|
16828
|
+
this.caseNotifier = caseNotifier;
|
|
16829
|
+
this.casesService = casesService;
|
|
16830
|
+
this.draftService = draftService;
|
|
16831
|
+
this.alertService = alertService;
|
|
16832
|
+
this.hasPrint = true;
|
|
16833
|
+
this.hasEventSelector = true;
|
|
16834
|
+
this.navigationTriggered = new core_1.EventEmitter();
|
|
16835
|
+
}
|
|
16836
|
+
CaseViewComponent.prototype.ngOnInit = function () {
|
|
16837
|
+
var _this = this;
|
|
16838
|
+
this.getCaseView(this.case)
|
|
16839
|
+
.pipe(operators_1.map(function (caseView) {
|
|
16840
|
+
_this.caseDetails = class_transformer_1.plainToClassFromExist(new domain_1.CaseView(), caseView);
|
|
16841
|
+
_this.caseNotifier.announceCase(_this.caseDetails);
|
|
16842
|
+
}))
|
|
16843
|
+
.toPromise()
|
|
16844
|
+
.catch(function (error) { return _this.checkAuthorizationError(error); });
|
|
16845
|
+
this.navigationSubscription = this.navigationNotifierService.navigation.subscribe(function (navigation) {
|
|
16846
|
+
_this.navigationTriggered.emit(navigation);
|
|
16847
|
+
});
|
|
16848
|
+
};
|
|
16849
|
+
CaseViewComponent.prototype.ngOnDestroy = function () {
|
|
16850
|
+
if (this.navigationSubscription) {
|
|
16851
|
+
this.navigationSubscription.unsubscribe();
|
|
16852
|
+
}
|
|
16853
|
+
};
|
|
16854
|
+
CaseViewComponent.prototype.isDataLoaded = function () {
|
|
16855
|
+
return !!this.caseDetails;
|
|
16856
|
+
};
|
|
16857
|
+
CaseViewComponent.prototype.getCaseView = function (cid) {
|
|
16858
|
+
if (domain_1.Draft.isDraft(cid)) {
|
|
16859
|
+
return this.getDraft(cid);
|
|
16860
|
+
}
|
|
16861
|
+
else {
|
|
16862
|
+
return this.casesService
|
|
16863
|
+
.getCaseViewV2(cid);
|
|
16864
|
+
}
|
|
16865
|
+
};
|
|
16866
|
+
CaseViewComponent.prototype.getDraft = function (cid) {
|
|
16867
|
+
return this.draftService
|
|
16868
|
+
.getDraft(cid);
|
|
16869
|
+
};
|
|
16870
|
+
CaseViewComponent.prototype.checkAuthorizationError = function (error) {
|
|
16871
|
+
// TODO Should be logged to remote logging infrastructure
|
|
16872
|
+
console.error(error);
|
|
16873
|
+
if (error.status !== 401 && error.status !== 403) {
|
|
16874
|
+
this.alertService.error(error.message);
|
|
16875
|
+
}
|
|
16876
|
+
return rxjs_1.throwError(error);
|
|
16877
|
+
};
|
|
16878
|
+
__decorate([
|
|
16879
|
+
core_1.Input(),
|
|
16880
|
+
__metadata("design:type", String)
|
|
16881
|
+
], CaseViewComponent.prototype, "case", void 0);
|
|
16882
|
+
__decorate([
|
|
16883
|
+
core_1.Input(),
|
|
16884
|
+
__metadata("design:type", Object)
|
|
16885
|
+
], CaseViewComponent.prototype, "hasPrint", void 0);
|
|
16886
|
+
__decorate([
|
|
16887
|
+
core_1.Input(),
|
|
16888
|
+
__metadata("design:type", Object)
|
|
16889
|
+
], CaseViewComponent.prototype, "hasEventSelector", void 0);
|
|
16890
|
+
__decorate([
|
|
16891
|
+
core_1.Output(),
|
|
16892
|
+
__metadata("design:type", core_1.EventEmitter)
|
|
16893
|
+
], CaseViewComponent.prototype, "navigationTriggered", void 0);
|
|
16894
|
+
CaseViewComponent = __decorate([
|
|
16895
|
+
core_1.Component({
|
|
16896
|
+
selector: 'ccd-case-view',
|
|
16897
|
+
template: __webpack_require__(24288)
|
|
16898
|
+
}),
|
|
16899
|
+
__metadata("design:paramtypes", [services_3.NavigationNotifierService,
|
|
16900
|
+
case_editor_1.CaseNotifier,
|
|
16901
|
+
case_editor_1.CasesService,
|
|
16902
|
+
services_2.DraftService,
|
|
16903
|
+
services_1.AlertService])
|
|
16904
|
+
], CaseViewComponent);
|
|
16905
|
+
return CaseViewComponent;
|
|
16906
|
+
}());
|
|
16907
|
+
exports.CaseViewComponent = CaseViewComponent;
|
|
16908
|
+
|
|
16909
|
+
|
|
16910
|
+
/***/ }),
|
|
16911
|
+
|
|
16912
|
+
/***/ 65389:
|
|
16913
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
16914
|
+
|
|
16915
|
+
"use strict";
|
|
16916
|
+
|
|
16917
|
+
function __export(m) {
|
|
16918
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
16919
|
+
}
|
|
16920
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
16921
|
+
__export(__webpack_require__(76979));
|
|
16922
|
+
|
|
16923
|
+
|
|
16924
|
+
/***/ }),
|
|
16925
|
+
|
|
16926
|
+
/***/ 89554:
|
|
16927
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
16928
|
+
|
|
16929
|
+
"use strict";
|
|
16930
|
+
|
|
16931
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
16932
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16933
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
16934
|
+
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;
|
|
16935
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16936
|
+
};
|
|
16937
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
16938
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
16939
|
+
};
|
|
16940
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
16941
|
+
var core_1 = __webpack_require__(57208);
|
|
16942
|
+
var router_1 = __webpack_require__(92302);
|
|
16943
|
+
var app_config_1 = __webpack_require__(35185);
|
|
16944
|
+
var domain_1 = __webpack_require__(59346);
|
|
16945
|
+
var case_editor_1 = __webpack_require__(27070);
|
|
16946
|
+
var CaseViewerComponent = /** @class */ (function () {
|
|
16947
|
+
function CaseViewerComponent(route, caseNotifier, appConfig) {
|
|
16948
|
+
this.route = route;
|
|
16949
|
+
this.caseNotifier = caseNotifier;
|
|
16950
|
+
this.appConfig = appConfig;
|
|
16951
|
+
this.hasPrint = true;
|
|
16952
|
+
this.hasEventSelector = true;
|
|
16953
|
+
this.prependedTabs = [];
|
|
16954
|
+
}
|
|
16955
|
+
CaseViewerComponent_1 = CaseViewerComponent;
|
|
16956
|
+
CaseViewerComponent.prototype.ngOnInit = function () {
|
|
16957
|
+
this.loadCaseDetails();
|
|
16958
|
+
};
|
|
16959
|
+
CaseViewerComponent.prototype.ngOnDestroy = function () {
|
|
16960
|
+
if (this.caseSubscription) {
|
|
16961
|
+
this.caseSubscription.unsubscribe();
|
|
16962
|
+
}
|
|
16963
|
+
};
|
|
16964
|
+
CaseViewerComponent.prototype.loadCaseDetails = function () {
|
|
16965
|
+
var _this = this;
|
|
16966
|
+
if (!this.route.snapshot.data.case) {
|
|
16967
|
+
this.caseSubscription = this.caseNotifier.caseView.subscribe(function (caseDetails) {
|
|
16968
|
+
_this.caseDetails = caseDetails;
|
|
16969
|
+
_this.setUserAccessType(_this.caseDetails);
|
|
16970
|
+
});
|
|
16971
|
+
}
|
|
16972
|
+
else {
|
|
16973
|
+
this.caseDetails = this.route.snapshot.data.case;
|
|
16974
|
+
this.setUserAccessType(this.caseDetails);
|
|
16975
|
+
}
|
|
16976
|
+
};
|
|
16977
|
+
CaseViewerComponent.prototype.setUserAccessType = function (caseDetails) {
|
|
16978
|
+
// remove once CCD starts sending CAM data or Access management goes live
|
|
16979
|
+
this.setMockData(caseDetails);
|
|
16980
|
+
if (caseDetails && Array.isArray(caseDetails.metadataFields)) {
|
|
16981
|
+
var access_process = caseDetails.metadataFields.find(function (metadataField) {
|
|
16982
|
+
return metadataField.id === CaseViewerComponent_1.METADATA_FIELD_ACCESS_PROCEES_ID;
|
|
16983
|
+
});
|
|
16984
|
+
this.userAccessType = access_process ? access_process.value : null;
|
|
16985
|
+
}
|
|
16986
|
+
};
|
|
16987
|
+
CaseViewerComponent.prototype.isDataLoaded = function () {
|
|
16988
|
+
return !!this.caseDetails;
|
|
16989
|
+
};
|
|
16990
|
+
CaseViewerComponent.prototype.hasStandardAccess = function () {
|
|
16991
|
+
var featureToggleOn = this.appConfig.getAccessManagementMode();
|
|
16992
|
+
return featureToggleOn ? CaseViewerComponent_1.NON_STANDARD_USER_ACCESS_TYPES.indexOf(this.userAccessType) === -1 : true;
|
|
16993
|
+
};
|
|
16994
|
+
// remove once Access management goes live
|
|
16995
|
+
CaseViewerComponent.prototype.setMockData = function (caseDetails) {
|
|
16996
|
+
var accessManagementBasicViewMock = this.appConfig.getAccessManagementBasicViewMock();
|
|
16997
|
+
if (accessManagementBasicViewMock.active && !caseDetails.basicFields) {
|
|
16998
|
+
var access_process_index = caseDetails.metadataFields.findIndex(function (metadataField) {
|
|
16999
|
+
return metadataField.id === CaseViewerComponent_1.METADATA_FIELD_ACCESS_PROCEES_ID;
|
|
17000
|
+
});
|
|
17001
|
+
if (access_process_index > -1) {
|
|
17002
|
+
caseDetails.metadataFields[access_process_index].value = accessManagementBasicViewMock.accessProcess;
|
|
17003
|
+
}
|
|
17004
|
+
else {
|
|
17005
|
+
var access_process = new domain_1.CaseField();
|
|
17006
|
+
access_process.id = CaseViewerComponent_1.METADATA_FIELD_ACCESS_PROCEES_ID;
|
|
17007
|
+
access_process.value = accessManagementBasicViewMock.accessProcess;
|
|
17008
|
+
access_process.field_type = {
|
|
17009
|
+
id: '',
|
|
17010
|
+
type: 'Text'
|
|
17011
|
+
};
|
|
17012
|
+
caseDetails.metadataFields.push(access_process);
|
|
17013
|
+
}
|
|
17014
|
+
caseDetails.basicFields = accessManagementBasicViewMock.basicFields;
|
|
17015
|
+
}
|
|
17016
|
+
};
|
|
17017
|
+
var CaseViewerComponent_1;
|
|
17018
|
+
CaseViewerComponent.METADATA_FIELD_ACCESS_PROCEES_ID = '[ACCESS_PROCESS]';
|
|
17019
|
+
CaseViewerComponent.NON_STANDARD_USER_ACCESS_TYPES = ['CHALLENGED', 'SPECIFIC'];
|
|
17020
|
+
__decorate([
|
|
17021
|
+
core_1.Input(),
|
|
17022
|
+
__metadata("design:type", Object)
|
|
17023
|
+
], CaseViewerComponent.prototype, "hasPrint", void 0);
|
|
17024
|
+
__decorate([
|
|
17025
|
+
core_1.Input(),
|
|
17026
|
+
__metadata("design:type", Object)
|
|
17027
|
+
], CaseViewerComponent.prototype, "hasEventSelector", void 0);
|
|
17028
|
+
__decorate([
|
|
17029
|
+
core_1.Input(),
|
|
17030
|
+
__metadata("design:type", Array)
|
|
17031
|
+
], CaseViewerComponent.prototype, "prependedTabs", void 0);
|
|
17032
|
+
__decorate([
|
|
17033
|
+
core_1.Input(),
|
|
17034
|
+
__metadata("design:type", domain_1.CaseView)
|
|
17035
|
+
], CaseViewerComponent.prototype, "caseDetails", void 0);
|
|
17036
|
+
CaseViewerComponent = CaseViewerComponent_1 = __decorate([
|
|
17037
|
+
core_1.Component({
|
|
17038
|
+
selector: 'ccd-case-viewer',
|
|
17039
|
+
template: __webpack_require__(67025)
|
|
17040
|
+
}),
|
|
17041
|
+
__metadata("design:paramtypes", [router_1.ActivatedRoute,
|
|
17042
|
+
case_editor_1.CaseNotifier,
|
|
17043
|
+
app_config_1.AbstractAppConfig])
|
|
16683
17044
|
], CaseViewerComponent);
|
|
16684
17045
|
return CaseViewerComponent;
|
|
16685
17046
|
}());
|
|
@@ -16700,30 +17061,33 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
16700
17061
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16701
17062
|
};
|
|
16702
17063
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
16703
|
-
var core_1 = __webpack_require__(57208);
|
|
16704
17064
|
var common_1 = __webpack_require__(91216);
|
|
16705
|
-
var
|
|
16706
|
-
var
|
|
17065
|
+
var core_1 = __webpack_require__(57208);
|
|
17066
|
+
var forms_1 = __webpack_require__(92985);
|
|
16707
17067
|
var material_1 = __webpack_require__(69451);
|
|
17068
|
+
var router_1 = __webpack_require__(92302);
|
|
17069
|
+
var alert_1 = __webpack_require__(44944);
|
|
17070
|
+
var tabs_1 = __webpack_require__(80624);
|
|
17071
|
+
var directives_1 = __webpack_require__(66395);
|
|
17072
|
+
var pipes_1 = __webpack_require__(32741);
|
|
16708
17073
|
var services_1 = __webpack_require__(65010);
|
|
16709
|
-
var errors_module_1 = __webpack_require__(61386);
|
|
16710
17074
|
var activity_1 = __webpack_require__(52703);
|
|
17075
|
+
var case_editor_1 = __webpack_require__(27070);
|
|
16711
17076
|
var case_header_1 = __webpack_require__(75150);
|
|
16712
17077
|
var case_history_1 = __webpack_require__(30542);
|
|
17078
|
+
var error_message_component_1 = __webpack_require__(67679);
|
|
17079
|
+
var errors_module_1 = __webpack_require__(61386);
|
|
16713
17080
|
var event_trigger_1 = __webpack_require__(7108);
|
|
16714
|
-
var tabs_1 = __webpack_require__(80624);
|
|
16715
17081
|
var palette_1 = __webpack_require__(22212);
|
|
16716
|
-
var
|
|
16717
|
-
var
|
|
17082
|
+
var case_basic_access_view_component_1 = __webpack_require__(42906);
|
|
17083
|
+
var case_challenged_access_request_component_1 = __webpack_require__(70776);
|
|
17084
|
+
var case_challenged_access_success_component_1 = __webpack_require__(41969);
|
|
16718
17085
|
var case_event_trigger_1 = __webpack_require__(92100);
|
|
16719
|
-
var
|
|
16720
|
-
var case_editor_1 = __webpack_require__(27070);
|
|
17086
|
+
var case_full_access_view_component_1 = __webpack_require__(76764);
|
|
16721
17087
|
var case_view_1 = __webpack_require__(65389);
|
|
16722
|
-
var
|
|
16723
|
-
var
|
|
16724
|
-
var
|
|
16725
|
-
var forms_1 = __webpack_require__(92985);
|
|
16726
|
-
var alert_1 = __webpack_require__(44944);
|
|
17088
|
+
var case_viewer_component_1 = __webpack_require__(89554);
|
|
17089
|
+
var printer_1 = __webpack_require__(65773);
|
|
17090
|
+
var services_2 = __webpack_require__(50137);
|
|
16727
17091
|
var CaseViewerModule = /** @class */ (function () {
|
|
16728
17092
|
function CaseViewerModule() {
|
|
16729
17093
|
}
|
|
@@ -16746,6 +17110,7 @@ var CaseViewerModule = /** @class */ (function () {
|
|
|
16746
17110
|
palette_1.EventLogModule,
|
|
16747
17111
|
material_1.MatTabsModule,
|
|
16748
17112
|
palette_1.ComplexModule,
|
|
17113
|
+
forms_1.FormsModule,
|
|
16749
17114
|
forms_1.ReactiveFormsModule,
|
|
16750
17115
|
alert_1.AlertModule
|
|
16751
17116
|
],
|
|
@@ -16753,10 +17118,13 @@ var CaseViewerModule = /** @class */ (function () {
|
|
|
16753
17118
|
case_event_trigger_1.CaseEventTriggerComponent,
|
|
16754
17119
|
printer_1.CasePrinterComponent,
|
|
16755
17120
|
case_viewer_component_1.CaseViewerComponent,
|
|
17121
|
+
case_basic_access_view_component_1.CaseBasicAccessViewComponent,
|
|
17122
|
+
case_full_access_view_component_1.CaseFullAccessViewComponent,
|
|
16756
17123
|
case_view_1.CaseViewComponent,
|
|
16757
17124
|
printer_1.PrintUrlPipe,
|
|
16758
17125
|
case_challenged_access_request_component_1.CaseChallengedAccessRequestComponent,
|
|
16759
|
-
error_message_component_1.ErrorMessageComponent
|
|
17126
|
+
error_message_component_1.ErrorMessageComponent,
|
|
17127
|
+
case_challenged_access_success_component_1.CaseChallengedAccessSuccessComponent
|
|
16760
17128
|
],
|
|
16761
17129
|
exports: [
|
|
16762
17130
|
case_viewer_component_1.CaseViewerComponent,
|
|
@@ -16796,11 +17164,14 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
16796
17164
|
__export(__webpack_require__(50137));
|
|
16797
17165
|
__export(__webpack_require__(92100));
|
|
16798
17166
|
__export(__webpack_require__(65389));
|
|
17167
|
+
__export(__webpack_require__(74891));
|
|
17168
|
+
__export(__webpack_require__(65341));
|
|
16799
17169
|
__export(__webpack_require__(65773));
|
|
16800
17170
|
__export(__webpack_require__(89554));
|
|
16801
17171
|
__export(__webpack_require__(45296));
|
|
16802
17172
|
__export(__webpack_require__(37355));
|
|
16803
17173
|
__export(__webpack_require__(38403));
|
|
17174
|
+
__export(__webpack_require__(26840));
|
|
16804
17175
|
|
|
16805
17176
|
|
|
16806
17177
|
/***/ }),
|
|
@@ -16853,7 +17224,9 @@ var CasePrinterComponent = /** @class */ (function () {
|
|
|
16853
17224
|
});
|
|
16854
17225
|
};
|
|
16855
17226
|
CasePrinterComponent.prototype.ngOnDestroy = function () {
|
|
16856
|
-
this.caseSubscription
|
|
17227
|
+
if (this.caseSubscription) {
|
|
17228
|
+
this.caseSubscription.unsubscribe();
|
|
17229
|
+
}
|
|
16857
17230
|
};
|
|
16858
17231
|
CasePrinterComponent.prototype.isDataLoaded = function () {
|
|
16859
17232
|
return this.caseDetails && this.documents ? true : false;
|
|
@@ -17196,13 +17569,14 @@ __export(__webpack_require__(69115));
|
|
|
17196
17569
|
"use strict";
|
|
17197
17570
|
|
|
17198
17571
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
17199
|
-
var printer_1 = __webpack_require__(65773);
|
|
17200
|
-
var services_1 = __webpack_require__(50137);
|
|
17201
|
-
var case_event_trigger_component_1 = __webpack_require__(83645);
|
|
17202
17572
|
var case_editor_1 = __webpack_require__(27070);
|
|
17203
17573
|
var case_history_1 = __webpack_require__(30542);
|
|
17204
17574
|
var file_upload_progress_guard_1 = __webpack_require__(27667);
|
|
17205
17575
|
var case_challenged_access_request_1 = __webpack_require__(38403);
|
|
17576
|
+
var case_challenged_access_success_1 = __webpack_require__(26840);
|
|
17577
|
+
var case_event_trigger_component_1 = __webpack_require__(83645);
|
|
17578
|
+
var printer_1 = __webpack_require__(65773);
|
|
17579
|
+
var services_1 = __webpack_require__(50137);
|
|
17206
17580
|
exports.viewerRouting = [
|
|
17207
17581
|
{
|
|
17208
17582
|
path: 'print',
|
|
@@ -17223,7 +17597,23 @@ exports.viewerRouting = [
|
|
|
17223
17597
|
},
|
|
17224
17598
|
{
|
|
17225
17599
|
path: 'access-request',
|
|
17226
|
-
|
|
17600
|
+
children: [
|
|
17601
|
+
{
|
|
17602
|
+
path: '',
|
|
17603
|
+
component: case_challenged_access_request_1.CaseChallengedAccessRequestComponent,
|
|
17604
|
+
data: {
|
|
17605
|
+
title: 'Request Challenged Access'
|
|
17606
|
+
},
|
|
17607
|
+
pathMatch: 'full'
|
|
17608
|
+
},
|
|
17609
|
+
{
|
|
17610
|
+
path: 'success',
|
|
17611
|
+
component: case_challenged_access_success_1.CaseChallengedAccessSuccessComponent,
|
|
17612
|
+
data: {
|
|
17613
|
+
title: 'Challenged Access Success'
|
|
17614
|
+
}
|
|
17615
|
+
}
|
|
17616
|
+
]
|
|
17227
17617
|
}
|
|
17228
17618
|
];
|
|
17229
17619
|
|
|
@@ -17901,7 +18291,9 @@ var CallbackErrorsComponent = /** @class */ (function () {
|
|
|
17901
18291
|
});
|
|
17902
18292
|
};
|
|
17903
18293
|
CallbackErrorsComponent.prototype.ngOnDestroy = function () {
|
|
17904
|
-
this.callbackErrorsSubject
|
|
18294
|
+
if (this.callbackErrorsSubject) {
|
|
18295
|
+
this.callbackErrorsSubject.unsubscribe();
|
|
18296
|
+
}
|
|
17905
18297
|
};
|
|
17906
18298
|
CallbackErrorsComponent.prototype.buildCallbackErrorsContext = function () {
|
|
17907
18299
|
var errorContext = new error_context_1.CallbackErrorsContext();
|
|
@@ -18186,6 +18578,45 @@ __export(__webpack_require__(53641));
|
|
|
18186
18578
|
__export(__webpack_require__(23741));
|
|
18187
18579
|
|
|
18188
18580
|
|
|
18581
|
+
/***/ }),
|
|
18582
|
+
|
|
18583
|
+
/***/ 23495:
|
|
18584
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
18585
|
+
|
|
18586
|
+
"use strict";
|
|
18587
|
+
|
|
18588
|
+
function __export(m) {
|
|
18589
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
18590
|
+
}
|
|
18591
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
18592
|
+
__export(__webpack_require__(90479));
|
|
18593
|
+
|
|
18594
|
+
|
|
18595
|
+
/***/ }),
|
|
18596
|
+
|
|
18597
|
+
/***/ 90479:
|
|
18598
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
18599
|
+
|
|
18600
|
+
"use strict";
|
|
18601
|
+
|
|
18602
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
18603
|
+
var material_1 = __webpack_require__(69451);
|
|
18604
|
+
function initDialog(dialogConfig) {
|
|
18605
|
+
this.dialogConfig = new material_1.MatDialogConfig();
|
|
18606
|
+
this.dialogConfig.disableClose = true;
|
|
18607
|
+
this.dialogConfig.autoFocus = true;
|
|
18608
|
+
this.dialogConfig.ariaLabel = 'Label';
|
|
18609
|
+
this.dialogConfig.height = '245px';
|
|
18610
|
+
this.dialogConfig.width = '550px';
|
|
18611
|
+
this.dialogConfig.panelClass = 'dialog';
|
|
18612
|
+
this.dialogConfig.closeOnNavigation = false;
|
|
18613
|
+
this.dialogConfig.position = {
|
|
18614
|
+
top: window.innerHeight / 2 - 120 + 'px', left: window.innerWidth / 2 - 275 + 'px'
|
|
18615
|
+
};
|
|
18616
|
+
}
|
|
18617
|
+
exports.initDialog = initDialog;
|
|
18618
|
+
|
|
18619
|
+
|
|
18189
18620
|
/***/ }),
|
|
18190
18621
|
|
|
18191
18622
|
/***/ 2401:
|
|
@@ -18975,7 +19406,12 @@ var AbstractFormFieldComponent = /** @class */ (function () {
|
|
|
18975
19406
|
};
|
|
18976
19407
|
AbstractFormFieldComponent.prototype.addControlToFormGroup = function (control, parent, replace) {
|
|
18977
19408
|
if (replace) {
|
|
18978
|
-
|
|
19409
|
+
if (this.caseField.field_type && this.caseField.field_type.id === 'CaseLink' && this.caseField.field_type.type === 'Complex' && /^-?\d+$/.test(this.caseField.id)) {
|
|
19410
|
+
parent.setControl('CaseReference', control['controls']['CaseReference']);
|
|
19411
|
+
}
|
|
19412
|
+
else {
|
|
19413
|
+
parent.setControl(this.caseField.id, control);
|
|
19414
|
+
}
|
|
18979
19415
|
}
|
|
18980
19416
|
else {
|
|
18981
19417
|
parent.addControl(this.caseField.id, control);
|
|
@@ -19767,7 +20203,7 @@ var WriteCollectionFieldComponent = /** @class */ (function (_super) {
|
|
|
19767
20203
|
});
|
|
19768
20204
|
};
|
|
19769
20205
|
WriteCollectionFieldComponent.prototype.ngOnDestroy = function () {
|
|
19770
|
-
if (
|
|
20206
|
+
if (this.profileSubscription) {
|
|
19771
20207
|
this.profileSubscription.unsubscribe();
|
|
19772
20208
|
}
|
|
19773
20209
|
};
|
|
@@ -21903,6 +22339,7 @@ var constants_1 = __webpack_require__(49071);
|
|
|
21903
22339
|
var document_management_service_1 = __webpack_require__(53265);
|
|
21904
22340
|
var case_notifier_1 = __webpack_require__(21190);
|
|
21905
22341
|
var document_dialog_component_1 = __webpack_require__(46139);
|
|
22342
|
+
var helpers_1 = __webpack_require__(23495);
|
|
21906
22343
|
var abstract_field_write_component_1 = __webpack_require__(47325);
|
|
21907
22344
|
var file_upload_state_service_1 = __webpack_require__(41139);
|
|
21908
22345
|
var WriteDocumentFieldComponent = /** @class */ (function (_super) {
|
|
@@ -21929,7 +22366,7 @@ var WriteDocumentFieldComponent = /** @class */ (function (_super) {
|
|
|
21929
22366
|
};
|
|
21930
22367
|
WriteDocumentFieldComponent.prototype.ngOnInit = function () {
|
|
21931
22368
|
this.secureModeOn = this.appConfig.getDocumentSecureMode();
|
|
21932
|
-
|
|
22369
|
+
helpers_1.initDialog(this.dialogConfig);
|
|
21933
22370
|
// EUI-3403. The field was not being registered when there was no value and the field
|
|
21934
22371
|
// itself was not mandatory, which meant that show_conditions would not be evaluated.
|
|
21935
22372
|
// I've cleaned up the logic and it's now always registered.
|
|
@@ -21998,10 +22435,7 @@ var WriteDocumentFieldComponent = /** @class */ (function (_super) {
|
|
|
21998
22435
|
this.displayFileUploadMessages(WriteDocumentFieldComponent_1.UPLOAD_WAITING_FILE_STATUS);
|
|
21999
22436
|
var documentUpload = this.buildDocumentUploadData(this.selectedFile);
|
|
22000
22437
|
this.fileUploadStateService.setUploadInProgress(true);
|
|
22001
|
-
|
|
22002
|
-
this.documentManagement.secureUploadFile(documentUpload) :
|
|
22003
|
-
this.documentManagement.uploadFile(documentUpload);
|
|
22004
|
-
this.fileUploadSubscription = uploadFile.subscribe({
|
|
22438
|
+
this.fileUploadSubscription = this.documentManagement.uploadFile(documentUpload).subscribe({
|
|
22005
22439
|
next: function (resultDocument) { return _this.handleDocumentUploadResult(resultDocument); },
|
|
22006
22440
|
error: function (error) { return _this.handleDocumentUploadError(error); }
|
|
22007
22441
|
});
|
|
@@ -22043,19 +22477,6 @@ var WriteDocumentFieldComponent = /** @class */ (function (_super) {
|
|
|
22043
22477
|
return undefined;
|
|
22044
22478
|
}
|
|
22045
22479
|
};
|
|
22046
|
-
WriteDocumentFieldComponent.prototype.initDialog = function () {
|
|
22047
|
-
this.dialogConfig = new material_1.MatDialogConfig();
|
|
22048
|
-
this.dialogConfig.disableClose = true;
|
|
22049
|
-
this.dialogConfig.autoFocus = true;
|
|
22050
|
-
this.dialogConfig.ariaLabel = 'Label';
|
|
22051
|
-
this.dialogConfig.height = '245px';
|
|
22052
|
-
this.dialogConfig.width = '550px';
|
|
22053
|
-
this.dialogConfig.panelClass = 'dialog';
|
|
22054
|
-
this.dialogConfig.closeOnNavigation = false;
|
|
22055
|
-
this.dialogConfig.position = {
|
|
22056
|
-
top: window.innerHeight / 2 - 120 + 'px', left: window.innerWidth / 2 - 275 + 'px'
|
|
22057
|
-
};
|
|
22058
|
-
};
|
|
22059
22480
|
WriteDocumentFieldComponent.prototype.subscribeToCaseDetails = function () {
|
|
22060
22481
|
var _this = this;
|
|
22061
22482
|
this.caseEventSubscription = this.caseNotifier.caseView.subscribe({
|
|
@@ -22100,7 +22521,7 @@ var WriteDocumentFieldComponent = /** @class */ (function (_super) {
|
|
|
22100
22521
|
document_binary_url: new forms_1.FormControl(document.document_binary_url, forms_1.Validators.required),
|
|
22101
22522
|
document_filename: new forms_1.FormControl(document.document_filename, forms_1.Validators.required)
|
|
22102
22523
|
};
|
|
22103
|
-
documentFormGroup = this.secureModeOn ? __assign({}, documentFormGroup, { document_hash: new forms_1.FormControl(document.document_hash
|
|
22524
|
+
documentFormGroup = this.secureModeOn ? __assign({}, documentFormGroup, { document_hash: new forms_1.FormControl(document.document_hash) }) : documentFormGroup;
|
|
22104
22525
|
this.uploadedDocument = this.registerControl(new forms_1.FormGroup(documentFormGroup), true);
|
|
22105
22526
|
};
|
|
22106
22527
|
WriteDocumentFieldComponent.prototype.createDocumentForm = function (document) {
|
|
@@ -26888,15 +27309,13 @@ var SearchFiltersComponent = /** @class */ (function () {
|
|
|
26888
27309
|
}
|
|
26889
27310
|
this.onJurisdictionIdChange();
|
|
26890
27311
|
}
|
|
26891
|
-
|
|
26892
|
-
|
|
26893
|
-
|
|
26894
|
-
|
|
26895
|
-
this.
|
|
26896
|
-
|
|
26897
|
-
|
|
26898
|
-
});
|
|
26899
|
-
}
|
|
27312
|
+
this.selected.formGroup = this.formGroup;
|
|
27313
|
+
this.selected.page = 1;
|
|
27314
|
+
this.selected.metadataFields = this.getMetadataFields();
|
|
27315
|
+
this.onApply.emit({
|
|
27316
|
+
selected: this.selected,
|
|
27317
|
+
queryParams: this.getQueryParams()
|
|
27318
|
+
});
|
|
26900
27319
|
};
|
|
26901
27320
|
SearchFiltersComponent.prototype.getQueryParams = function () {
|
|
26902
27321
|
// Save filters as query parameters for current route
|
|
@@ -31280,7 +31699,7 @@ var CcdCaseTitlePipe = /** @class */ (function () {
|
|
|
31280
31699
|
CcdCaseTitlePipe.prototype.transform = function (caseTitle, caseFields, values) {
|
|
31281
31700
|
var caseFieldValues = this.getReadOnlyAndFormFields(values, caseFields);
|
|
31282
31701
|
var result = this.placeholderService.resolvePlaceholders(caseFieldValues, caseTitle);
|
|
31283
|
-
return result
|
|
31702
|
+
return result;
|
|
31284
31703
|
};
|
|
31285
31704
|
CcdCaseTitlePipe.prototype.getReadOnlyAndFormFields = function (formGroup, caseFields) {
|
|
31286
31705
|
return this.fieldsUtils.mergeLabelCaseFieldsAndFormFields(caseFields, formGroup.getRawValue());
|
|
@@ -31631,22 +32050,35 @@ var ActivityService = /** @class */ (function () {
|
|
|
31631
32050
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
31632
32051
|
caseId[_i] = arguments[_i];
|
|
31633
32052
|
}
|
|
31634
|
-
|
|
31635
|
-
|
|
31636
|
-
|
|
31637
|
-
|
|
31638
|
-
|
|
32053
|
+
try {
|
|
32054
|
+
var options = this.getOptions();
|
|
32055
|
+
var url = this.activityUrl() + ("/cases/" + caseId.join(',') + "/activity");
|
|
32056
|
+
return this.http
|
|
32057
|
+
.get(url, options, false, ActivityService_1.handleHttpError)
|
|
32058
|
+
.map(function (response) { return response; });
|
|
32059
|
+
}
|
|
32060
|
+
catch (error) {
|
|
32061
|
+
console.log('user may not be authenticated.' + error);
|
|
32062
|
+
}
|
|
31639
32063
|
};
|
|
31640
32064
|
ActivityService.prototype.postActivity = function (caseId, activity) {
|
|
31641
|
-
|
|
31642
|
-
|
|
31643
|
-
|
|
31644
|
-
|
|
31645
|
-
.
|
|
31646
|
-
|
|
32065
|
+
try {
|
|
32066
|
+
var options = this.getOptions();
|
|
32067
|
+
var url = this.activityUrl() + ("/cases/" + caseId + "/activity");
|
|
32068
|
+
var body = { activity: activity };
|
|
32069
|
+
return this.http
|
|
32070
|
+
.post(url, body, options, false)
|
|
32071
|
+
.map(function (response) { return response; });
|
|
32072
|
+
}
|
|
32073
|
+
catch (error) {
|
|
32074
|
+
console.log('user may not be authenticated.' + error);
|
|
32075
|
+
}
|
|
31647
32076
|
};
|
|
31648
32077
|
ActivityService.prototype.verifyUserIsAuthorized = function () {
|
|
31649
32078
|
var _this = this;
|
|
32079
|
+
if (this.sessionStorageService.getItem('userDetails') === undefined) {
|
|
32080
|
+
return;
|
|
32081
|
+
}
|
|
31650
32082
|
if (this.activityUrl() && this.userAuthorised === undefined) {
|
|
31651
32083
|
this.getActivities(ActivityService_1.DUMMY_CASE_REFERENCE).subscribe(function () { return _this.userAuthorised = true; }, function (error) {
|
|
31652
32084
|
if ([401, 403].indexOf(error.status) > -1) {
|
|
@@ -32655,7 +33087,7 @@ var DocumentManagementService = /** @class */ (function () {
|
|
|
32655
33087
|
}
|
|
32656
33088
|
DocumentManagementService_1 = DocumentManagementService;
|
|
32657
33089
|
DocumentManagementService.prototype.uploadFile = function (formData) {
|
|
32658
|
-
var url = this.
|
|
33090
|
+
var url = this.getDocStoreUrl();
|
|
32659
33091
|
// Do not set any headers, such as "Accept" or "Content-Type", with null values; this is not permitted with the
|
|
32660
33092
|
// Angular HttpClient in @angular/common/http. Just create and pass a new HttpHeaders object. Angular will add the
|
|
32661
33093
|
// correct headers and values automatically
|
|
@@ -32665,14 +33097,6 @@ var DocumentManagementService = /** @class */ (function () {
|
|
|
32665
33097
|
.pipe(operators_1.delay(DocumentManagementService_1.RESPONSE_DELAY))
|
|
32666
33098
|
.pipe();
|
|
32667
33099
|
};
|
|
32668
|
-
DocumentManagementService.prototype.secureUploadFile = function (formData) {
|
|
32669
|
-
var url = this.appConfig.getDocumentManagementUrlV2();
|
|
32670
|
-
var headers = new http_2.HttpHeaders();
|
|
32671
|
-
return this.http
|
|
32672
|
-
.post(url, formData, { headers: headers, observe: 'body' })
|
|
32673
|
-
.pipe(operators_1.delay(DocumentManagementService_1.RESPONSE_DELAY))
|
|
32674
|
-
.pipe();
|
|
32675
|
-
};
|
|
32676
33100
|
DocumentManagementService.prototype.getMediaViewerInfo = function (documentFieldValue) {
|
|
32677
33101
|
var mediaViewerInfo = {
|
|
32678
33102
|
document_binary_url: this.transformDocumentUrl(documentFieldValue.document_binary_url),
|
|
@@ -32736,7 +33160,10 @@ var DocumentManagementService = /** @class */ (function () {
|
|
|
32736
33160
|
var remoteHrsPattern = new RegExp(this.appConfig.getRemoteHrsUrl());
|
|
32737
33161
|
documentBinaryUrl = documentBinaryUrl.replace(remoteHrsPattern, this.appConfig.getHrsUrl());
|
|
32738
33162
|
var remoteDocumentManagementPattern = new RegExp(this.appConfig.getRemoteDocumentManagementUrl());
|
|
32739
|
-
return documentBinaryUrl.replace(remoteDocumentManagementPattern, this.
|
|
33163
|
+
return documentBinaryUrl.replace(remoteDocumentManagementPattern, this.getDocStoreUrl());
|
|
33164
|
+
};
|
|
33165
|
+
DocumentManagementService.prototype.getDocStoreUrl = function () {
|
|
33166
|
+
return this.appConfig.getDocumentSecureMode() ? this.appConfig.getDocumentManagementUrlV2() : this.appConfig.getDocumentManagementUrl();
|
|
32740
33167
|
};
|
|
32741
33168
|
var DocumentManagementService_1;
|
|
32742
33169
|
DocumentManagementService.PDF = 'pdf';
|
|
@@ -36896,7 +37323,7 @@ exports.push([module.id, "", ""]);
|
|
|
36896
37323
|
|
|
36897
37324
|
/***/ }),
|
|
36898
37325
|
|
|
36899
|
-
/***/
|
|
37326
|
+
/***/ 50378:
|
|
36900
37327
|
/***/ ((module, exports, __webpack_require__) => {
|
|
36901
37328
|
|
|
36902
37329
|
exports = module.exports = __webpack_require__(9252)(false);
|
|
@@ -63012,7 +63439,7 @@ module.exports = "<div *ngIf=\"isDataLoaded()\">\n <ccd-case-edit [submit]=\"
|
|
|
63012
63439
|
/***/ 36604:
|
|
63013
63440
|
/***/ ((module) => {
|
|
63014
63441
|
|
|
63015
|
-
module.exports = "<!-- Current Page && Event trigger name -->\n<h1 class=\"heading-h1\">{{ eventTrigger.name}}</h1>\n\n<!--Case ID or Title -->\n<div *ngIf=\"getCaseTitle(); then titleBlock; else idBlock\"></div>\n<ng-template #titleBlock>\n <
|
|
63442
|
+
module.exports = "<!-- Current Page && Event trigger name -->\n<h1 class=\"heading-h1\">{{ eventTrigger.name}}</h1>\n\n<!--Case ID or Title -->\n<div *ngIf=\"getCaseTitle(); then titleBlock; else idBlock\"></div>\n<ng-template #titleBlock>\n <ccd-markdown [content]=\"getCaseTitle() | ccdCaseTitle: caseFields : editForm.controls['data']\"></ccd-markdown>\n</ng-template>\n<ng-template #idBlock>\n <h2 *ngIf=\"getCaseId()\" class=\"heading-h2\">#{{ getCaseId() | ccdCaseReference }}</h2>\n</ng-template>\n\n<form [formGroup]=\"formGroup\" (submit)=\"submit()\">\n <div id=\"confirmation-header\" *ngIf=\"confirmation.getHeader()\">\n <ccd-markdown [content]=\"confirmation.getHeader()\"></ccd-markdown>\n </div>\n <div id=\"confirmation-body\" *ngIf=\"confirmation.getBody()\">\n <ccd-markdown [content]=\"confirmation.getBody()\"></ccd-markdown>\n </div>\n <button type=\"submit\" class=\"button\" data-ng-click=\"submit()\">{{this.triggerText}}</button>\n</form>\n"
|
|
63016
63443
|
|
|
63017
63444
|
/***/ }),
|
|
63018
63445
|
|
|
@@ -63026,14 +63453,14 @@ module.exports = "<ng-container ccdConditionalShowForm [formGroup]=\"formGroup\"
|
|
|
63026
63453
|
/***/ 61865:
|
|
63027
63454
|
/***/ ((module) => {
|
|
63028
63455
|
|
|
63029
|
-
module.exports = "<ng-container *ngIf=\"currentPage\">\n <h1 *ngIf=\"!currentPage.label\" class=\"govuk-heading-l\">{{eventTrigger.name}}</h1>\n <ng-container *ngIf=\"currentPage.label\">\n <span class=\"govuk-caption-l\">{{ eventTrigger.name}}</span>\n <h1 class=\"govuk-heading-l\">{{currentPage.label}}</h1>\n </ng-container>\n</ng-container>\n\n<!--Case ID or Title -->\n<div *ngIf=\"getCaseTitle(); then titleBlock; else idBlock\"></div>\n<ng-template #titleBlock>\n <
|
|
63456
|
+
module.exports = "<ng-container *ngIf=\"currentPage\">\n <h1 *ngIf=\"!currentPage.label\" class=\"govuk-heading-l\">{{eventTrigger.name}}</h1>\n <ng-container *ngIf=\"currentPage.label\">\n <span class=\"govuk-caption-l\">{{ eventTrigger.name}}</span>\n <h1 class=\"govuk-heading-l\">{{currentPage.label}}</h1>\n </ng-container>\n</ng-container>\n\n<!--Case ID or Title -->\n<div *ngIf=\"getCaseTitle(); then titleBlock; else idBlock\"></div>\n<ng-template #titleBlock>\n <ccd-markdown [content]=\"getCaseTitle() | ccdCaseTitle: caseFields : editForm.controls['data']\"></ccd-markdown>\n</ng-template>\n<ng-template #idBlock>\n <h2 *ngIf=\"getCaseId()\" class=\"heading-h2\">#{{ getCaseId() | ccdCaseReference }}</h2>\n</ng-template>\n\n<!-- Error message summary -->\n<div *ngIf=\"validationErrors.length > 0\" class=\"govuk-error-summary\" aria-labelledby=\"error-summary-title\" role=\"alert\" tabindex=\"-1\" data-module=\"govuk-error-summary\">\n <h2 class=\"govuk-error-summary__title\" id=\"error-summary-title\">\n There is a problem\n </h2>\n <div *ngFor=\"let validationError of validationErrors\" class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li>\n <a (click)=\"navigateToErrorElement(validationError.id)\" class=\"validation-error\">{{validationError.message}}</a>\n </li>\n </ul>\n </div>\n</div>\n\n<!-- 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=\"status\" aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n\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<!-- Event error heading and error message to be displayed if there are specific error details -->\n<div *ngIf=\"error && error.details\" class=\"error-summary\" role=\"status\"\n aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h3 class=\"heading-h3 error-summary-heading\" id=\"edit-case-event_error-summary-heading-3\">\n The event could not be created\n </h3>\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\" class=\"ccd-error-summary-li\">{{fieldError.message}}</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<div class=\"width-50\">\n <form *ngIf=\"currentPage\" class=\"form\" [formGroup]=\"editForm\" (submit)=\"submit()\">\n <fieldset id=\"fieldset-case-data\">\n <!-- single column -->\n <ccd-case-edit-form id='caseEditForm' *ngIf=\"!currentPage.isMultiColumn()\" [fields]=\"currentPage.getCol1Fields()\"\n [formGroup]=\"editForm.controls['data']\" [caseFields]=\"caseFields\"\n [pageChangeSubject]=\"pageChangeSubject\"\n (valuesChanged)=\"applyValuesChanged($event)\"></ccd-case-edit-form>\n <!-- two columns -->\n <div *ngIf=\"currentPage.isMultiColumn()\" class=\"grid-row\">\n <div class=\"column-two-thirds rightBorderSeparator\">\n <ccd-case-edit-form id='caseEditForm1' [fields]=\"currentPage.getCol1Fields()\"\n [formGroup]=\"editForm.controls['data']\" [caseFields]=\"caseFields\"></ccd-case-edit-form>\n </div>\n <div class=\"column-one-third\">\n <ccd-case-edit-form id='caseEditForm2' [fields]=\"currentPage.getCol2Fields()\"\n [formGroup]=\"editForm.controls['data']\" [caseFields]=\"caseFields\"></ccd-case-edit-form>\n </div>\n </div>\n </fieldset>\n\n <div class=\"form-group form-group-related\">\n <button class=\"button button-secondary\" type=\"button\" [disabled]=\"!(hasPreviousPage$ | async)\" (click)=\"toPreviousPage()\">\n Previous\n </button>\n <button class=\"button\" type=\"submit\" [disabled]=\"submitting()\">{{triggerText}}</button>\n </div>\n\n <p class=\"cancel\"><a (click)=\"cancel()\" href=\"javascript:void(0)\">{{getCancelText()}}</a></p>\n\n </form>\n</div>\n"
|
|
63030
63457
|
|
|
63031
63458
|
/***/ }),
|
|
63032
63459
|
|
|
63033
63460
|
/***/ 81278:
|
|
63034
63461
|
/***/ ((module) => {
|
|
63035
63462
|
|
|
63036
|
-
module.exports = "<!-- Event trigger name -->\n<h1 class=\"govuk-heading-l\">{{ eventTrigger.name}}</h1>\n\n<!--Case ID or Title -->\n<div *ngIf=\"getCaseTitle(); then titleBlock; else idBlock\"></div>\n<ng-template #titleBlock>\n <
|
|
63463
|
+
module.exports = "<!-- Event trigger name -->\n<h1 class=\"govuk-heading-l\">{{ eventTrigger.name}}</h1>\n\n<!--Case ID or Title -->\n<div *ngIf=\"getCaseTitle(); then titleBlock; else idBlock\"></div>\n<ng-template #titleBlock>\n <ccd-markdown [content]=\"getCaseTitle() | ccdCaseTitle: contextFields : editForm.controls['data']\"></ccd-markdown>\n</ng-template>\n<ng-template #idBlock>\n <h2 *ngIf=\"getCaseId()\" class=\"heading-h2\">#{{ getCaseId() | ccdCaseReference }}</h2>\n</ng-template>\n\n<!-- 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) && !error.message)\" class=\"error-summary\" 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<!-- Event error heading and error message to be displayed if there are specific error details -->\n<div *ngIf=\"error && (error.details || error.message)\" class=\"error-summary\" role=\"group\" aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h3 class=\"heading-h3 error-summary-heading\" id=\"edit-case-event_error-summary-heading\">\n The event could not be created\n </h3>\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\" class=\"ccd-error-summary-li\">{{fieldError.message}}</li>\n </ul>\n</div>\n<ccd-callback-errors [callbackErrorsSubject]=\"callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\"></ccd-callback-errors>\n\n<form class=\"check-your-answers\" [formGroup]=\"editForm\" (submit)=\"submit()\">\n <ng-container *ngIf=\"checkYourAnswerFieldsToDisplayExists()\">\n\n <h2 class=\"heading-h2\">Check your answers</h2>\n <span class=\"text-16\">Check the information below carefully.</span>\n\n <table class=\"form-table\">\n <tbody>\n <ng-container *ngFor=\"let page of this.wizard.pages\">\n <ng-container *ngIf=\"isShown(page)\">\n <ng-container *ngFor=\"let field of page\n | ccdPageFields: editForm.controls['data']\n | ccdReadFieldsFilter: false :undefined :true : editForm.controls['data']\n | ccdCYAPageLabelFilter\">\n <ng-container *ngIf=\"canShowFieldInCYA(field)\">\n <tr ccdLabelSubstitutor [caseField]=\"field\" [hidden]=\"field.hidden\"\n [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <th *ngIf=\"!isLabel(field)\" class=\"valign-top case-field-label\"><span class=\"text-16\">{{field.label}}</span></th>\n <td class=\"form-cell case-field-content\" [attr.colspan]=\"isLabel(field) ? '2' : '1'\">\n <ccd-field-read\n [formGroup]=\"editForm.controls['data']\" [topLevelFormGroup]=\"editForm.controls['data']\"\n [caseField]=\"summaryCaseField(field)\" [context]=\"paletteContext\" [caseFields]=\"contextFields\"></ccd-field-read>\n </td>\n <td class=\"valign-top check-your-answers__change case-field-change\">\n <a *ngIf=\"isChangeAllowed(field)\" (click)=\"navigateToPage(page.id)\"\n href=\"javascript:void(0)\"><span class=\"text-16\">Change</span></a>\n </td>\n </tr>\n </ng-container>\n </ng-container>\n </ng-container>\n </ng-container>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"readOnlySummaryFieldsToDisplayExists()\">\n\n <table class=\"summary-fields\">\n <tbody>\n <ng-container *ngFor=\"let field of this.showSummaryFields\">\n <ng-container [ngSwitch]=\"!(field | ccdIsCompound)\">\n <tr *ngSwitchCase=\"true\" ccdLabelSubstitutor [caseField]=\"field\" [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <th>{{field.label}}</th>\n <td class=\"form-cell\">\n <ccd-field-read [formGroup]=\"editForm.controls['data']\" [caseField]=\"summaryCaseField(field)\"></ccd-field-read>\n </td>\n </tr>\n <tr *ngSwitchCase=\"false\" class=\"compound-field\" ccdLabelSubstitutor [caseField]=\"field\" [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <td colspan=\"2\">\n <ccd-field-read [formGroup]=\"editForm.controls['data']\" [caseField]=\"summaryCaseField(field)\" [caseFields]=\"contextFields\"></ccd-field-read>\n </td>\n </tr>\n </ng-container>\n </ng-container>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"showEventNotes()\">\n <fieldset id=\"fieldset-event\" formGroupName=\"event\" *ngIf=\"profile && !isSolicitor()\">\n <div class=\"form-group\">\n <label for=\"field-trigger-summary\" class=\"form-label\">\n Event summary (optional)\n <span class=\"form-hint\">A few words describing the purpose of the event.</span>\n </label>\n <input type=\"text\" id=\"field-trigger-summary\" class=\"form-control bottom-30 width-50\" formControlName=\"summary\" maxlength=\"1024\">\n </div>\n <div class=\"form-group\">\n <label for=\"field-trigger-description\" class=\"form-label\">Event description (optional)</label>\n <textarea id=\"field-trigger-description\" class=\"form-control bottom-30 width-50\" formControlName=\"description\"\n maxlength=\"65536\"></textarea>\n </div>\n </fieldset>\n </ng-container>\n <div class=\"form-group form-group-related\">\n <button class=\"button button-secondary\" type=\"button\" [disabled]=\"!hasPrevious() || isSubmitting\" (click)=\"previous()\">Previous</button>\n <button type=\"submit\" [disabled]=\"isDisabled\" class=\"button\">{{triggerText}}</button>\n </div>\n <p class=\"cancel\"><a (click)=\"cancel()\" href=\"javascript:void(0)\" [class.disabled]=\"isSubmitting\">{{getCancelText()}}</a></p>\n</form>\n"
|
|
63037
63464
|
|
|
63038
63465
|
/***/ }),
|
|
63039
63466
|
|
|
@@ -63086,6 +63513,13 @@ module.exports = "<div *ngIf=\"isDataLoaded()\">\n <ng-container [ngSwitch]=\
|
|
|
63086
63513
|
|
|
63087
63514
|
/***/ }),
|
|
63088
63515
|
|
|
63516
|
+
/***/ 80734:
|
|
63517
|
+
/***/ ((module) => {
|
|
63518
|
+
|
|
63519
|
+
module.exports = "<form>\n <div>\n <cut-alert type=\"information\">This case requires {{accessType | lowercase}} access.<br />\n <ng-container *ngIf=\"accessType === 'CHALLENGED'\">This is because the case is outside your work area. If you request access to the case, it will be logged for auditing purposes.</ng-container>\n <ng-container *ngIf=\"accessType === 'SPECIFIC'\">This means it's outside your jurisdiction and requires authorisation. If you request access to the case, it will be logged for auditing purposes.</ng-container>\n </cut-alert>\n <h1 class=\"heading-h1\">#{{ caseDetails.case_id | ccdCaseReference}}</h1>\n <h2 class=\"govuk-heading-m\">Case details</h2>\n <dl class=\"govuk-summary-list\">\n <div class=\"govuk-summary-list__row\" *ngIf=\"caseDetails.basicFields?.caseNameHmctsInternal\">\n <dt class=\"govuk-summary-list__key summary-key\">Case name</dt>\n <dd class=\"govuk-summary-list__value\">{{caseDetails.basicFields.caseNameHmctsInternal}}</dd>\n </div>\n <div class=\"govuk-summary-list__row\" *ngIf=\"caseDetails.case_type?.jurisdiction?.name\">\n <dt class=\"govuk-summary-list__key summary-key\">Service</dt>\n <dd class=\"govuk-summary-list__value\">{{caseDetails.case_type.jurisdiction.name}}</dd>\n </div>\n <div class=\"govuk-summary-list__row\" *ngIf=\"caseDetails.state?.description\">\n <dt class=\"govuk-summary-list__key summary-key\">State</dt>\n <dd class=\"govuk-summary-list__value\">{{caseDetails.state.description}}</dd>\n </div>\n <div class=\"govuk-summary-list__row\" *ngIf=\"courtOrHearingCentre\">\n <dt class=\"govuk-summary-list__key summary-key\">Court or hearing centre</dt>\n <dd class=\"govuk-summary-list__value\">{{courtOrHearingCentre | titlecase}}</dd>\n </div>\n\n <div class=\"govuk-summary-list__row\" *ngIf=\"accessType\">\n <dt class=\"govuk-summary-list__key summary-key\">Access</dt>\n <dd class=\"govuk-summary-list__value\">{{accessType | titlecase}}</dd>\n </div>\n </dl>\n </div>\n\n <button class=\"govuk-button govuk-!-margin-right-3\">Request access</button>\n</form>\n<a class=\"govuk-body\" (click)=\"onCancel()\" href=\"javascript:void(0)\">Cancel</a>\n"
|
|
63520
|
+
|
|
63521
|
+
/***/ }),
|
|
63522
|
+
|
|
63089
63523
|
/***/ 17607:
|
|
63090
63524
|
/***/ ((module) => {
|
|
63091
63525
|
|
|
@@ -63093,6 +63527,13 @@ module.exports = "<exui-error-message *ngIf=\"formGroup.invalid && submitted\" [
|
|
|
63093
63527
|
|
|
63094
63528
|
/***/ }),
|
|
63095
63529
|
|
|
63530
|
+
/***/ 96603:
|
|
63531
|
+
/***/ ((module) => {
|
|
63532
|
+
|
|
63533
|
+
module.exports = "<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 Access successful<br><br>\n <div class=\"govuk-panel__body\">\n Case reference:<br>\n {{caseId}}\n </div>\n </h1>\n </div>\n <h2 class=\"govuk-heading-m \">What happens next</h2>\n <p class=\"govuk-body\">\n You can access this case file until midnight tonight.\n </p>\n <p class=\"govuk-body\">\n You'll need to request access again once this expires.\n </p>\n <p class=\"govuk-body\">\n Your request will be logged for auditing purposes.\n </p>\n <p class=\"govuk-body\"><a href=\"cases/case-details/{{caseId}}\">View case file</a>.</p>\n </div>\n </div>\n</div>\n"
|
|
63534
|
+
|
|
63535
|
+
/***/ }),
|
|
63536
|
+
|
|
63096
63537
|
/***/ 13949:
|
|
63097
63538
|
/***/ ((module) => {
|
|
63098
63539
|
|
|
@@ -63100,6 +63541,13 @@ module.exports = "<div *ngIf=\"isDataLoaded()\" class=\"screen-990\">\n <ccd-ac
|
|
|
63100
63541
|
|
|
63101
63542
|
/***/ }),
|
|
63102
63543
|
|
|
63544
|
+
/***/ 99839:
|
|
63545
|
+
/***/ ((module) => {
|
|
63546
|
+
|
|
63547
|
+
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>"
|
|
63548
|
+
|
|
63549
|
+
/***/ }),
|
|
63550
|
+
|
|
63103
63551
|
/***/ 24288:
|
|
63104
63552
|
/***/ ((module) => {
|
|
63105
63553
|
|
|
@@ -63110,7 +63558,7 @@ module.exports = "<div *ngIf=\"isDataLoaded()\">\n <ccd-case-viewer [hasPrint
|
|
|
63110
63558
|
/***/ 67025:
|
|
63111
63559
|
/***/ ((module) => {
|
|
63112
63560
|
|
|
63113
|
-
module.exports = "<div *ngIf=\"isDataLoaded()\">\n
|
|
63561
|
+
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"
|
|
63114
63562
|
|
|
63115
63563
|
/***/ }),
|
|
63116
63564
|
|
|
@@ -63809,11 +64257,11 @@ function getStrategyDelay(consecutiveErrorsCount, options) {
|
|
|
63809
64257
|
|
|
63810
64258
|
/***/ }),
|
|
63811
64259
|
|
|
63812
|
-
/***/
|
|
64260
|
+
/***/ 73262:
|
|
63813
64261
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
63814
64262
|
|
|
63815
64263
|
|
|
63816
|
-
var result = __webpack_require__(
|
|
64264
|
+
var result = __webpack_require__(50378);
|
|
63817
64265
|
|
|
63818
64266
|
if (typeof result === "string") {
|
|
63819
64267
|
module.exports = result;
|