@hmcts/ccd-case-ui-toolkit 4.19.4 → 4.19.5
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 +3 -2
- package/dist/index.umd.js +22 -36
- 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-full-access-view/case-full-access-view.component.d.ts +4 -7
- package/dist/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +20 -33
- 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-full-access-view/case-full-access-view.component.metadata.json +1 -1
- package/dist/shared/components/case-viewer/case-viewer.component.js.map +1 -1
- package/dist/shared/components/palette/base-field/field-write.component.js +1 -2
- package/dist/shared/components/palette/base-field/field-write.component.js.map +1 -1
- package/package.json +1 -1
package/RELEASE-NOTES.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
## RELEASE NOTES
|
|
2
2
|
|
|
3
|
+
### Version 4.19.3-hearings
|
|
4
|
+
**EUI-5912** Hearing tab is not loading
|
|
5
|
+
|
|
3
6
|
### Version 4.12.1-EUI-5682-complex-table-collection-1
|
|
4
7
|
**EUI-5682** Bug fix for the complex collection table view
|
|
5
8
|
|
|
@@ -15,7 +18,6 @@
|
|
|
15
18
|
### Version 4.17.6-EUI-5736-unassigned-cases-pagination
|
|
16
19
|
**EUI-5736** unassigned cases pagination
|
|
17
20
|
|
|
18
|
-
|
|
19
21
|
### Version 4.14.1-EUI-5305-change-link-accessibility-update
|
|
20
22
|
**EUI-5305** Accessibility improvement for 'Change' links
|
|
21
23
|
|
|
@@ -36,7 +38,6 @@ Add refunds functionality
|
|
|
36
38
|
### Version 4.13.8-event-start-task-not-required"
|
|
37
39
|
**EUI-5569** Task not required for event functionality
|
|
38
40
|
|
|
39
|
-
|
|
40
41
|
### Version 4.12.16-task-event-completion"
|
|
41
42
|
**Task event completion and state machine** Task event completion and state machine
|
|
42
43
|
|
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.19.
|
|
3
|
+
* @version v4.19.5
|
|
4
4
|
* @link undefined
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -23987,7 +23987,7 @@ var services_1 = __webpack_require__(65010);
|
|
|
23987
23987
|
var helpers_1 = __webpack_require__(23495);
|
|
23988
23988
|
var services_2 = __webpack_require__(25961);
|
|
23989
23989
|
var CaseFullAccessViewComponent = /** @class */ (function () {
|
|
23990
|
-
function CaseFullAccessViewComponent(ngZone, route, router, navigationNotifierService, orderService, activityPollingService, dialog, alertService, draftService, errorNotifierService, convertHrefToRouterService, location
|
|
23990
|
+
function CaseFullAccessViewComponent(ngZone, route, router, navigationNotifierService, orderService, activityPollingService, dialog, alertService, draftService, errorNotifierService, convertHrefToRouterService, location) {
|
|
23991
23991
|
this.ngZone = ngZone;
|
|
23992
23992
|
this.route = route;
|
|
23993
23993
|
this.router = router;
|
|
@@ -24000,7 +24000,6 @@ var CaseFullAccessViewComponent = /** @class */ (function () {
|
|
|
24000
24000
|
this.errorNotifierService = errorNotifierService;
|
|
24001
24001
|
this.convertHrefToRouterService = convertHrefToRouterService;
|
|
24002
24002
|
this.location = location;
|
|
24003
|
-
this.crf = crf;
|
|
24004
24003
|
this.hasPrint = true;
|
|
24005
24004
|
this.hasEventSelector = true;
|
|
24006
24005
|
this.prependedTabs = [];
|
|
@@ -24013,13 +24012,6 @@ var CaseFullAccessViewComponent = /** @class */ (function () {
|
|
|
24013
24012
|
this.callbackErrorsSubject = new Subject_1.Subject();
|
|
24014
24013
|
}
|
|
24015
24014
|
CaseFullAccessViewComponent_1 = CaseFullAccessViewComponent;
|
|
24016
|
-
CaseFullAccessViewComponent.prototype.ngOnChanges = function (changes) {
|
|
24017
|
-
if (!changes.prependedTabs.firstChange) {
|
|
24018
|
-
this.init();
|
|
24019
|
-
this.crf.detectChanges();
|
|
24020
|
-
this.organiseTabPosition();
|
|
24021
|
-
}
|
|
24022
|
-
};
|
|
24023
24015
|
CaseFullAccessViewComponent.prototype.ngOnInit = function () {
|
|
24024
24016
|
var _this = this;
|
|
24025
24017
|
helpers_1.initDialog(this.dialogConfig);
|
|
@@ -24045,19 +24037,20 @@ var CaseFullAccessViewComponent = /** @class */ (function () {
|
|
|
24045
24037
|
return this.caseDetails.case_type.printEnabled;
|
|
24046
24038
|
};
|
|
24047
24039
|
CaseFullAccessViewComponent.prototype.ngOnDestroy = function () {
|
|
24048
|
-
if (this.activityPollingService.isEnabled) {
|
|
24049
|
-
this.unsubscribe(
|
|
24040
|
+
if (this.activitySubscription && this.activityPollingService.isEnabled) {
|
|
24041
|
+
this.activitySubscription.unsubscribe();
|
|
24050
24042
|
}
|
|
24051
|
-
if (
|
|
24052
|
-
this.unsubscribe(
|
|
24043
|
+
if (this.callbackErrorsSubject) {
|
|
24044
|
+
this.callbackErrorsSubject.unsubscribe();
|
|
24053
24045
|
}
|
|
24054
|
-
this.
|
|
24055
|
-
|
|
24056
|
-
|
|
24057
|
-
|
|
24058
|
-
|
|
24059
|
-
|
|
24060
|
-
|
|
24046
|
+
if (!this.route.snapshot.data.case && this.caseSubscription) {
|
|
24047
|
+
this.caseSubscription.unsubscribe();
|
|
24048
|
+
}
|
|
24049
|
+
if (this.errorSubscription) {
|
|
24050
|
+
this.errorSubscription.unsubscribe();
|
|
24051
|
+
}
|
|
24052
|
+
if (this.subscription) {
|
|
24053
|
+
this.subscription.unsubscribe();
|
|
24061
24054
|
}
|
|
24062
24055
|
};
|
|
24063
24056
|
CaseFullAccessViewComponent.prototype.postViewActivity = function () {
|
|
@@ -24128,19 +24121,16 @@ var CaseFullAccessViewComponent = /** @class */ (function () {
|
|
|
24128
24121
|
&& this.error.details.field_errors
|
|
24129
24122
|
&& this.error.details.field_errors.length);
|
|
24130
24123
|
};
|
|
24131
|
-
CaseFullAccessViewComponent.prototype.
|
|
24124
|
+
CaseFullAccessViewComponent.prototype.ngAfterViewInit = function () {
|
|
24132
24125
|
var _this = this;
|
|
24133
24126
|
var matTab;
|
|
24134
24127
|
var url = this.location.path(true);
|
|
24135
24128
|
var hashValue = url.substring(url.indexOf('#') + 1);
|
|
24136
|
-
if (!url.includes('#')
|
|
24129
|
+
if (!url.includes('#')) {
|
|
24137
24130
|
var paths = url.split('/');
|
|
24138
24131
|
// lastPath can be /caseId, or the tabs /tasks, /hearings etc.
|
|
24139
24132
|
var lastPath_1 = decodeURIComponent(paths[paths.length - 1]);
|
|
24140
24133
|
var foundTab_1 = null;
|
|
24141
|
-
if (!this.prependedTabs) {
|
|
24142
|
-
this.prependedTabs = [];
|
|
24143
|
-
}
|
|
24144
24134
|
var additionalTabs = this.prependedTabs.concat(this.appendedTabs);
|
|
24145
24135
|
if (additionalTabs && additionalTabs.length) {
|
|
24146
24136
|
foundTab_1 = additionalTabs.find(function (caseTab) { return caseTab.id.toLowerCase() === lastPath_1.toLowerCase(); });
|
|
@@ -24158,7 +24148,7 @@ var CaseFullAccessViewComponent = /** @class */ (function () {
|
|
|
24158
24148
|
this.caseDetails.tabs.sort(function (aTab, bTab) { return aTab.order > bTab.order ? 1 : (bTab.order > aTab.order ? -1 : 0); });
|
|
24159
24149
|
// preselect the 1st order of CCD predefined tabs
|
|
24160
24150
|
var preSelectTab_1 = this.caseDetails.tabs[0];
|
|
24161
|
-
this.router.navigate(['cases', 'case-details', this.caseDetails.case_id]
|
|
24151
|
+
this.router.navigate(['cases', 'case-details', this.caseDetails.case_id]).then(function () {
|
|
24162
24152
|
matTab = _this.tabGroup._tabs.find(function (x) { return x.textLabel === preSelectTab_1.label; });
|
|
24163
24153
|
_this.tabGroup.selectedIndex = matTab.position;
|
|
24164
24154
|
});
|
|
@@ -24167,9 +24157,6 @@ var CaseFullAccessViewComponent = /** @class */ (function () {
|
|
|
24167
24157
|
else {
|
|
24168
24158
|
var regExp = new RegExp(CaseFullAccessViewComponent_1.UNICODE_SPACE, 'g');
|
|
24169
24159
|
hashValue = hashValue.replace(regExp, CaseFullAccessViewComponent_1.EMPTY_SPACE);
|
|
24170
|
-
if (hashValue.includes('roles-and-access') || hashValue.includes('tasks')) {
|
|
24171
|
-
hashValue = hashValue.includes('roles-and-access') ? 'roles and access' : 'tasks';
|
|
24172
|
-
}
|
|
24173
24160
|
matTab = this.tabGroup._tabs.find(function (x) {
|
|
24174
24161
|
return x.textLabel.replace(CaseFullAccessViewComponent_1.EMPTY_SPACE, '').toLowerCase() ===
|
|
24175
24162
|
hashValue.replace(CaseFullAccessViewComponent_1.EMPTY_SPACE, '').toLowerCase();
|
|
@@ -24182,9 +24169,10 @@ var CaseFullAccessViewComponent = /** @class */ (function () {
|
|
|
24182
24169
|
CaseFullAccessViewComponent.prototype.tabChanged = function (tabChangeEvent) {
|
|
24183
24170
|
var tab = tabChangeEvent.tab['_viewContainerRef'];
|
|
24184
24171
|
var id = tab.element.nativeElement.id;
|
|
24185
|
-
|
|
24172
|
+
// due to some edge case like hidden tab we can't calculate the last index of existing tabs,
|
|
24173
|
+
// so have to hard code the hearings id here
|
|
24186
24174
|
if ((tabChangeEvent.index <= 1 && this.prependedTabs.length) ||
|
|
24187
|
-
(
|
|
24175
|
+
(this.appendedTabs.length && id === 'hearings')) {
|
|
24188
24176
|
this.router.navigate([id], { relativeTo: this.route });
|
|
24189
24177
|
}
|
|
24190
24178
|
else {
|
|
@@ -24292,8 +24280,7 @@ var CaseFullAccessViewComponent = /** @class */ (function () {
|
|
|
24292
24280
|
services_1.DraftService,
|
|
24293
24281
|
services_1.ErrorNotifierService,
|
|
24294
24282
|
services_2.ConvertHrefToRouterService,
|
|
24295
|
-
common_1.Location
|
|
24296
|
-
core_1.ChangeDetectorRef])
|
|
24283
|
+
common_1.Location])
|
|
24297
24284
|
], CaseFullAccessViewComponent);
|
|
24298
24285
|
return CaseFullAccessViewComponent;
|
|
24299
24286
|
}());
|
|
@@ -28613,8 +28600,7 @@ var FieldWriteComponent = /** @class */ (function (_super) {
|
|
|
28613
28600
|
form_1.FormValidatorsService.addValidators(caseField, control);
|
|
28614
28601
|
};
|
|
28615
28602
|
FieldWriteComponent.prototype.ngOnInit = function () {
|
|
28616
|
-
var
|
|
28617
|
-
var componentClass = this.paletteService.getFieldComponentClass(this.caseField, writeMode);
|
|
28603
|
+
var componentClass = this.paletteService.getFieldComponentClass(this.caseField, true);
|
|
28618
28604
|
var injector = core_1.Injector.create([], this.fieldContainer.parentInjector);
|
|
28619
28605
|
var component = this.resolver.resolveComponentFactory(componentClass).create(injector);
|
|
28620
28606
|
// Only Fixed list use plainToClassFromExist
|