@hmcts/ccd-case-ui-toolkit 4.13.8-event-start-markdown-correct-branch → 4.13.8-remove-specific-access-code
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 +0 -3
- package/dist/index.umd.js +4 -347
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.LICENSE.txt +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/dist/shared/components/case-viewer/case-viewer.module.js +1 -5
- package/dist/shared/components/case-viewer/case-viewer.module.js.map +1 -1
- package/dist/shared/components/case-viewer/case-viewer.module.metadata.json +1 -1
- package/dist/shared/components/case-viewer/viewer.routing.js +0 -22
- 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/event-start/event-guard/event-start.guard.d.ts +0 -2
- package/dist/shared/components/event-start/event-guard/event-start.guard.js +1 -37
- package/dist/shared/components/event-start/event-guard/event-start.guard.js.map +1 -1
- package/dist/shared/components/event-start/event-guard/event-start.guard.metadata.json +1 -1
- package/dist/shared/components/markdown/markdown.component.d.ts +1 -4
- package/dist/shared/components/markdown/markdown.component.js +1 -17
- package/dist/shared/components/markdown/markdown.component.js.map +1 -1
- package/dist/shared/components/markdown/markdown.component.metadata.json +1 -1
- package/dist/shared/domain/work-allocation/Task.d.ts +19 -19
- package/package.json +1 -1
- package/dist/cut-styles/shared/components/case-viewer/case-review-specific-access-request/case-review-specific-access-request.component.scss +0 -3
- package/dist/shared/components/case-viewer/case-review-specific-access-reject/case-review-specific-access-reject.component.d.ts +0 -10
- package/dist/shared/components/case-viewer/case-review-specific-access-reject/case-review-specific-access-reject.component.js +0 -33
- package/dist/shared/components/case-viewer/case-review-specific-access-reject/case-review-specific-access-reject.component.js.map +0 -1
- package/dist/shared/components/case-viewer/case-review-specific-access-reject/case-review-specific-access-reject.component.metadata.json +0 -1
- package/dist/shared/components/case-viewer/case-review-specific-access-reject/index.d.ts +0 -1
- package/dist/shared/components/case-viewer/case-review-specific-access-reject/index.js +0 -7
- package/dist/shared/components/case-viewer/case-review-specific-access-reject/index.js.map +0 -1
- package/dist/shared/components/case-viewer/case-review-specific-access-reject/index.metadata.json +0 -1
- package/dist/shared/components/case-viewer/case-review-specific-access-request/case-review-specific-access-request.component.d.ts +0 -45
- package/dist/shared/components/case-viewer/case-review-specific-access-request/case-review-specific-access-request.component.js +0 -105
- package/dist/shared/components/case-viewer/case-review-specific-access-request/case-review-specific-access-request.component.js.map +0 -1
- package/dist/shared/components/case-viewer/case-review-specific-access-request/case-review-specific-access-request.component.metadata.json +0 -1
- package/dist/shared/components/case-viewer/case-review-specific-access-request/index.d.ts +0 -1
- package/dist/shared/components/case-viewer/case-review-specific-access-request/index.js +0 -7
- package/dist/shared/components/case-viewer/case-review-specific-access-request/index.js.map +0 -1
- package/dist/shared/components/case-viewer/case-review-specific-access-request/index.metadata.json +0 -1
- package/dist/shared/components/case-viewer/case-review-specific-access-request/models/case-review-specific-access-request.enum.d.ts +0 -14
- package/dist/shared/components/case-viewer/case-review-specific-access-request/models/case-review-specific-access-request.enum.js +0 -20
- package/dist/shared/components/case-viewer/case-review-specific-access-request/models/case-review-specific-access-request.enum.js.map +0 -1
- package/dist/shared/components/case-viewer/case-review-specific-access-request/models/case-review-specific-access-request.enum.metadata.json +0 -1
- package/dist/shared/components/case-viewer/case-review-specific-access-request/models/index.d.ts +0 -1
- package/dist/shared/components/case-viewer/case-review-specific-access-request/models/index.js +0 -7
- package/dist/shared/components/case-viewer/case-review-specific-access-request/models/index.js.map +0 -1
- package/dist/shared/components/case-viewer/case-review-specific-access-request/models/index.metadata.json +0 -1
package/RELEASE-NOTES.md
CHANGED
|
@@ -6,9 +6,6 @@
|
|
|
6
6
|
### Version 4.12.0
|
|
7
7
|
Add refunds functionality
|
|
8
8
|
|
|
9
|
-
### Version 4.13.8-event-start-task-not-required"
|
|
10
|
-
**EUI-5569** Task not required for event functionality
|
|
11
|
-
|
|
12
9
|
### Version 4.12.16-task-event-completion"
|
|
13
10
|
**Task event completion and state machine** Task event completion and state machine
|
|
14
11
|
|
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.13.8-
|
|
3
|
+
* @version v4.13.8-remove-specific-access-code
|
|
4
4
|
* @link undefined
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -24197,227 +24197,6 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
24197
24197
|
__export(__webpack_require__(76764));
|
|
24198
24198
|
|
|
24199
24199
|
|
|
24200
|
-
/***/ }),
|
|
24201
|
-
|
|
24202
|
-
/***/ 12231:
|
|
24203
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
24204
|
-
|
|
24205
|
-
"use strict";
|
|
24206
|
-
|
|
24207
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
24208
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
24209
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
24210
|
-
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;
|
|
24211
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24212
|
-
};
|
|
24213
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
24214
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
24215
|
-
};
|
|
24216
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
24217
|
-
var core_1 = __webpack_require__(57208);
|
|
24218
|
-
var router_1 = __webpack_require__(92302);
|
|
24219
|
-
var CaseReviewSpecificAccessRejectComponent = /** @class */ (function () {
|
|
24220
|
-
function CaseReviewSpecificAccessRejectComponent(route) {
|
|
24221
|
-
this.route = route;
|
|
24222
|
-
this.retunToTask = 'Return to the Tasks tab for this case';
|
|
24223
|
-
this.returnToMyTask = 'Return to My tasks';
|
|
24224
|
-
}
|
|
24225
|
-
CaseReviewSpecificAccessRejectComponent.prototype.ngOnInit = function () {
|
|
24226
|
-
this.caseId = this.route.snapshot.data.case.case_id;
|
|
24227
|
-
};
|
|
24228
|
-
CaseReviewSpecificAccessRejectComponent = __decorate([
|
|
24229
|
-
core_1.Component({
|
|
24230
|
-
selector: 'case-review-specific-access-reject',
|
|
24231
|
-
template: __webpack_require__(24959)
|
|
24232
|
-
}),
|
|
24233
|
-
__metadata("design:paramtypes", [router_1.ActivatedRoute])
|
|
24234
|
-
], CaseReviewSpecificAccessRejectComponent);
|
|
24235
|
-
return CaseReviewSpecificAccessRejectComponent;
|
|
24236
|
-
}());
|
|
24237
|
-
exports.CaseReviewSpecificAccessRejectComponent = CaseReviewSpecificAccessRejectComponent;
|
|
24238
|
-
|
|
24239
|
-
|
|
24240
|
-
/***/ }),
|
|
24241
|
-
|
|
24242
|
-
/***/ 84766:
|
|
24243
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
24244
|
-
|
|
24245
|
-
"use strict";
|
|
24246
|
-
|
|
24247
|
-
function __export(m) {
|
|
24248
|
-
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
24249
|
-
}
|
|
24250
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
24251
|
-
__export(__webpack_require__(12231));
|
|
24252
|
-
|
|
24253
|
-
|
|
24254
|
-
/***/ }),
|
|
24255
|
-
|
|
24256
|
-
/***/ 24212:
|
|
24257
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
24258
|
-
|
|
24259
|
-
"use strict";
|
|
24260
|
-
|
|
24261
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
24262
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
24263
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
24264
|
-
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;
|
|
24265
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24266
|
-
};
|
|
24267
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
24268
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
24269
|
-
};
|
|
24270
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
24271
|
-
var core_1 = __webpack_require__(57208);
|
|
24272
|
-
var forms_1 = __webpack_require__(92985);
|
|
24273
|
-
var router_1 = __webpack_require__(92302);
|
|
24274
|
-
var models_1 = __webpack_require__(46909);
|
|
24275
|
-
var app_config_1 = __webpack_require__(35185);
|
|
24276
|
-
var CaseReviewSpecificAccessRequestComponent = /** @class */ (function () {
|
|
24277
|
-
function CaseReviewSpecificAccessRequestComponent(fb, route, router, appConfig) {
|
|
24278
|
-
this.fb = fb;
|
|
24279
|
-
this.route = route;
|
|
24280
|
-
this.router = router;
|
|
24281
|
-
this.appConfig = appConfig;
|
|
24282
|
-
this.collapsed = false;
|
|
24283
|
-
this.submitted = false;
|
|
24284
|
-
this.genericError = 'There is a problem';
|
|
24285
|
-
this.radioSelectedControlName = 'radioSelected';
|
|
24286
|
-
this.accessReasons = [
|
|
24287
|
-
{ reason: models_1.AccessReason.APPROVE_REQUEST, checked: false },
|
|
24288
|
-
{ reason: models_1.AccessReason.REJECT_REQUEST, checked: false },
|
|
24289
|
-
{ reason: models_1.AccessReason.REQUEST_MORE_INFORMATION, checked: false },
|
|
24290
|
-
];
|
|
24291
|
-
}
|
|
24292
|
-
CaseReviewSpecificAccessRequestComponent.prototype.ngOnInit = function () {
|
|
24293
|
-
// TODO: this ticket is blocked so mocked with those data to go through, they will be removed and implimented with actual data
|
|
24294
|
-
// when dependency resolved
|
|
24295
|
-
this.setMockData();
|
|
24296
|
-
this.title = models_1.ReviewSpecificAccessRequestPageText.TITLE;
|
|
24297
|
-
this.hint = models_1.ReviewSpecificAccessRequestPageText.HINT;
|
|
24298
|
-
this.caseRefLabel = models_1.ReviewSpecificAccessRequestPageText.CASE_REF;
|
|
24299
|
-
this.formGroup = this.fb.group({
|
|
24300
|
-
radioSelected: new forms_1.FormControl(null, forms_1.Validators.required),
|
|
24301
|
-
});
|
|
24302
|
-
};
|
|
24303
|
-
CaseReviewSpecificAccessRequestComponent.prototype.ngOnDestroy = function () {
|
|
24304
|
-
if (this.caseSubscription) {
|
|
24305
|
-
this.caseSubscription.unsubscribe();
|
|
24306
|
-
}
|
|
24307
|
-
};
|
|
24308
|
-
CaseReviewSpecificAccessRequestComponent.prototype.onChange = function () {
|
|
24309
|
-
this.submitted = false;
|
|
24310
|
-
};
|
|
24311
|
-
CaseReviewSpecificAccessRequestComponent.prototype.onSubmit = function () {
|
|
24312
|
-
this.submitted = true;
|
|
24313
|
-
if (this.formGroup.get(this.radioSelectedControlName).invalid) {
|
|
24314
|
-
this.errorMessage = {
|
|
24315
|
-
title: this.genericError,
|
|
24316
|
-
description: models_1.ReviewSpecificAccessRequestErrors.NO_SELECTION,
|
|
24317
|
-
};
|
|
24318
|
-
}
|
|
24319
|
-
// Initiate Review Access Request
|
|
24320
|
-
if (this.formGroup.valid) {
|
|
24321
|
-
// Get the Case Reference (for which access is being requested) from the ActivatedRouteSnapshot data
|
|
24322
|
-
var caseId = this.route.snapshot.data.case.case_id;
|
|
24323
|
-
var radioSelectedValue = this.formGroup.get(this.radioSelectedControlName).value;
|
|
24324
|
-
// Get the index of the selected AccessReason enum value. Can't use Object.values because it's not available in
|
|
24325
|
-
// < ES2017!
|
|
24326
|
-
var reasonNumber = Object.keys(models_1.AccessReason)
|
|
24327
|
-
.map(function (e) { return models_1.AccessReason[e]; })
|
|
24328
|
-
.indexOf(radioSelectedValue);
|
|
24329
|
-
// request model created , it will be used for submission part
|
|
24330
|
-
var challengedAccessRequest = {
|
|
24331
|
-
reason: reasonNumber,
|
|
24332
|
-
caseId: caseId,
|
|
24333
|
-
};
|
|
24334
|
-
if (models_1.AccessReason.REJECT_REQUEST === radioSelectedValue) {
|
|
24335
|
-
this.router.navigate(['rejected'], { relativeTo: this.route });
|
|
24336
|
-
}
|
|
24337
|
-
}
|
|
24338
|
-
};
|
|
24339
|
-
CaseReviewSpecificAccessRequestComponent.prototype.onCancel = function () {
|
|
24340
|
-
// Navigate to the page before previous one (should be Search Results or Case List page, for example)
|
|
24341
|
-
window.history.go(-1);
|
|
24342
|
-
};
|
|
24343
|
-
// remove once Access management goes live
|
|
24344
|
-
CaseReviewSpecificAccessRequestComponent.prototype.setMockData = function () {
|
|
24345
|
-
var requestAccessDetailsMock = this.appConfig.getAccessManagementRequestReviewMockModel();
|
|
24346
|
-
if (requestAccessDetailsMock.active) {
|
|
24347
|
-
this.requestAccessDetails = requestAccessDetailsMock.details;
|
|
24348
|
-
}
|
|
24349
|
-
};
|
|
24350
|
-
CaseReviewSpecificAccessRequestComponent = __decorate([
|
|
24351
|
-
core_1.Component({
|
|
24352
|
-
selector: 'ccd-case-review-specific-access-request',
|
|
24353
|
-
template: __webpack_require__(42467),
|
|
24354
|
-
styles: [__webpack_require__(76883)]
|
|
24355
|
-
}),
|
|
24356
|
-
__metadata("design:paramtypes", [forms_1.FormBuilder,
|
|
24357
|
-
router_1.ActivatedRoute,
|
|
24358
|
-
router_1.Router,
|
|
24359
|
-
app_config_1.AbstractAppConfig])
|
|
24360
|
-
], CaseReviewSpecificAccessRequestComponent);
|
|
24361
|
-
return CaseReviewSpecificAccessRequestComponent;
|
|
24362
|
-
}());
|
|
24363
|
-
exports.CaseReviewSpecificAccessRequestComponent = CaseReviewSpecificAccessRequestComponent;
|
|
24364
|
-
|
|
24365
|
-
|
|
24366
|
-
/***/ }),
|
|
24367
|
-
|
|
24368
|
-
/***/ 83444:
|
|
24369
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
24370
|
-
|
|
24371
|
-
"use strict";
|
|
24372
|
-
|
|
24373
|
-
function __export(m) {
|
|
24374
|
-
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
24375
|
-
}
|
|
24376
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
24377
|
-
__export(__webpack_require__(24212));
|
|
24378
|
-
|
|
24379
|
-
|
|
24380
|
-
/***/ }),
|
|
24381
|
-
|
|
24382
|
-
/***/ 16206:
|
|
24383
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
24384
|
-
|
|
24385
|
-
"use strict";
|
|
24386
|
-
|
|
24387
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
24388
|
-
var AccessReason;
|
|
24389
|
-
(function (AccessReason) {
|
|
24390
|
-
AccessReason["APPROVE_REQUEST"] = "Approve request";
|
|
24391
|
-
AccessReason["REJECT_REQUEST"] = "Reject request";
|
|
24392
|
-
AccessReason["REQUEST_MORE_INFORMATION"] = "Request more information";
|
|
24393
|
-
})(AccessReason = exports.AccessReason || (exports.AccessReason = {}));
|
|
24394
|
-
var ReviewSpecificAccessRequestPageText;
|
|
24395
|
-
(function (ReviewSpecificAccessRequestPageText) {
|
|
24396
|
-
ReviewSpecificAccessRequestPageText["TITLE"] = "Review specific access request";
|
|
24397
|
-
ReviewSpecificAccessRequestPageText["HINT"] = "What do you want to do with this request?";
|
|
24398
|
-
ReviewSpecificAccessRequestPageText["CASE_REF"] = "Case reference";
|
|
24399
|
-
})(ReviewSpecificAccessRequestPageText = exports.ReviewSpecificAccessRequestPageText || (exports.ReviewSpecificAccessRequestPageText = {}));
|
|
24400
|
-
var ReviewSpecificAccessRequestErrors;
|
|
24401
|
-
(function (ReviewSpecificAccessRequestErrors) {
|
|
24402
|
-
ReviewSpecificAccessRequestErrors["NO_SELECTION"] = "Select an option";
|
|
24403
|
-
ReviewSpecificAccessRequestErrors["GENERIC_ERROR"] = "There is a problem";
|
|
24404
|
-
})(ReviewSpecificAccessRequestErrors = exports.ReviewSpecificAccessRequestErrors || (exports.ReviewSpecificAccessRequestErrors = {}));
|
|
24405
|
-
|
|
24406
|
-
|
|
24407
|
-
/***/ }),
|
|
24408
|
-
|
|
24409
|
-
/***/ 46909:
|
|
24410
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
24411
|
-
|
|
24412
|
-
"use strict";
|
|
24413
|
-
|
|
24414
|
-
function __export(m) {
|
|
24415
|
-
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
24416
|
-
}
|
|
24417
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
24418
|
-
__export(__webpack_require__(16206));
|
|
24419
|
-
|
|
24420
|
-
|
|
24421
24200
|
/***/ }),
|
|
24422
24201
|
|
|
24423
24202
|
/***/ 38692:
|
|
@@ -24874,8 +24653,6 @@ var case_challenged_access_request_component_1 = __webpack_require__(70776);
|
|
|
24874
24653
|
var case_challenged_access_success_component_1 = __webpack_require__(41969);
|
|
24875
24654
|
var case_event_trigger_1 = __webpack_require__(92100);
|
|
24876
24655
|
var case_full_access_view_component_1 = __webpack_require__(76764);
|
|
24877
|
-
var case_review_specific_access_reject_1 = __webpack_require__(84766);
|
|
24878
|
-
var case_review_specific_access_request_component_1 = __webpack_require__(24212);
|
|
24879
24656
|
var case_specific_access_request_component_1 = __webpack_require__(38692);
|
|
24880
24657
|
var case_view_1 = __webpack_require__(65389);
|
|
24881
24658
|
var case_viewer_component_1 = __webpack_require__(89554);
|
|
@@ -24917,10 +24694,8 @@ var CaseViewerModule = /** @class */ (function () {
|
|
|
24917
24694
|
printer_1.PrintUrlPipe,
|
|
24918
24695
|
case_challenged_access_request_component_1.CaseChallengedAccessRequestComponent,
|
|
24919
24696
|
case_specific_access_request_component_1.CaseSpecificAccessRequestComponent,
|
|
24920
|
-
case_review_specific_access_request_component_1.CaseReviewSpecificAccessRequestComponent,
|
|
24921
24697
|
error_message_component_1.ErrorMessageComponent,
|
|
24922
|
-
case_challenged_access_success_component_1.CaseChallengedAccessSuccessComponent
|
|
24923
|
-
case_review_specific_access_reject_1.CaseReviewSpecificAccessRejectComponent
|
|
24698
|
+
case_challenged_access_success_component_1.CaseChallengedAccessSuccessComponent
|
|
24924
24699
|
],
|
|
24925
24700
|
exports: [
|
|
24926
24701
|
case_viewer_component_1.CaseViewerComponent,
|
|
@@ -25374,8 +25149,6 @@ var file_upload_progress_guard_1 = __webpack_require__(27667);
|
|
|
25374
25149
|
var case_challenged_access_request_1 = __webpack_require__(38403);
|
|
25375
25150
|
var case_challenged_access_success_1 = __webpack_require__(26840);
|
|
25376
25151
|
var case_event_trigger_1 = __webpack_require__(92100);
|
|
25377
|
-
var case_review_specific_access_reject_1 = __webpack_require__(84766);
|
|
25378
|
-
var case_review_specific_access_request_1 = __webpack_require__(83444);
|
|
25379
25152
|
var case_specific_access_request_1 = __webpack_require__(73343);
|
|
25380
25153
|
var printer_1 = __webpack_require__(65773);
|
|
25381
25154
|
var services_1 = __webpack_require__(50137);
|
|
@@ -25462,26 +25235,6 @@ exports.viewerRouting = [
|
|
|
25462
25235
|
},
|
|
25463
25236
|
],
|
|
25464
25237
|
},
|
|
25465
|
-
{
|
|
25466
|
-
path: 'review-specific-access-request',
|
|
25467
|
-
children: [
|
|
25468
|
-
{
|
|
25469
|
-
path: '',
|
|
25470
|
-
component: case_review_specific_access_request_1.CaseReviewSpecificAccessRequestComponent,
|
|
25471
|
-
data: {
|
|
25472
|
-
title: 'Request Specific Access',
|
|
25473
|
-
},
|
|
25474
|
-
pathMatch: 'full',
|
|
25475
|
-
},
|
|
25476
|
-
{
|
|
25477
|
-
path: 'rejected',
|
|
25478
|
-
component: case_review_specific_access_reject_1.CaseReviewSpecificAccessRejectComponent,
|
|
25479
|
-
data: {
|
|
25480
|
-
title: 'Review Access Rejected'
|
|
25481
|
-
}
|
|
25482
|
-
}
|
|
25483
|
-
],
|
|
25484
|
-
},
|
|
25485
25238
|
];
|
|
25486
25239
|
|
|
25487
25240
|
|
|
@@ -26641,43 +26394,7 @@ var EventStartGuard = /** @class */ (function () {
|
|
|
26641
26394
|
this.router.navigate(["/cases/case-details/" + caseId + "/event-start"], { queryParams: { caseId: caseId, eventId: eventId, taskId: taskId } });
|
|
26642
26395
|
return rxjs_1.of(false);
|
|
26643
26396
|
}
|
|
26644
|
-
|
|
26645
|
-
return rxjs_1.of(this.checkTaskInEventNotRequired(payload, caseId, taskId));
|
|
26646
|
-
}
|
|
26647
|
-
};
|
|
26648
|
-
EventStartGuard.prototype.checkTaskInEventNotRequired = function (payload, caseId, taskId) {
|
|
26649
|
-
var taskNumber = payload.tasks.length;
|
|
26650
|
-
if (taskNumber === 0) {
|
|
26651
|
-
// if there are no tasks just carry on
|
|
26652
|
-
return true;
|
|
26653
|
-
}
|
|
26654
|
-
// Get number of tasks assigned to user
|
|
26655
|
-
var userInfoStr = this.sessionStorageService.getItem('userDetails');
|
|
26656
|
-
var userInfo = JSON.parse(userInfoStr);
|
|
26657
|
-
var tasksAssignedToUser = payload.tasks.filter(function (x) {
|
|
26658
|
-
return x.task_state !== 'unassigned' && x.assignee === userInfo.id || x.assignee === userInfo.uid;
|
|
26659
|
-
});
|
|
26660
|
-
if (tasksAssignedToUser.length === 0) {
|
|
26661
|
-
// if no tasks assigned to user carry on
|
|
26662
|
-
return true;
|
|
26663
|
-
}
|
|
26664
|
-
else if (tasksAssignedToUser.length > 1 && !taskId) {
|
|
26665
|
-
// if more than one task assigned to the user then give multiple tasks error
|
|
26666
|
-
this.router.navigate(["/cases/case-details/" + caseId + "/multiple-tasks-exist"]);
|
|
26667
|
-
return false;
|
|
26668
|
-
}
|
|
26669
|
-
else {
|
|
26670
|
-
var task = void 0;
|
|
26671
|
-
if (taskId) {
|
|
26672
|
-
task = payload.tasks.find(function (x) { return x.id === taskId; });
|
|
26673
|
-
}
|
|
26674
|
-
else {
|
|
26675
|
-
task = tasksAssignedToUser[0];
|
|
26676
|
-
}
|
|
26677
|
-
// if one task assigned to user, allow user to complete event
|
|
26678
|
-
this.sessionStorageService.setItem('taskToComplete', JSON.stringify(task));
|
|
26679
|
-
return true;
|
|
26680
|
-
}
|
|
26397
|
+
return rxjs_1.of(true);
|
|
26681
26398
|
};
|
|
26682
26399
|
EventStartGuard = __decorate([
|
|
26683
26400
|
core_1.Injectable(),
|
|
@@ -27411,30 +27128,14 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
27411
27128
|
var core_1 = __webpack_require__(57208);
|
|
27412
27129
|
var MarkdownComponent = /** @class */ (function () {
|
|
27413
27130
|
function MarkdownComponent() {
|
|
27414
|
-
this.useHrefAsRouterLink = null;
|
|
27415
|
-
this.clicked = new core_1.EventEmitter();
|
|
27416
27131
|
}
|
|
27417
27132
|
MarkdownComponent.prototype.ngOnInit = function () {
|
|
27418
27133
|
this.content = this.content.replace(/ \n/g, '<br>');
|
|
27419
27134
|
};
|
|
27420
|
-
MarkdownComponent.prototype.onMarkdownClick = function () {
|
|
27421
|
-
if (this.useHrefAsRouterLink === 'true') {
|
|
27422
|
-
this.clicked.emit(this.content);
|
|
27423
|
-
return false;
|
|
27424
|
-
}
|
|
27425
|
-
};
|
|
27426
27135
|
__decorate([
|
|
27427
27136
|
core_1.Input(),
|
|
27428
27137
|
__metadata("design:type", String)
|
|
27429
27138
|
], MarkdownComponent.prototype, "content", void 0);
|
|
27430
|
-
__decorate([
|
|
27431
|
-
core_1.Input(),
|
|
27432
|
-
__metadata("design:type", String)
|
|
27433
|
-
], MarkdownComponent.prototype, "useHrefAsRouterLink", void 0);
|
|
27434
|
-
__decorate([
|
|
27435
|
-
core_1.Output(),
|
|
27436
|
-
__metadata("design:type", core_1.EventEmitter)
|
|
27437
|
-
], MarkdownComponent.prototype, "clicked", void 0);
|
|
27438
27139
|
MarkdownComponent = __decorate([
|
|
27439
27140
|
core_1.Component({
|
|
27440
27141
|
selector: 'ccd-markdown',
|
|
@@ -46410,21 +46111,6 @@ exports.push([module.id, "th{width:1%;white-space:nowrap;vertical-align:top}.com
|
|
|
46410
46111
|
// exports
|
|
46411
46112
|
|
|
46412
46113
|
|
|
46413
|
-
/***/ }),
|
|
46414
|
-
|
|
46415
|
-
/***/ 14342:
|
|
46416
|
-
/***/ ((module, exports, __webpack_require__) => {
|
|
46417
|
-
|
|
46418
|
-
exports = module.exports = __webpack_require__(9252)(false);
|
|
46419
|
-
// imports
|
|
46420
|
-
|
|
46421
|
-
|
|
46422
|
-
// module
|
|
46423
|
-
exports.push([module.id, ".left-label{width:220px}\n", ""]);
|
|
46424
|
-
|
|
46425
|
-
// exports
|
|
46426
|
-
|
|
46427
|
-
|
|
46428
46114
|
/***/ }),
|
|
46429
46115
|
|
|
46430
46116
|
/***/ 10082:
|
|
@@ -89882,20 +89568,6 @@ module.exports = "<!-- Generic error heading and error message to be displayed o
|
|
|
89882
89568
|
|
|
89883
89569
|
/***/ }),
|
|
89884
89570
|
|
|
89885
|
-
/***/ 24959:
|
|
89886
|
-
/***/ ((module) => {
|
|
89887
|
-
|
|
89888
|
-
module.exports = "<p></p>\n<div class=\"govuk-width-container\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">\n Request for access denied<br>\n </h1>\n </div>\n <h2 class=\"govuk-heading-m \">What happens next</h2>\n <p class=\"govuk-body\">\n The requester has been denied access to this case.\n </p>\n </div>\n </div>\n <div class=\"form-group form-group-related\">\n <p ><a button class=\"govuk-button govuk-!-margin-right-3\" href=\"tasks/list\" >{{returnToMyTask}}</a></p>\n </div>\n <p class=\"cancel\"><a href=\"cases/case-details/{{caseId}}\" >{{retunToTask}}</a></p>\n</div>"
|
|
89889
|
-
|
|
89890
|
-
/***/ }),
|
|
89891
|
-
|
|
89892
|
-
/***/ 42467:
|
|
89893
|
-
/***/ ((module) => {
|
|
89894
|
-
|
|
89895
|
-
module.exports = "<exui-error-message\n *ngIf=\"formGroup.invalid && submitted\"\n [error]=\"errorMessage\">\n</exui-error-message>\n\n<form [formGroup]=\"formGroup\" (submit)=\"onSubmit()\">\n <div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"reason-hint\">\n <div class=\"govuk-grid-column-two-thirds\" >\n <p></p>\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h1 class=\"govuk-fieldset__heading\">\n {{ title }}\n </h1>\n </legend>\n <p></p>\n <table class=\"govuk-table\">\n <caption></caption>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header leftLabel\" >\n Case name\n </th>\n <td class=\"govuk-table__cell\">{{ requestAccessDetails.caseName }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header leftLabel\" >\n Case reference\n </th>\n <td class=\"govuk-table__cell\">{{ requestAccessDetails.caseReference }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header leftLabel\" >\n Date submitted\n </th>\n <td class=\"govuk-table__cell\">{{ requestAccessDetails.dateSubmitted }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header leftLabel\" >\n Request from\n </th>\n <td class=\"govuk-table__cell\">{{ requestAccessDetails.requestFrom }}<br /></td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header leftLabel\" >\n Reason for case access\n </th>\n <td class=\"govuk-table__cell\">{{ requestAccessDetails.reasonForCaseAccess }}</td>\n </tr>\n </tbody>\n </table>\n\n <div\n class=\"govuk-form-group\"\n [ngClass]=\"{ 'form-group-error': formGroup.invalid && submitted }\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\">\n <h1 class=\"govuk-fieldset__heading\">\n {{ hint }}\n </h1>\n </legend>\n <div\n id=\"error-message\"\n class=\"govuk-error-message\"\n *ngIf=\"formGroup.get('radioSelected').invalid && submitted\">\n {{ errorMessage.description }}\n </div>\n <div class=\"govuk-radios__item\">\n <input\n class=\"govuk-radios__input\"\n id=\"reason-0\"\n name=\"radioSelected\"\n type=\"radio\"\n [value]=\"accessReasons[0].reason\"\n formControlName=\"radioSelected\"\n [checked]=\"accessReasons[0].checked\"\n (change)=\"onChange()\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"reason-0\">\n {{ accessReasons[0].reason }}\n </label>\n </div>\n <div class=\"govuk-radios__item\">\n <input\n class=\"govuk-radios__input\"\n id=\"reason-1\"\n name=\"radioSelected\"\n type=\"radio\"\n [value]=\"accessReasons[1].reason\"\n formControlName=\"radioSelected\"\n [checked]=\"accessReasons[1].checked\"\n (change)=\"onChange()\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"reason-1\">\n {{ accessReasons[1].reason }}\n </label>\n </div>\n <div class=\"govuk-radios__item\">\n <input\n class=\"govuk-radios__input\"\n id=\"reason-2\"\n name=\"radioSelected\"\n type=\"radio\"\n [value]=\"accessReasons[2].reason\"\n formControlName=\"radioSelected\"\n [checked]=\"accessReasons[2].checked\"\n (change)=\"onChange()\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"reason-2\">\n {{ accessReasons[2].reason }}\n </label>\n </div>\n </fieldset>\n </div>\n </div>\n </fieldset>\n </div>\n\n <div class=\"govuk-button-group\">\n <button class=\"govuk-button govuk-!-margin-right-3\" type=\"submit\">\n Continue\n </button>\n <div class=\"govuk-grid-column-full govuk-!-padding-left-0\">\n <p>\n <a class=\"govuk-body\" (click)=\"onCancel()\" href=\"javascript:void(0)\">\n Cancel\n </a>\n </p>\n </div>\n </div>\n</form>\n"
|
|
89896
|
-
|
|
89897
|
-
/***/ }),
|
|
89898
|
-
|
|
89899
89571
|
/***/ 5856:
|
|
89900
89572
|
/***/ ((module) => {
|
|
89901
89573
|
|
|
@@ -90039,7 +89711,7 @@ module.exports = "<div class=\"spinner-container\">\n <div class=\"spinner-in
|
|
|
90039
89711
|
/***/ 6961:
|
|
90040
89712
|
/***/ ((module) => {
|
|
90041
89713
|
|
|
90042
|
-
module.exports = "<div><markdown class=\"markdown\" [innerHTML]=\"content | ccdCaseReference\"
|
|
89714
|
+
module.exports = "<div><markdown class=\"markdown\" [innerHTML]=\"content | ccdCaseReference\"></markdown></div>"
|
|
90043
89715
|
|
|
90044
89716
|
/***/ }),
|
|
90045
89717
|
|
|
@@ -90688,21 +90360,6 @@ function getStrategyDelay(consecutiveErrorsCount, options) {
|
|
|
90688
90360
|
}
|
|
90689
90361
|
|
|
90690
90362
|
|
|
90691
|
-
/***/ }),
|
|
90692
|
-
|
|
90693
|
-
/***/ 76883:
|
|
90694
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
90695
|
-
|
|
90696
|
-
|
|
90697
|
-
var result = __webpack_require__(14342);
|
|
90698
|
-
|
|
90699
|
-
if (typeof result === "string") {
|
|
90700
|
-
module.exports = result;
|
|
90701
|
-
} else {
|
|
90702
|
-
module.exports = result.toString();
|
|
90703
|
-
}
|
|
90704
|
-
|
|
90705
|
-
|
|
90706
90363
|
/***/ }),
|
|
90707
90364
|
|
|
90708
90365
|
/***/ 99018:
|