@hmcts/ccd-case-ui-toolkit 4.14.0-rc.5 → 4.15.0-hearing
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 +6 -0
- package/dist/index.umd.js +59 -6
- 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-editor/services/case-edit-wizard.guard.js +1 -1
- package/dist/shared/components/case-editor/services/case-edit-wizard.guard.js.map +1 -1
- package/dist/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +3 -2
- package/dist/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js.map +1 -1
- package/dist/shared/components/case-viewer/case-viewer.component.js.map +1 -1
- package/dist/shared/components/event-start/event-guard/event-start.guard.d.ts +2 -0
- package/dist/shared/components/event-start/event-guard/event-start.guard.js +37 -1
- 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 +4 -1
- package/dist/shared/components/markdown/markdown.component.js +17 -1
- 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/RELEASE-NOTES.md
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
## RELEASE NOTES
|
|
2
2
|
|
|
3
|
+
### Version 4.15.0-hearings
|
|
4
|
+
**EUI-5912** Hearing tab is not loading
|
|
5
|
+
|
|
3
6
|
### Version 4.14.1-EUI-5305-change-link-accessibility-update
|
|
4
7
|
**EUI-5305** Accessibility improvement for 'Change' links
|
|
5
8
|
|
|
6
9
|
### Version 4.12.0
|
|
7
10
|
Add refunds functionality
|
|
8
11
|
|
|
12
|
+
### Version 4.13.8-event-start-task-not-required"
|
|
13
|
+
**EUI-5569** Task not required for event functionality
|
|
14
|
+
|
|
9
15
|
### Version 4.12.16-task-event-completion"
|
|
10
16
|
**Task event completion and state machine** Task event completion and state machine
|
|
11
17
|
|
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.15.0-hearing
|
|
4
4
|
* @link undefined
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -21351,7 +21351,7 @@ var CaseEditWizardGuard = /** @class */ (function () {
|
|
|
21351
21351
|
return this.router.navigate(this.parentUrlSegments(route).concat([firstPage ? firstPage.id : 'submit']), { queryParams: route.queryParams });
|
|
21352
21352
|
};
|
|
21353
21353
|
CaseEditWizardGuard.prototype.goToSubmit = function (route) {
|
|
21354
|
-
return this.router.navigate(this.parentUrlSegments(route).concat(['submit']));
|
|
21354
|
+
return this.router.navigate(this.parentUrlSegments(route).concat(['submit']), { queryParams: route.queryParams });
|
|
21355
21355
|
};
|
|
21356
21356
|
CaseEditWizardGuard.prototype.buildState = function (caseFields) {
|
|
21357
21357
|
var state = {};
|
|
@@ -24065,9 +24065,10 @@ var CaseFullAccessViewComponent = /** @class */ (function () {
|
|
|
24065
24065
|
CaseFullAccessViewComponent.prototype.tabChanged = function (tabChangeEvent) {
|
|
24066
24066
|
var tab = tabChangeEvent.tab['_viewContainerRef'];
|
|
24067
24067
|
var id = tab.element.nativeElement.id;
|
|
24068
|
-
|
|
24068
|
+
// due to some edge case like hidden tab we can't calculate the last index of existing tabs,
|
|
24069
|
+
// so have to hard code the hearings id here
|
|
24069
24070
|
if ((tabChangeEvent.index <= 1 && this.prependedTabs.length) ||
|
|
24070
|
-
(
|
|
24071
|
+
(this.appendedTabs.length && id === 'hearings')) {
|
|
24071
24072
|
this.router.navigate([id], { relativeTo: this.route });
|
|
24072
24073
|
}
|
|
24073
24074
|
else {
|
|
@@ -26639,7 +26640,43 @@ var EventStartGuard = /** @class */ (function () {
|
|
|
26639
26640
|
this.router.navigate(["/cases/case-details/" + caseId + "/event-start"], { queryParams: { caseId: caseId, eventId: eventId, taskId: taskId } });
|
|
26640
26641
|
return rxjs_1.of(false);
|
|
26641
26642
|
}
|
|
26642
|
-
|
|
26643
|
+
else {
|
|
26644
|
+
return rxjs_1.of(this.checkTaskInEventNotRequired(payload, caseId, taskId));
|
|
26645
|
+
}
|
|
26646
|
+
};
|
|
26647
|
+
EventStartGuard.prototype.checkTaskInEventNotRequired = function (payload, caseId, taskId) {
|
|
26648
|
+
var taskNumber = payload.tasks.length;
|
|
26649
|
+
if (taskNumber === 0) {
|
|
26650
|
+
// if there are no tasks just carry on
|
|
26651
|
+
return true;
|
|
26652
|
+
}
|
|
26653
|
+
// Get number of tasks assigned to user
|
|
26654
|
+
var userInfoStr = this.sessionStorageService.getItem('userDetails');
|
|
26655
|
+
var userInfo = JSON.parse(userInfoStr);
|
|
26656
|
+
var tasksAssignedToUser = payload.tasks.filter(function (x) {
|
|
26657
|
+
return x.task_state !== 'unassigned' && x.assignee === userInfo.id || x.assignee === userInfo.uid;
|
|
26658
|
+
});
|
|
26659
|
+
if (tasksAssignedToUser.length === 0) {
|
|
26660
|
+
// if no tasks assigned to user carry on
|
|
26661
|
+
return true;
|
|
26662
|
+
}
|
|
26663
|
+
else if (tasksAssignedToUser.length > 1 && !taskId) {
|
|
26664
|
+
// if more than one task assigned to the user then give multiple tasks error
|
|
26665
|
+
this.router.navigate(["/cases/case-details/" + caseId + "/multiple-tasks-exist"]);
|
|
26666
|
+
return false;
|
|
26667
|
+
}
|
|
26668
|
+
else {
|
|
26669
|
+
var task = void 0;
|
|
26670
|
+
if (taskId) {
|
|
26671
|
+
task = payload.tasks.find(function (x) { return x.id === taskId; });
|
|
26672
|
+
}
|
|
26673
|
+
else {
|
|
26674
|
+
task = tasksAssignedToUser[0];
|
|
26675
|
+
}
|
|
26676
|
+
// if one task assigned to user, allow user to complete event
|
|
26677
|
+
this.sessionStorageService.setItem('taskToComplete', JSON.stringify(task));
|
|
26678
|
+
return true;
|
|
26679
|
+
}
|
|
26643
26680
|
};
|
|
26644
26681
|
EventStartGuard = __decorate([
|
|
26645
26682
|
core_1.Injectable(),
|
|
@@ -27373,14 +27410,30 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
27373
27410
|
var core_1 = __webpack_require__(57208);
|
|
27374
27411
|
var MarkdownComponent = /** @class */ (function () {
|
|
27375
27412
|
function MarkdownComponent() {
|
|
27413
|
+
this.useHrefAsRouterLink = null;
|
|
27414
|
+
this.clicked = new core_1.EventEmitter();
|
|
27376
27415
|
}
|
|
27377
27416
|
MarkdownComponent.prototype.ngOnInit = function () {
|
|
27378
27417
|
this.content = this.content.replace(/ \n/g, '<br>');
|
|
27379
27418
|
};
|
|
27419
|
+
MarkdownComponent.prototype.onMarkdownClick = function () {
|
|
27420
|
+
if (this.useHrefAsRouterLink === 'true') {
|
|
27421
|
+
this.clicked.emit(this.content);
|
|
27422
|
+
return false;
|
|
27423
|
+
}
|
|
27424
|
+
};
|
|
27380
27425
|
__decorate([
|
|
27381
27426
|
core_1.Input(),
|
|
27382
27427
|
__metadata("design:type", String)
|
|
27383
27428
|
], MarkdownComponent.prototype, "content", void 0);
|
|
27429
|
+
__decorate([
|
|
27430
|
+
core_1.Input(),
|
|
27431
|
+
__metadata("design:type", String)
|
|
27432
|
+
], MarkdownComponent.prototype, "useHrefAsRouterLink", void 0);
|
|
27433
|
+
__decorate([
|
|
27434
|
+
core_1.Output(),
|
|
27435
|
+
__metadata("design:type", core_1.EventEmitter)
|
|
27436
|
+
], MarkdownComponent.prototype, "clicked", void 0);
|
|
27384
27437
|
MarkdownComponent = __decorate([
|
|
27385
27438
|
core_1.Component({
|
|
27386
27439
|
selector: 'ccd-markdown',
|
|
@@ -89827,7 +89880,7 @@ module.exports = "<div class=\"spinner-container\">\n <div class=\"spinner-in
|
|
|
89827
89880
|
/***/ 6961:
|
|
89828
89881
|
/***/ ((module) => {
|
|
89829
89882
|
|
|
89830
|
-
module.exports = "<div><markdown class=\"markdown\" [innerHTML]=\"content | ccdCaseReference\"></markdown></div>"
|
|
89883
|
+
module.exports = "<div><markdown class=\"markdown\" [innerHTML]=\"content | ccdCaseReference\" (click)=\"onMarkdownClick()\"></markdown></div>"
|
|
89831
89884
|
|
|
89832
89885
|
/***/ }),
|
|
89833
89886
|
|